Exemple #1
0
 public static async Task <bool> BlockUser(string userScreenName)
 {
     return(await Sync.ExecuteTaskAsync(() => User.BlockUser(userScreenName)));
 }
Exemple #2
0
 public static async Task <IEnumerable <IUser> > GetListSubscribers(ITwitterListIdentifier list, int maximumNumberOfUsersToRetrieve = 100)
 {
     return(await Sync.ExecuteTaskAsync(() => TwitterList.GetListSubscribers(list, maximumNumberOfUsersToRetrieve)));
 }
Exemple #3
0
 public static async Task <ITwitterList> GetExistingList(string slug, IUser user)
 {
     return(await Sync.ExecuteTaskAsync(() => TwitterList.GetExistingList(slug, user)));
 }
Exemple #4
0
 // Add Members To List
 public static async Task <bool> AddMemberToList(ITwitterListIdentifier list, IUserIdentifier newUser)
 {
     return(await Sync.ExecuteTaskAsync(() => TwitterList.AddMemberToList(list, newUser)));
 }
Exemple #5
0
 public static async Task <MultiRequestsResult> RemoveMultipleMembersFromList(ITwitterListIdentifier list, IEnumerable <IUserIdentifier> userIdentifiersToRemove)
 {
     return(await Sync.ExecuteTaskAsync(() => TwitterList.RemoveMultipleMembersFromList(list, userIdentifiersToRemove)));
 }
Exemple #6
0
 public static async Task <IEnumerable <ITweet> > GetTweetsFromList(ITwitterListIdentifier twitterListIdentifier, IGetTweetsFromListParameters parameters = null)
 {
     return(await Sync.ExecuteTaskAsync(() => TwitterList.GetTweetsFromList(twitterListIdentifier, parameters)));
 }
Exemple #7
0
 public static async Task <IEnumerable <IUser> > GetMembersOfList(string slug, long ownerId, int maxNumberOfUsersToRetrieve = 100)
 {
     return(await Sync.ExecuteTaskAsync(() => TwitterList.GetMembersOfList(slug, ownerId, maxNumberOfUsersToRetrieve)));
 }
Exemple #8
0
 public static async Task <IEnumerable <IUser> > GenerateUsersFromDTO(IEnumerable <IUserDTO> usersDTO)
 {
     return(await Sync.ExecuteTaskAsync(() => User.GenerateUsersFromDTO(usersDTO)));
 }
Exemple #9
0
 // User Controller
 // Friend Ids
 public static async Task <IEnumerable <long> > GetFriendIds(IUser user, int maxFriendsToRetrieve = 5000)
 {
     return(await Sync.ExecuteTaskAsync(() => User.GetFriendIds(user, maxFriendsToRetrieve)));
 }
Exemple #10
0
 public static async Task <IUser> GetUserFromScreenName(string userName)
 {
     return(await Sync.ExecuteTaskAsync(() => User.GetUserFromScreenName(userName)));
 }
Exemple #11
0
 public static async Task <IUser> GenerateUserFromDTO(IUserDTO userDTO)
 {
     return(await Sync.ExecuteTaskAsync(() => User.GenerateUserFromDTO(userDTO)));
 }
Exemple #12
0
 public static async Task <IUser> GetUserFromId(long userId)
 {
     return(await Sync.ExecuteTaskAsync(() => User.GetUserFromId(userId)));
 }
Exemple #13
0
 public static async Task <ILoggedUser> GetLoggedUser(ITwitterCredentials credentials)
 {
     return(await Sync.ExecuteTaskAsync(() => User.GetLoggedUser(credentials)));
 }
Exemple #14
0
 public static async Task <System.IO.Stream> GetProfileImageStream(IUserDTO userDTO, ImageSize imageSize = ImageSize.normal)
 {
     return(await Sync.ExecuteTaskAsync(() => User.GetProfileImageStream(userDTO, imageSize)));
 }
Exemple #15
0
 // Get Existing List
 public static async Task <ITwitterList> GetExistingList(ITwitterListIdentifier twitterListIdentifier)
 {
     return(await Sync.ExecuteTaskAsync(() => TwitterList.GetExistingList(twitterListIdentifier)));
 }
