本文整理汇总了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);
}
示例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);
}
示例3: GetExistingList
public ITwitterList GetExistingList(ITwitterListIdentifier identifier)
{
if (identifier == null)
{
return null;
}
var listDTO = _twitterListFactoryQueryExecutor.GetExistingList(identifier);
return CreateListFromDTO(listDTO);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例11: RemoveMemberFromList
/// <summary>
/// Remove a member from a list
/// </summary>
public static bool RemoveMemberFromList(ITwitterListIdentifier list, IUserIdentifier user)
{
return TwitterListController.RemoveMemberFromList(list, user);
}
示例12: UpdateList
// Update List
/// <summary>
/// Update a list
/// </summary>
public static ITwitterList UpdateList(ITwitterListIdentifier twitterListIdentifier, ITwitterListUpdateParameters parameters)
{
return TwitterListController.UpdateList(twitterListIdentifier, parameters);
}
示例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);
}
示例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);
}
示例15: TwitterListUpdateQueryParameters
public TwitterListUpdateQueryParameters(ITwitterListIdentifier listIdentifier, ITwitterListUpdateParameters parameters)
{
TwitterListIdentifier = listIdentifier;
Parameters = parameters;
}