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

C# ITweetDTO类代码示例

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

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



ITweetDTO类属于命名空间,在下文中一共展示了ITweetDTO类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: PublishTweetDTOInReplyTo

        private ITweetDTO PublishTweetDTOInReplyTo(ITweetDTO tweetToPublish, ITweetDTO tweetToReplyTo)
        {
            _uploadQueryExecutor.UploadTweetMediasBeforePublish(tweetToPublish);

            var tweetDTO = _tweetQueryExecutor.PublishTweetInReplyTo(tweetToPublish, tweetToReplyTo);
            return tweetDTO;
        }
开发者ID:Murtaza-libs,项目名称:tweetinvi,代码行数:7,代码来源:TweetController.cs


示例2: PublishTweetDTO

        private ITweetDTO PublishTweetDTO(ITweetDTO tweetToPublish)
        {
            _uploadQueryExecutor.UploadTweetMediasBeforePublish(tweetToPublish);

            var publishedTweetDTO = _tweetQueryExecutor.PublishTweet(tweetToPublish);
            return publishedTweetDTO;
        }
开发者ID:Murtaza-libs,项目名称:tweetinvi,代码行数:7,代码来源:TweetController.cs


示例3: CanTweetDTOBePublished

        public bool CanTweetDTOBePublished(ITweetDTO tweet)
        {
            if (tweet == null)
            {
                return false;
            }

            var tooManyMedia = tweet.MediasToPublish != null && tweet.MediasToPublish.Count > 4;
            return !tweet.IsTweetPublished && !tweet.IsTweetDestroyed && !tooManyMedia;
        }
开发者ID:Murtaza-libs,项目名称:tweetinvi,代码行数:10,代码来源:TweetQueryValidator.cs


示例4: GenerateTweetFromDTO

        // Generate Tweet From DTO
        public ITweet GenerateTweetFromDTO(ITweetDTO tweetDTO)
        {
            if (tweetDTO == null)
            {
                return null;
            }

            var parameterOverride = _tweetUnityFactory.GenerateParameterOverrideWrapper("tweetDTO", tweetDTO);
            var tweet = _tweetUnityFactory.Create(parameterOverride);

            return tweet;
        }
开发者ID:SowaLabs,项目名称:Tweetinvi-obsolete,代码行数:13,代码来源:TweetFactory.cs


示例5: SearchRepliesTo

        public IEnumerable<ITweetDTO> SearchRepliesTo(ITweetDTO tweetDTO, bool recursiveReplies)
        {
            if (tweetDTO == null)
            {
                throw new ArgumentException("TweetDTO cannot be null");
            }

            var searchTweets = SearchTweets(string.Format(tweetDTO.CreatedBy.ScreenName)).ToList();

            if (recursiveReplies)
            {
                return GetRecursiveReplies(searchTweets, tweetDTO.Id);
            }

            var repliesDTO = searchTweets.Where(x => x.InReplyToStatusId == tweetDTO.Id);
            return repliesDTO;
        }
开发者ID:SowaLabs,项目名称:TweetinviNew,代码行数:17,代码来源:SearchQueryExecutor.cs


示例6: GenerateTweetFromDTO

 public static ITweet GenerateTweetFromDTO(ITweetDTO tweetDTO)
 {
     return TweetFactory.GenerateTweetFromDTO(tweetDTO);
 }
开发者ID:rudiv,项目名称:tweetinvi,代码行数:4,代码来源:Tweet.cs


示例7: Tweet

        public Tweet(
            ITweetDTO tweetDTO,
            ITweetController tweetController,
            ITweetFactory tweetFactory,
            IUserFactory userFactory,
            ITaskFactory taskFactory,
            IFactory<IMedia> mediaFactory)
        {
            _tweetController = tweetController;
            _tweetFactory = tweetFactory;
            _userFactory = userFactory;
            _taskFactory = taskFactory;
            _mediaFactory = mediaFactory;

            TweetDTO = tweetDTO;
        }
开发者ID:Murtaza-libs,项目名称:tweetinvi,代码行数:16,代码来源:Tweet.cs


示例8: UnFavouriteTweet

 public string UnFavouriteTweet(ITweetDTO tweetDTO)
 {
     string query = _tweetQueryGenerator.GetUnFavouriteTweetQuery(tweetDTO);
     return _twitterAccessor.ExecuteJsonPOSTQuery(query);
 }
开发者ID:Murtaza-libs,项目名称:tweetinvi,代码行数:5,代码来源:TweetJsonController.cs


示例9: PublishRetweet

 public static string PublishRetweet(ITweetDTO tweetDTO)
 {
     return TweetJsonController.PublishRetweet(tweetDTO);
 }
开发者ID:Murtaza-libs,项目名称:tweetinvi,代码行数:4,代码来源:TweetJson.cs


示例10: GenerateMentionFromDTO

        // Generate Mention from DTO
        public IMention GenerateMentionFromDTO(ITweetDTO tweetDTO)
        {
            if (tweetDTO == null)
            {
                return null;
            }

            var parameterOverride = _mentionUnityFactory.GenerateParameterOverrideWrapper("tweetDTO", tweetDTO);
            var mention = _mentionUnityFactory.Create(parameterOverride);

            return mention;
        }
开发者ID:SowaLabs,项目名称:Tweetinvi-obsolete,代码行数:13,代码来源:TweetFactory.cs


示例11: UpdateTweetIfTweetSuccessfullyBeenPublished

 // Update Tweet
 public void UpdateTweetIfTweetSuccessfullyBeenPublished(ITweet sourceTweet, ITweetDTO publishedTweetDTO)
 {
     if (sourceTweet != null &&
         publishedTweetDTO != null &&
         publishedTweetDTO.IsTweetPublished)
     {
         sourceTweet.TweetDTO = publishedTweetDTO;
     }
 }
开发者ID:rudiv,项目名称:tweetinvi,代码行数:10,代码来源:TweetController.cs


示例12: GenerateOEmbedTweet

 public static string GenerateOEmbedTweet(ITweetDTO tweetDTO)
 {
     return TweetJsonController.GenerateOEmbedTweet(tweetDTO);
 }
开发者ID:Murtaza-libs,项目名称:tweetinvi,代码行数:4,代码来源:TweetJson.cs


示例13: UnFavoriteTweet

 public bool UnFavoriteTweet(ITweetDTO tweetDTO)
 {
     return _tweetQueryExecutor.UnFavouriteTweet(tweetDTO);
 }
开发者ID:rudiv,项目名称:tweetinvi,代码行数:4,代码来源:TweetController.cs


示例14: GenerateOEmbedTweet

 public IOEmbedTweet GenerateOEmbedTweet(ITweetDTO tweetDTO)
 {
     var oembedTweetDTO = _tweetQueryExecutor.GenerateOEmbedTweet(tweetDTO);
     return _tweetFactory.GenerateOEmbedTweetFromDTO(oembedTweetDTO);
 }
开发者ID:rudiv,项目名称:tweetinvi,代码行数:5,代码来源:TweetController.cs


示例15: FavoriteTweet

        public bool FavoriteTweet(ITweetDTO tweetDTO)
        {
            if (tweetDTO == null)
            {
                return false;
            }

            // if the favourite operation failed the tweet should still be favourited if it previously was
            tweetDTO.Favourited |= _tweetQueryExecutor.FavouriteTweet(tweetDTO);
            return tweetDTO.Favourited;
        }
开发者ID:rudiv,项目名称:tweetinvi,代码行数:11,代码来源:TweetController.cs


示例16: GetRetweets

 public IEnumerable<ITweet> GetRetweets(ITweetDTO tweet)
 {
     var retweetsDTO = _tweetQueryExecutor.GetRetweets(tweet);
     return _tweetFactory.GenerateTweetsFromDTO(retweetsDTO);
 }
开发者ID:rudiv,项目名称:tweetinvi,代码行数:5,代码来源:TweetController.cs


示例17: PublishRetweet

 public ITweet PublishRetweet(ITweetDTO tweet)
 {
     var tweetDTO = _tweetQueryExecutor.PublishRetweet(tweet);
     return _tweetFactory.GenerateTweetFromDTO(tweetDTO);
 }
开发者ID:rudiv,项目名称:tweetinvi,代码行数:5,代码来源:TweetController.cs


示例18: DestroyTweet

 public static string DestroyTweet(ITweetDTO tweetDTO)
 {
     return TweetJsonController.DestroyTweet(tweetDTO);
 }
开发者ID:Murtaza-libs,项目名称:tweetinvi,代码行数:4,代码来源:TweetJson.cs


示例19: GenerateOEmbedTweet

 public string GenerateOEmbedTweet(ITweetDTO tweet)
 {
     string query = _tweetQueryGenerator.GetGenerateOEmbedTweetQuery(tweet);
     return _twitterAccessor.ExecuteJsonGETQuery(query);
 }
开发者ID:Murtaza-libs,项目名称:tweetinvi,代码行数:5,代码来源:TweetJsonController.cs


示例20: UnFavouriteTweet

 public static string UnFavouriteTweet(ITweetDTO tweetDTO)
 {
     return TweetJsonController.UnFavouriteTweet(tweetDTO);
 }
开发者ID:Murtaza-libs,项目名称:tweetinvi,代码行数:4,代码来源:TweetJson.cs



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
C# ITwitterListIdentifier类代码示例发布时间:2022-05-24
下一篇:
C# ITweet类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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