示例#1
0
 public Task <Pr0grammResponse> Unfollow(INamedPr0grammUser userToUnfollow)
 {
     if (userToUnfollow == null)
     {
         throw new ArgumentNullException(nameof(userToUnfollow));
     }
     return(Unfollow(userToUnfollow.Name));
 }
示例#2
0
 public Task <Pr0grammResponse> Ban(INamedPr0grammUser user, string reason, int durationInDays)
 {
     if (user == null)
     {
         throw new ArgumentNullException(nameof(user));
     }
     return(Ban(user.Name, reason, durationInDays));
 }
示例#3
0
 public Task <GetCommentsResponse> GetCommentsAfter(INamedPr0grammUser user, ItemFlags flags, DateTime after)
 {
     if (user == null)
     {
         throw new ArgumentNullException(nameof(user));
     }
     return(GetCommentsAfter(user.Name, flags, after));
 }
示例#4
0
 public Task <GetProfileInfoResponse> GetInfo(INamedPr0grammUser user, ItemFlags flags)
 {
     if (user == null)
     {
         throw new ArgumentNullException(nameof(user));
     }
     return(GetInfo(user.Name, flags));
 }
示例#5
0
 public Task <GetItemsResponse> GetItemsByUser(ItemFlags flags, ItemStatus status, INamedPr0grammUser user)
 {
     if (user == null)
     {
         throw new ArgumentNullException(nameof(user));
     }
     return(GetItemsByUser(flags, status, user.Name));
 }
示例#6
0
 public Task<GetItemsResponse> GetItemsByUser(ItemFlags flags, ItemStatus status, INamedPr0grammUser user)
 {
     if (user == null)
         throw new ArgumentNullException(nameof(user));
     return GetItemsByUser(flags, status, user.Name);
 }
示例#7
0
 public Task<Pr0grammResponse> Ban(INamedPr0grammUser user, string reason, int durationInDays)
 {
     if (user == null)
         throw new ArgumentNullException(nameof(user));
     return Ban(user.Name, reason, durationInDays);
 }
示例#8
0
 public Task<Pr0grammResponse> Unfollow(INamedPr0grammUser userToUnfollow)
 {
     if (userToUnfollow == null)
         throw new ArgumentNullException(nameof(userToUnfollow));
     return Unfollow(userToUnfollow.Name);
 }
示例#9
0
 public Task<GetProfileInfoResponse> GetInfo(INamedPr0grammUser user, ItemFlags flags)
 {
     if (user == null)
         throw new ArgumentNullException(nameof(user));
     return GetInfo(user.Name, flags);
 }
示例#10
0
 public Task<GetCommentsResponse> GetCommentsAfter(INamedPr0grammUser user, ItemFlags flags, DateTime after)
 {
     if (user == null)
         throw new ArgumentNullException(nameof(user));
     return GetCommentsAfter(user.Name, flags, after);
 }