当前位置: 首页>>代码示例>>C#>>正文


C# ITwitterListIdentifier类代码示例

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


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

示例1: CreateTwitterListUpdateQueryParameters

        public ITwitterListUpdateQueryParameters CreateTwitterListUpdateQueryParameters(
            ITwitterListIdentifier listIdentifier,
            ITwitterListUpdateParameters listUpdateParameters)
        {
            var identifierParameter = TweetinviFactory.CreateConstructorParameter("listIdentifier", listIdentifier);
            var queryParameter = TweetinviFactory.CreateConstructorParameter("queryParameters", listUpdateParameters);

            return _updateTwitterListQueryParametersFactory.Create(identifierParameter, queryParameter);
        }
开发者ID:Murtaza-libs,项目名称:tweetinvi,代码行数:9,代码来源:TwittertListQueryParameterGenerator.cs

示例2: CreateTweetsFromListQueryParameters

        public IGetTweetsFromListQueryParameters CreateTweetsFromListQueryParameters(
            ITwitterListIdentifier listIdentifier,
            IGetTweetsFromListParameters getTweetsFromListParameters)
        {
            var identifierParameter = TweetinviFactory.CreateConstructorParameter("listIdentifier", listIdentifier);
            var queryParameter = TweetinviFactory.CreateConstructorParameter("queryParameters", getTweetsFromListParameters);

            return _tweetsFromListQueryParametersFactory.Create(identifierParameter, queryParameter);
        }
开发者ID:Murtaza-libs,项目名称:tweetinvi,代码行数:9,代码来源:TwittertListQueryParameterGenerator.cs

示例3: GetExistingList

        public ITwitterList GetExistingList(ITwitterListIdentifier identifier)
        {
            if (identifier == null)
            {
                return null;
            }

            var listDTO = _twitterListFactoryQueryExecutor.GetExistingList(identifier);
            return CreateListFromDTO(listDTO);
        }
开发者ID:SowaLabs,项目名称:Tweetinvi-obsolete,代码行数:10,代码来源:TwitterListFactory.cs

示例4: GetListByIdQuery

        public string GetListByIdQuery(ITwitterListIdentifier twitterListIdentifier)
        {
            if (!_listsQueryValidator.IsListIdentifierValid(twitterListIdentifier))
            {
                return null;
            }

            var identifierParameter = _listQueryParameterGenerator.GenerateIdentifierParameter(twitterListIdentifier);
            return string.Format(Resources.List_GetExistingList, identifierParameter);
        }
开发者ID:SowaLabs,项目名称:TweetinviNew,代码行数:10,代码来源:TwitterListFactoryQueryGenerator.cs

示例5: GenerateIdentifierParameter

        public string GenerateIdentifierParameter(ITwitterListIdentifier twitterListIdentifier)
        {
            if (twitterListIdentifier.Id != TweetinviSettings.DEFAULT_ID)
            {
                return string.Format(Resources.List_ListIdParameter, twitterListIdentifier.Id.ToString(CultureInfo.InvariantCulture));
            }

            string ownerIdentifier;
            if (_userQueryValidator.IsUserIdValid(twitterListIdentifier.OwnerId))
            {
                ownerIdentifier = string.Format(Resources.List_OwnerIdParameter, twitterListIdentifier.OwnerId.ToString(CultureInfo.InvariantCulture));
            }
            else
            {
                ownerIdentifier = string.Format(Resources.List_OwnerScreenNameParameter, twitterListIdentifier.OwnerScreenName);
            }

            var slugParameter = string.Format(Resources.List_SlugParameter, twitterListIdentifier.Slug);

            return string.Format("{0}{1}", slugParameter, ownerIdentifier);
        }
开发者ID:Murtaza-libs,项目名称:tweetinvi,代码行数:21,代码来源:TwittertListQueryParameterGenerator.cs

示例6: AddMultipleMembersToList

 /// <summary>
 /// Add multiple users to become members of the list
 /// </summary>
 public static MultiRequestsResult AddMultipleMembersToList(ITwitterListIdentifier list, IEnumerable<IUserIdentifier> userIdentifiers)
 {
     return TwitterListController.AddMultipleMembersToList(list, userIdentifiers);
 }
开发者ID:SowaLabs,项目名称:Tweetinvi-obsolete,代码行数:7,代码来源:TwitterList.cs

示例7: AddMemberToList

 /// <summary>
 /// Add a user to become a member of the list
 /// </summary>
 public static bool AddMemberToList(ITwitterListIdentifier list, IUserIdentifier newUser)
 {
     return TwitterListController.AddMemberToList(list, newUser);
 }
