• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# DataModels.TwitterStatus类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中StarryEyes.Anomaly.TwitterApi.DataModels.TwitterStatus的典型用法代码示例。如果您正苦于以下问题:C# TwitterStatus类的具体用法?C# TwitterStatus怎么用?C# TwitterStatus使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



TwitterStatus类属于StarryEyes.Anomaly.TwitterApi.DataModels命名空间,在下文中一共展示了TwitterStatus类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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


示例16: MessageReceived

 public void MessageReceived(TwitterStatus status)
 {
     lock (_urgentPriorityQueue)
     {
         _urgentPriorityQueue.AddLast(new NotificationData(SlimNotificationKind.Message, status));
     }
     OnNewNotificationDataQueued.SafeInvoke();
 }
开发者ID:Mojopon,项目名称:StarryEyes,代码行数:8,代码来源:SlimNotificator.cs


示例17: StatusReceived

 public void StatusReceived(TwitterStatus status)
 {
     lock (_lowPriorityQueue)
     {
         _lowPriorityQueue.AddLast(new NotificationData(SlimNotificationKind.New, status));
     }
     OnNewNotificationDataQueued.SafeInvoke();
 }
开发者ID:Mojopon,项目名称:StarryEyes,代码行数:8,代码来源:SlimNotificator.cs


示例18: NotifyRetweeted

 public void NotifyRetweeted(TwitterUser source, TwitterStatus original, TwitterStatus retweet)
 {
     if (Setting.Accounts.Contains(source.Id) ||
         Setting.Accounts.Contains(original.User.Id))
     {
         BackstageModel.RegisterEvent(new RetweetedEvent(source, original));
     }
 }
开发者ID:karno,项目名称:StarryEyes,代码行数:8,代码来源:NotificationSink.cs


示例19: NotifyReceived

 internal static void NotifyReceived(TwitterStatus status)
 {
     if (status.RetweetedOriginal != null)
     {
         NotifyRetweeted(status.User, status.RetweetedOriginal);
     }
     Head.NotifyReceived(status);
 }
开发者ID:R4ndZ-Alice,项目名称:StarryEyes,代码行数:8,代码来源:NotificationService.cs


示例20: CheckVisibleTimeline

 private bool CheckVisibleTimeline(TwitterStatus status, IEnumerable<TwitterAccount> datas)
 {
     if (status.StatusType == StatusType.DirectMessage)
         return false;
     return datas.Any(account =>
                      status.User.Id == account.Id ||
                      account.RelationData.IsFollowing(status.User.Id) ||
                      FilterSystemUtil.InReplyToUsers(status).Contains(account.Id));
 }
开发者ID:kb10uy,项目名称:StarryEyes,代码行数:9,代码来源:FilterHome.cs



注:本文中的StarryEyes.Anomaly.TwitterApi.DataModels.TwitterStatus类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# DataModels.TwitterUser类代码示例发布时间:2022-05-26
下一篇:
C# Standard.SafeDC类代码示例发布时间:2022-05-26
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap