/// <summary> /// キャッシュを指定し TwitterStream の新しいインスタンスを初期化します。 /// </summary> /// <param name="statusCache">キャッシュ。</param> public TwitterStream(StatusCache statusCache) { this.StatusCache = statusCache; this.Track = new NotifyCollection<string>() .Apply(_ => _.CollectionChanged += (sender, e) => ChangedAndReconnect()); this.Follows = new NotifyCollection<UserID>() .Apply(_ => _.CollectionChanged += (sender, e) => ChangedAndReconnect()); }
public ClientParameters(IEnumerable<AccountToken> accounts, StatusCache statusCache, StatusesListBoxCommandHandler statusesListBoxCommandHandler) { this.StatusCache = statusCache; this.Accounts = accounts; this.StatusesListBoxCommandHandler = statusesListBoxCommandHandler; }
public void Apply(StatusCache statusCache, Action clearStatuses) { this.statusCache = statusCache; this.StatusCount = statusCache.StatusCount; this.UserCount = statusCache.UserCount; this.ImageCount = UriBitmapConverter.CacheCount; this.TotalSize = GC.GetTotalMemory(false) / 1024.0; this.clearStatuses = clearStatuses; }
public CacheWindow(StatusCache statusCache, Action clearStatuses) { InitializeComponent(); this.ViewModel.Apply(statusCache, clearStatuses); }
/// <summary> /// Twitter クライアントと基になる JSON オブジェクトを指定し DirectMessage の新しいインスタンスを初期化します。 /// </summary> /// <param name="client">Twitter クライアント。</param> /// <param name="json">基になる JSON オブジェクト。</param> public SearchResult(TwitterClient client, DynamicJson json) : base(client, json) { this.statusCache = client.StatusCache; }