Exemple #16
0
 public static async Task <IEnumerable <IUser> > GetFriends(IUserIdentifier userDTO, int maxFriendsToRetrieve = 250)
 {
     return(await Sync.ExecuteTaskAsync(() => User.GetFriends(userDTO, maxFriendsToRetrieve)));
 }
Exemple #17
0
 public static async Task <IEnumerable <ITweet> > GetTweetsFromList(string slug, long ownerId)
 {
     return(await Sync.ExecuteTaskAsync(() => TwitterList.GetTweetsFromList(slug, ownerId)));
 }
Exemple #18
0
 public static async Task <IEnumerable <IUser> > GetFriends(string userScreenName, int maxFriendsToRetrieve = 250)
 {
     return(await Sync.ExecuteTaskAsync(() => User.GetFriends(userScreenName, maxFriendsToRetrieve)));
 }
Exemple #19
0
 // Get Members of List
 public static async Task <IEnumerable <IUser> > GetMembersOfList(ITwitterListIdentifier twitterListIdentifier, int maxNumberOfUsersToRetrieve = 100)
 {
     return(await Sync.ExecuteTaskAsync(() => TwitterList.GetMembersOfList(twitterListIdentifier, maxNumberOfUsersToRetrieve)));
 }
Exemple #20
0
 public static async Task <IEnumerable <long> > GetFollowerIds(long userId, int maxFollowersToRetrieve = 5000)
 {
     return(await Sync.ExecuteTaskAsync(() => User.GetFollowerIds(userId, maxFollowersToRetrieve)));
 }
Exemple #21
0
 public static async Task <ITwitterList> GetExistingList(long listId)
 {
     return(await Sync.ExecuteTaskAsync(() => TwitterList.GetExistingList(listId)));
 }
Exemple #22
0
 public static async Task <bool> DestroyList(long listId)
 {
     return(await Sync.ExecuteTaskAsync(() => TwitterList.DestroyList(listId)));
 }
Exemple #23
0
 // Remove Members From List
 public static async Task <bool> RemoveMemberFromList(ITwitterListIdentifier list, IUserIdentifier user)
 {
     return(await Sync.ExecuteTaskAsync(() => TwitterList.RemoveMemberFromList(list, user)));
 }
Exemple #24
0
 public static async Task <bool> DestroyList(string slug, IUserDTO ownerDTO)
 {
     return(await Sync.ExecuteTaskAsync(() => TwitterList.DestroyList(slug, ownerDTO)));
 }
Exemple #25
0
 // Get Subscriptions
 public static async Task <IEnumerable <ITwitterList> > GetUserSubscribedLists(IUserIdentifier userIdentifier, int maxNumberOfListsToRetrieve = TweetinviConsts.LIST_GET_USER_SUBSCRIPTIONS_COUNT)
 {
     return(await Sync.ExecuteTaskAsync(() => TwitterList.GetUserSubscribedLists(userIdentifier, maxNumberOfListsToRetrieve)));
 }
Exemple #26
0
 public static async Task <bool> DestroyList(string slug, string ownerScreenName)
 {
     return(await Sync.ExecuteTaskAsync(() => TwitterList.DestroyList(slug, ownerScreenName)));
 }
Exemple #27
0
 // Unsubscribe
 public static async Task <bool> UnSubscribeAuthenticatedUserFromList(ITwitterListIdentifier listIdentifier, IAuthenticatedUser authenticatedUser = null)
 {
     return(await Sync.ExecuteTaskAsync(() => TwitterList.UnSubscribeAuthenticatedUserFromList(listIdentifier, authenticatedUser)));
 }
Exemple #28
0
 // Get Tweets from List
 public static async Task <IEnumerable <ITweet> > GetTweetsFromList(long listId)
 {
     return(await Sync.ExecuteTaskAsync(() => TwitterList.GetTweetsFromList(listId)));
 }
Exemple #29
0
 // Check Subscription
 public static async Task <bool> CheckIfUserIsAListSubscriber(ITwitterListIdentifier listIdentifier, IUserIdentifier userIdentifier)
 {
     return(await Sync.ExecuteTaskAsync(() => TwitterList.CheckIfUserIsAListSubscriber(listIdentifier, userIdentifier)));
 }
Exemple #30
0
 public static async Task <bool> BlockUser(long userId)
 {
     return(await Sync.ExecuteTaskAsync(() => User.BlockUser(userId)));
 }