Exemplo n.º 1
0
		/// <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());
		}
Exemplo n.º 2
0
		public ClientParameters(IEnumerable<AccountToken> accounts, StatusCache statusCache, StatusesListBoxCommandHandler statusesListBoxCommandHandler)
		{
			this.StatusCache = statusCache;
			this.Accounts = accounts;
			this.StatusesListBoxCommandHandler = statusesListBoxCommandHandler;
		}
Exemplo n.º 3
0
		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;
		}
Exemplo n.º 4
0
		public CacheWindow(StatusCache statusCache, Action clearStatuses)
		{
			InitializeComponent();
			this.ViewModel.Apply(statusCache, clearStatuses);
		}
Exemplo n.º 5
0
		/// <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;
		}