Ejemplo n.º 1
0
 Patch(LeagueClientSession session, ClubPreferences preferences) =>
 session.SendRequestAsync <ClubPreferences>("PATCH",
                                            "/lol-clubs/v1/clubs/membership/preferences", body: preferences);
Ejemplo n.º 2
0
 /// <summary>
 /// </summary>
 /// <param name="session">The session object</param>
 /// <returns></returns>
 public static Task <dynamic> Post(LeagueClientSession session) =>
 session.SendRequestAsync <dynamic>("POST", "/lol-champ-select/v1/battle-training/launch");
Ejemplo n.º 3
0
 /// <summary>
 /// </summary>
 /// <param name="session">The session object</param>
 /// <returns></returns>
 public static Task <LolChampSelectChampSelectPickableSkins> Get(LeagueClientSession session) =>
 session.SendRequestAsync <LolChampSelectChampSelectPickableSkins>("GET",
                                                                   "/lol-champ-select/v1/pickable-skins");
Ejemplo n.º 4
0
 /// <summary>
 /// </summary>
 /// <param name="session">The session object</param>
 /// <param name="id"></param>
 /// <returns></returns>
 public static Task <dynamic> Post(LeagueClientSession session, long id) =>
 session.SendRequestAsync <dynamic>("POST", $"/lol-champ-select/v1/session/trades/{id}/decline");
Ejemplo n.º 5
0
 /// <summary>
 /// </summary>
 /// <param name="session">The session object</param>
 /// <returns></returns>
 public static Task <LolChampSelectTeamBoost> Get(LeagueClientSession session) =>
 session.SendRequestAsync <LolChampSelectTeamBoost>("GET",
                                                    "/lol-champ-select/v1/team-boost");
Ejemplo n.º 6
0
 /// <summary>
 /// </summary>
 /// <param name="session">The session object</param>
 /// <param name="selection"></param>
 /// <returns></returns>
 public static Task <dynamic> Patch(LeagueClientSession session,
                                    LolChampSelectChampSelectMySelection selection) =>
 session.SendRequestAsync <dynamic>("PATCH", "/lol-champ-select/v1/session/my-selection",
                                    body: selection);
Ejemplo n.º 7
0
 /// <summary>
 /// </summary>
 /// <param name="session">The session object</param>
 /// <returns></returns>
 public static Task <LolChampSelectChampSelectTradeContract[]> Get(LeagueClientSession session) =>
 session.SendRequestAsync <LolChampSelectChampSelectTradeContract[]>("GET",
                                                                     "/lol-champ-select/v1/session/trades");
Ejemplo n.º 8
0
 /// <summary>
 /// </summary>
 /// <param name="session">The session object</param>
 /// <param name="clubKey"></param>
 /// <returns></returns>
 public static Task <string> Get(LeagueClientSession session, string clubKey) =>
 session.SendRequestAsync <string>("GET", $"/lol-clubs/v1/clubs/{clubKey}/motd");
Ejemplo n.º 9
0
 /// <summary>
 /// </summary>
 /// <param name="session">The session object</param>
 /// <param name="clubKey"></param>
 /// <param name="motd"></param>
 /// <returns></returns>
 public static Task <string> Patch(LeagueClientSession session, string clubKey, ClubMOTD motd) =>
 session.SendRequestAsync <string>("PATCH", $"/lol-clubs/v1/clubs/{clubKey}/motd", body: motd);
Ejemplo n.º 10
0
 /// <summary>
 /// </summary>
 /// <param name="session">The session object</param>
 /// <returns></returns>
 public static Task <PlayerClub[]> Get(LeagueClientSession session) =>
 session.SendRequestAsync <PlayerClub[]>("GET", "/lol-clubs/v1/clubs");
Ejemplo n.º 11
0
 /// <summary>
 /// </summary>
 /// <param name="session">The session object</param>
 /// <param name="clubKey"></param>
 /// <param name="summonerId"></param>
 /// <returns></returns>
 public static Task <PlayerClub> Post(LeagueClientSession session, string clubKey, long summonerId) =>
 session.SendRequestAsync <PlayerClub>("POST",
                                       $"/lol-clubs/v1/clubs/{clubKey}/members/{summonerId}");
Ejemplo n.º 12
0
 /// <summary>
 /// </summary>
 /// <param name="session">The session object</param>
 /// <param name="clubKey"></param>
 /// <param name="tag"></param>
 /// <returns></returns>
 public static Task <PlayerClub> Post(LeagueClientSession session, string clubKey, ClubTag tag) =>
 session.SendRequestAsync <PlayerClub>("POST", $"/lol-clubs/v1/clubs/{clubKey}", body: tag);
Ejemplo n.º 13
0
 /// <summary>
 /// </summary>
 /// <param name="session">The session object</param>
 /// <param name="clubKey"></param>
 /// <returns></returns>
 public static Task <PlayerClub> Get(LeagueClientSession session, string clubKey) =>
 session.SendRequestAsync <PlayerClub>("GET", $"/lol-clubs/v1/clubs/{clubKey}");
Ejemplo n.º 14
0
 /// <summary>
 /// </summary>
 /// <param name="session">The session object</param>
 /// <param name="clubKey"></param>
 /// <returns></returns>
 public static Task <PlayerClubMembership> Delete(LeagueClientSession session, string clubKey) =>
 session.SendRequestAsync <PlayerClubMembership>("DELETE", $"/lol-clubs/v1/clubs/{clubKey}");
Ejemplo n.º 15
0
 /// <summary>
 /// </summary>
 /// <param name="session">The session object</param>
 /// <param name="name"></param>
 /// <returns></returns>
 public static Task <PlayerClub> Post(LeagueClientSession session, ClubName name) =>
 session.SendRequestAsync <PlayerClub>("POST", "/lol-clubs/v1/clubs/membership", body: name);
