Esempio n. 1
0
        public LobbyInvitation[] Invite(long id)
        {
            dynamic obj = new JObject();

            obj.toSummonerId = id;
            dynamic json = new JArray(obj);

            return(QsoApi.GetDTO <LobbyInvitation[]>("/lol-lobby/v2/lobby/invitations", HttpMethod.Post, json.ToString()));
        }
Esempio n. 2
0
 public Lobby Create()
 {
     Console.WriteLine(JSON.ToString());
     return(QsoApi.GetDTO <Lobby>("/lol-lobby/v2/lobby", HttpMethod.Post, JSON.ToString()));
 }
Esempio n. 3
0
 public LobbyInvitation[] GetInvitations()
 {
     return(QsoApi.GetDTO <LobbyInvitation[]>("/lol-lobby/v2/lobby/invitations", HttpMethod.Get));
 }
Esempio n. 4
0
 public ChatUser Build()
 {
     return(QsoApi.GetDTO <ChatUser>("/lol-chat/v1/me", HttpMethod.Put, JsonConvert.SerializeObject(_user)));
 }
Esempio n. 5
0
 public virtual ChatUser GetChatUser()
 {
     return(QsoApi.GetDTO <ChatUser>("/lol-chat/v1/friends/{0}", HttpMethod.Get, null, ID));
 }
Esempio n. 6
0
 public PerkPageResource Build()
 {
     return(QsoApi.GetDTO <PerkPageResource>("/lol-perks/v1/pages/{0}", HttpMethod.Put, JsonConvert.SerializeObject(_page), id));
 }
Esempio n. 7
0
 public LootRecipe[] GetRecipes()
 {
     return(QsoApi.GetDTO <LootRecipe[]>("/lol-loot/v1/recipes/initial-item/{0}", HttpMethod.Get, null, ID));
 }