當前位置: 首頁>>代碼示例>>C#>>正文


C# DataModels.TwitterStatus類代碼示例

本文整理匯總了C#中StarryEyes.Anomaly.TwitterApi.DataModels.TwitterStatus的典型用法代碼示例。如果您正苦於以下問題:C# TwitterStatus類的具體用法?C# TwitterStatus怎麽用?C# TwitterStatus使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


TwitterStatus類屬於StarryEyes.Anomaly.TwitterApi.DataModels命名空間,在下文中一共展示了TwitterStatus類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: NotifyNewArrival

 public void NotifyNewArrival(TwitterStatus status, NotificationType type, string explicitSoundSource)
 {
     if (!_proxy.NotifyNewArrival(status, type, explicitSoundSource))
     {
         Next?.NotifyNewArrival(status, type, explicitSoundSource);
     }
 }
開發者ID:karno,項目名稱:StarryEyes,代碼行數:7,代碼來源:NotificationProxyWrapper.cs

示例2: RegisterStatus

 public static void RegisterStatus(TwitterStatus status)
 {
     status.Entities
         .Where(e => e.EntityType == EntityType.Hashtags)
         .Select(e => e.DisplayText)
         .ForEach(RegisterHashtag);
 }
開發者ID:upsilon,項目名稱:StarryEyes,代碼行數:7,代碼來源:CacheStore.cs

示例3: NotifyUnfavorited

 public void NotifyUnfavorited(TwitterUser source, TwitterStatus status)
 {
     if (!_proxy.NotifyUnfavorited(source, status) && this.Next != null)
     {
         this.Next.NotifyUnfavorited(source, status);
     }
 }
開發者ID:Kei-Nanigashi,項目名稱:StarryEyes,代碼行數:7,代碼來源:NotificationProxyWrapper.cs

示例4: NotifyReceived

 public void NotifyReceived(TwitterStatus status)
 {
     if (!_proxy.NotifyReceived(status) && this.Next != null)
     {
         this.Next.NotifyReceived(status);
     }
 }
開發者ID:Kei-Nanigashi,項目名稱:StarryEyes,代碼行數:7,代碼來源:NotificationProxyWrapper.cs

示例5: NotifyNewArrival

 public void NotifyNewArrival(TwitterStatus status, NotificationType type, string explicitSoundSource)
 {
     if (!_proxy.NotifyNewArrival(status, type, explicitSoundSource) && this.Next != null)
     {
         this.Next.NotifyNewArrival(status, type, explicitSoundSource);
     }
 }
開發者ID:Kei-Nanigashi,項目名稱:StarryEyes,代碼行數:7,代碼來源:NotificationProxyWrapper.cs

示例6: NotifyReceived

 public virtual void NotifyReceived(TwitterStatus status)
 {
     if (Next != null)
     {
         Next.NotifyReceived(status);
     }
 }
開發者ID:R4ndZ-Alice,項目名稱:StarryEyes,代碼行數:7,代碼來源:NotificationProxy.cs

示例7: NotifyDeleted

 public void NotifyDeleted(long statusId, TwitterStatus deleted)
 {
     if (Next != null)
     {
         Next.NotifyDeleted(statusId, deleted);
     }
 }
開發者ID:R4ndZ-Alice,項目名稱:StarryEyes,代碼行數:7,代碼來源:NotificationProxy.cs

示例8: NotifyRetweeted

 public void NotifyRetweeted(TwitterUser source, TwitterStatus status)
 {
     if (Next != null)
     {
         Next.NotifyRetweeted(source, status);
     }
 }
開發者ID:R4ndZ-Alice,項目名稱:StarryEyes,代碼行數:7,代碼來源:NotificationProxy.cs

示例9: NotifyRetweeted

 public void NotifyRetweeted(TwitterUser source, TwitterStatus original, TwitterStatus retweet)
 {
     if (!_proxy.NotifyRetweeted(source, original, retweet) && this.Next != null)
     {
         this.Next.NotifyRetweeted(source, original, retweet);
     }
 }
開發者ID:Kei-Nanigashi,項目名稱:StarryEyes,代碼行數:7,代碼來源:NotificationProxyWrapper.cs

示例10: StartAcceptNewArrival

 internal static void StartAcceptNewArrival(TwitterStatus status)
 {
     lock (_acceptingArrivals)
     {
         _acceptingArrivals[status.Id] = new List<TabModel>();
     }
 }
開發者ID:R4ndZ-Alice,項目名稱:StarryEyes,代碼行數:7,代碼來源:NotificationService.cs

