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