开发者ID:SowaLabs,项目名称:Tweetinvi-obsolete,代码行数:7,代码来源:TwitterList.cs

示例8: GetListSubscribersQuery

        public string GetListSubscribersQuery(ITwitterListIdentifier listIdentifier, int maximumNumberOfSubscribersToRetrieve)
        {
            if (!_listsQueryValidator.IsListIdentifierValid(listIdentifier))
            {
                return null;
            }

            var identifierParameter = _twitterListQueryParameterGenerator.GenerateIdentifierParameter(listIdentifier);
            return string.Format(Resources.List_GetSubscribers, identifierParameter, maximumNumberOfSubscribersToRetrieve);
        }
开发者ID:Murtaza-libs,项目名称:tweetinvi,代码行数:10,代码来源:TwitterListQueryGenerator.cs

示例9: GetRemoveMultipleMembersFromListQuery

        public string GetRemoveMultipleMembersFromListQuery(ITwitterListIdentifier listIdentifier, IEnumerable<IUserIdentifier> userIdentifiers)
        {
            if (userIdentifiers == null)
            {
                return null;
            }

            string userIdsAndScreenNameParameter = _userQueryParameterGenerator.GenerateListOfUserIdentifiersParameter(userIdentifiers);
            return string.Format("https://api.twitter.com/1.1/lists/members/destroy_all.json?{0}", userIdsAndScreenNameParameter);
        }
开发者ID:Murtaza-libs,项目名称:tweetinvi,代码行数:10,代码来源:TwitterListQueryGenerator.cs

示例10: CheckIfUserIsAListMember

 /// <summary>
 /// Check if a user is a member of a specific list
 /// </summary>
 public static bool CheckIfUserIsAListMember(ITwitterListIdentifier list, string newUserName)
 {
     return TwitterListController.CheckIfUserIsAListMember(list, newUserName);
 }
开发者ID:SowaLabs,项目名称:Tweetinvi-obsolete,代码行数:7,代码来源:TwitterList.cs

示例11: RemoveMemberFromList

 /// <summary>
 /// Remove a member from a list
 /// </summary>
 public static bool RemoveMemberFromList(ITwitterListIdentifier list, IUserIdentifier user)
 {
     return TwitterListController.RemoveMemberFromList(list, user);
 }
开发者ID:SowaLabs,项目名称:Tweetinvi-obsolete,代码行数:7,代码来源:TwitterList.cs

示例12: UpdateList

        // Update List

        /// <summary>
        /// Update a list
        /// </summary>
        public static ITwitterList UpdateList(ITwitterListIdentifier twitterListIdentifier, ITwitterListUpdateParameters parameters)
        {
            return TwitterListController.UpdateList(twitterListIdentifier, parameters);
        }
开发者ID:SowaLabs,项目名称:Tweetinvi-obsolete,代码行数:9,代码来源:TwitterList.cs

示例13: CheckIfUserIsAListSubscriber

 /// <summary>
 /// Check if a user is a subscriber of a specific list
 /// </summary>
 public static bool CheckIfUserIsAListSubscriber(ITwitterListIdentifier list, long newUserId)
 {
     return TwitterListController.CheckIfUserIsAListSubscriber(list, newUserId);
 }
开发者ID:SowaLabs,项目名称:Tweetinvi-obsolete,代码行数:7,代码来源:TwitterList.cs

示例14: UnSubscribeLoggedUserFromList

        /// <summary>
        /// Unubscribe the authenticated user to a specific list
        /// </summary>
        public static bool UnSubscribeLoggedUserFromList(ITwitterListIdentifier listIdentifier, ILoggedUser loggedUser = null)
        {
            if (loggedUser != null)
            {
                return loggedUser.UnSubscribeFromList(listIdentifier);
            }

            return TwitterListController.UnSubscribeLoggedUserFromList(listIdentifier);
        }
开发者ID:SowaLabs,项目名称:Tweetinvi-obsolete,代码行数:12,代码来源:TwitterList.cs

示例15: TwitterListUpdateQueryParameters

 public TwitterListUpdateQueryParameters(ITwitterListIdentifier listIdentifier, ITwitterListUpdateParameters parameters)
 {
     TwitterListIdentifier = listIdentifier;
     Parameters = parameters;
 }
开发者ID:SowaLabs,项目名称:Tweetinvi-obsolete,代码行数:5,代码来源:TwitterListUpdateQueryParameters.cs


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