示例11: NotifyFavorited

 public void NotifyFavorited(TwitterUser source, TwitterStatus status)
 {
     if (!_proxy.NotifyFavorited(source, status))
     {
         Next?.NotifyFavorited(source, status);
     }
 }
開發者ID:karno,項目名稱:StarryEyes,代碼行數:7,代碼來源:NotificationProxyWrapper.cs

示例12: EndAcceptNewArrival

 internal static void EndAcceptNewArrival(TwitterStatus status)
 {
     List<TabModel> removal;
     lock (_acceptingArrivals)
     {
         if (!_acceptingArrivals.TryGetValue(status.Id, out removal) || removal.Count == 0) return;
     }
     var soundSource = removal
         .Select(t => t.NotifySoundSource)
         .Where(s => !String.IsNullOrEmpty(s))
         .Where(File.Exists)
         .FirstOrDefault();
     if (status.StatusType == StatusType.DirectMessage)
     {
         Task.Run(() => NotifyNewArrival(status, NotificationType.DirectMessage, soundSource));
     }
     else if (FilterSystemUtil.InReplyToUsers(status).Intersect(Setting.Accounts.Ids).Any())
     {
         Task.Run(() => NotifyNewArrival(status, NotificationType.Mention, soundSource));
     }
     else
     {
         Task.Run(() => NotifyNewArrival(status, NotificationType.Normal, soundSource));
     }
 }
開發者ID:R4ndZ-Alice,項目名稱:StarryEyes,代碼行數:25,代碼來源:NotificationService.cs

示例13: NotifyRetweeted

 public void NotifyRetweeted(TwitterUser source, TwitterStatus status)
 {
     if (_proxy.NotifyRetweeted(source, status) && this.Next != null)
     {
         this.Next.NotifyRetweeted(source, status);
     }
 }
開發者ID:upsilon,項目名稱:StarryEyes,代碼行數:7,代碼來源:NotificationProxyWrapper.cs

示例14: TwitterStatus

 public TwitterStatus(dynamic json)
 {
     this.GenerateFromJson = true;
     this.Id = ((string)json.id_str).ParseLong();
     this.CreatedAt = ((string)json.created_at).ParseDateTime(ParsingExtension.TwitterDateTimeFormat);
     this.Text = ParsingExtension.ResolveEntity(json.text);
     if (json.extended_entities())
     {
         this.Entities = Enumerable.ToArray(Enumerable.Concat(
             TwitterEntity.GetEntities(json.entities),
             TwitterEntity.GetEntities(json.extended_entities)));
     }
     else if (json.entities())
     {
         this.Entities = Enumerable.ToArray(TwitterEntity.GetEntities(json.entities));
     }
     else
     {
         this.Entities = new TwitterEntity[0];
     }
     if (json.recipient())
     {
         // THIS IS DIRECT MESSAGE!
         this.StatusType = StatusType.DirectMessage;
         this.User = new TwitterUser(json.sender);
         this.Recipient = new TwitterUser(json.recipient);
     }
     else
     {
         this.StatusType = StatusType.Tweet;
         this.User = new TwitterUser(json.user);
         this.Source = json.source;
         if (json.in_reply_to_status_id_str())
         {
             this.InReplyToStatusId = ((string)json.in_reply_to_status_id_str).ParseNullableId();
         }
         if (json.in_reply_to_user_id_str())
         {
             this.InReplyToUserId = ((string)json.in_reply_to_user_id_str).ParseNullableId();
         }
         if (json.in_reply_to_screen_name())
         {
             this.InReplyToScreenName = json.in_reply_to_screen_name;
         }
         if (json.retweeted_status())
         {
             var original = new TwitterStatus(json.retweeted_status);
             this.RetweetedOriginal = original;
             this.RetweetedOriginalId = original.Id;
             // merge text and entities
             this.Text = original.Text;
             this.Entities = original.Entities.Guard().ToArray();
         }
         if (json.coordinates() && json.coordinates != null)
         {
             this.Longitude = (double)json.coordinates.coordinates[0];
             this.Latitude = (double)json.coordinates.coordinates[1];
         }
     }
 }
開發者ID:kb10uy,項目名稱:StarryEyes,代碼行數:60,代碼來源:TwitterStatus.cs

示例15: NotifyReceived

 public void NotifyReceived(TwitterStatus status)
 {
     if (!_proxy.NotifyReceived(status))
     {
         Next?.NotifyReceived(status);
     }
 }
開發者ID:karno,項目名稱:StarryEyes,代碼行數:7,代碼來源:NotificationProxyWrapper.cs


注:本文中的StarryEyes.Anomaly.TwitterApi.DataModels.TwitterStatus類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。