예제 #1
0
 public async Task <IEnumerable <User> > GetPendingFriendsAsync(int id, int page)
 {
     if (page < 1)
     {
         page = 1;
     }
     return(await The100API.SendGetRequest <IEnumerable <User> >(_httpClient, $"users/{id}/pending_friends?page={page}"));
 }
예제 #2
0
 public async Task <IEnumerable <User> > GetUsersAsync(int id, int page)
 {
     if (page < 1)
     {
         page = 1;
     }
     return(await The100API.SendGetRequest <IEnumerable <User> >(_httpClient, $"groups/{id}/users?page={page}"));
 }
예제 #3
0
 public async Task <IEnumerable <GamingSession> > GetGamingSessionsAsync(int id, int page)
 {
     if (page < 1)
     {
         page = 1;
     }
     return(await The100API.SendGetRequest <IEnumerable <GamingSession> >(_httpClient, $"users/{id}/gaming_sessions?page={page}"));
 }
예제 #4
0
 public async Task <IEnumerable <FeedItem> > GetFeedAsync(int id, int page)
 {
     if (page < 1)
     {
         page = 1;
     }
     return(await The100API.SendGetRequest <IEnumerable <FeedItem> >(_httpClient, $"users/{id}/feed?page={page}"));
 }
예제 #5
0
 public async Task <IEnumerable <Notification> > GetNotificationsAsync(int id, int page)
 {
     if (page < 1)
     {
         page = 1;
     }
     return(await The100API.SendGetRequest <IEnumerable <Notification> >(_httpClient, $"users/{id}/notifications?page={page}"));
 }
예제 #6
0
 public async Task <IEnumerable <PlatformMembership> > GetPlatformMembershipsAsync(int id)
 {
     return(await The100API.SendGetRequest <IEnumerable <PlatformMembership> >(_httpClient, $"groups/{id}/platform_memberships"));
 }
예제 #7
0
 public async Task <IEnumerable <FeedItem> > GetFeedAsync(int id)
 {
     return(await The100API.SendGetRequest <IEnumerable <FeedItem> >(_httpClient, $"groups/{id}/feed"));
 }
예제 #8
0
 public async Task <Group> GetByIdAsync(int id)
 {
     return(await The100API.SendGetRequest <Group>(_httpClient, $"groups/{id}"));
 }
예제 #9
0
 public async Task <IEnumerable <ApprovedGame> > GetApprovedGamesAsync(int id)
 {
     return(await The100API.SendGetRequest <IEnumerable <ApprovedGame> >(_httpClient, $"groups/{id}/approved_games"));
 }
예제 #10
0
 public async Task <IEnumerable <string> > GetAllTagsAsync()
 {
     return(await The100API.SendGetRequest <IEnumerable <string> >(_httpClient, "groups"));
 }
예제 #11
0
 public async Task <IEnumerable <Gamertag> > GetGamertagsAsync(int id)
 {
     return(await The100API.SendGetRequest <IEnumerable <Gamertag> >(_httpClient, $"users/{id}/gamertags"));
 }
예제 #12
0
 public async Task <GamingSession> GetByIdAsync(int id)
 {
     return(await The100API.SendGetRequest <GamingSession>(_httpClient, $"gaming_sessions/{id}"));
 }
예제 #13
0
 public async Task <User> GetByIdAsync(int id)
 {
     return(await The100API.SendGetRequest <User>(_httpClient, $"users/{id}"));
 }
예제 #14
0
 public async Task <object> GetAvatarsUrlsAsync(string gamerTags)
 {
     return(await The100API.SendGetRequest <object>(_httpClient, $"users/avatar_urls?gamertags={gamerTags}"));
 }
예제 #15
0
 public async Task <IEnumerable <Game> > GetAllAsync()
 {
     return(await The100API.SendGetRequest <IEnumerable <Game> >(_httpClient, "games"));
 }