Ejemplo n.º 16
0
 /// <summary>
 /// </summary>
 /// <param name="session">The session object</param>
 /// <param name="clubKey"></param>
 /// <param name="summonerId"></param>
 /// <returns></returns>
 public static Task <ClubMemberLists> Delete(LeagueClientSession session, string clubKey,
                                             long summonerId) => session.SendRequestAsync <ClubMemberLists>("DELETE",
                                                                                                            $"/lol-clubs/v1/clubs/{clubKey}/promotions/{summonerId}");
Ejemplo n.º 17
0
 /// <summary>
 /// </summary>
 /// <param name="session">The session object</param>
 /// <returns></returns>
 public static Task <ClubPreferences> Get(LeagueClientSession session) =>
 session.SendRequestAsync <ClubPreferences>("GET",
                                            "/lol-clubs/v1/clubs/membership/preferences");
Ejemplo n.º 18
0
 /// <summary>
 /// </summary>
 /// <param name="session">The session object</param>
 /// <returns></returns>
 public static Task <ClubInvite> Get(LeagueClientSession session) =>
 session.SendRequestAsync <ClubInvite>("GET", "/lol-clubs/v1/clubs/invitations");
Ejemplo n.º 19
0
 /// <summary>
 /// </summary>
 /// <param name="session">The session object</param>
 /// <returns></returns>
 public static Task <dynamic> Post(LeagueClientSession session) =>
 session.SendRequestAsync <dynamic>("POST",
                                    "/lol-champ-select/v1/session/my-selection/reroll");
Ejemplo n.º 20
0
 /// <summary>
 /// </summary>
 /// <param name="session">The session object</param>
 /// <param name="clubKey"></param>
 /// <returns></returns>
 public static Task <dynamic> Post(LeagueClientSession session, string clubKey) =>
 session.SendRequestAsync <dynamic>("POST", $"/lol-clubs/v1/clubs/{clubKey}/view");
Ejemplo n.º 21
0
 Get(LeagueClientSession session) =>
 session.SendRequestAsync <LolChampSelectChampSelectBannableChampions>("GET",
                                                                       "/lol-champ-select/v1/bannable-champions");
Ejemplo n.º 22
0
 Patch(LeagueClientSession session, ClubInvite invitation) =>
 session.SendRequestAsync <PlayerClubMembership>("PATCH", "/lol-clubs/v1/clubs/invitations",
                                                 body: invitation);
Ejemplo n.º 23
0
 /// <summary>
 /// </summary>
 /// <param name="session">The session object</param>
 /// <param name="id"></param>
 /// <returns></returns>
 public static Task <LolChampSelectChampSelectTradeContract> Post(
     LeagueClientSession session, long id) =>
 session.SendRequestAsync <LolChampSelectChampSelectTradeContract>("POST",
                                                                   $"/lol-champ-select/v1/session/trades/{id}/request");
Ejemplo n.º 24
0
 /// <summary>
 /// </summary>
 /// <param name="session">The session object</param>
 /// <param name="clubKey"></param>
 /// <returns></returns>
 public static Task <ClubMember[]> Get(LeagueClientSession session, string clubKey) =>
 session.SendRequestAsync <ClubMember[]>("GET", $"/lol-clubs/v1/clubs/{clubKey}/invitations");
Ejemplo n.º 25
0
 /// <summary>
 /// </summary>
 /// <param name="session">The session object</param>
 /// <returns></returns>
 public static Task <dynamic> Post(LeagueClientSession session) =>
 session.SendRequestAsync <dynamic>("POST", "/lol-champ-select/v1/team-boost/purchase");
Ejemplo n.º 26
0
 /// <summary>
 /// </summary>
 /// <param name="session">The session object</param>
 /// <param name="clubKey"></param>
 /// <param name="summonerId"></param>
 /// <returns></returns>
 public static Task <ClubMemberLists> Post(LeagueClientSession session, string clubKey,
                                           long summonerId) => session.SendRequestAsync <ClubMemberLists>("Post",
                                                                                                          $"/lol-clubs/v1/clubs/{clubKey}/invitations/{summonerId}");
Ejemplo n.º 27
0
 /// <summary>
 /// </summary>
 /// <param name="session">The session object</param>
 /// <returns></returns>
 public static Task <LolChampSelectChampSelectDisabledChampions> Get(
     LeagueClientSession session) =>
 session.SendRequestAsync <LolChampSelectChampSelectDisabledChampions>("GET",
                                                                       "/lol-champ-select/v1/disabled-champions");
Ejemplo n.º 28
0
 /// <summary>
 /// </summary>
 /// <param name="session">The session object</param>
 /// <returns></returns>
 public static Task <PlayerClubMembership> Get(LeagueClientSession session) =>
 session.SendRequestAsync <PlayerClubMembership>("GET", "/lol-clubs/v1/clubs/membership");
Ejemplo n.º 29
0
 /// <summary>
 /// </summary>
 /// <param name="session">The session object</param>
 /// <returns></returns>
 public static Task <LolChampSelectChampSelectSession> Get(LeagueClientSession session) =>
 session.SendRequestAsync <LolChampSelectChampSelectSession>("GET", "/lol-champ-select/v1/session");
Ejemplo n.º 30
0
 /// <summary>
 /// </summary>
 /// <param name="session">The session object</param>
 /// <returns></returns>
 public static Task <RiotMessagingServiceState> Get(LeagueClientSession session) =>
 session.SendRequestAsync <RiotMessagingServiceState>("GET", "/riot-messaging-service/v1/state");