Пример #1
0
 private static Org.Json.JSONObject GetObjectUsingMapId(string id)
 {
     return(OsuApi.Request(
                "get_beatmaps", new Dictionary <string, string> {
         { "k", OsuApi.Key },
         { "limit", "int" },
         { "b", id }
     }).GetJSONObject(0));
 }
Пример #2
0
 private static Org.Json.JSONArray GetArrayUsingSetId(string id)
 {
     return(OsuApi.Request(
                "get_beatmaps", new Dictionary <string, string> {
         { "k", OsuApi.Key },
         { "limit", "int" },
         { "s", id }
     }));
 }
Пример #3
0
 private Org.Json.JSONObject GetObjectUsingName(string name, GameMode gameMode)
 {
     return(OsuApi.Request("get_user", new Dictionary <string, string> {
         { "k", OsuApi.Key }, { "u", name }, { "type", "string" }, { "m", ((int)gameMode).ToString() }
     }).GetJSONObject(0));
 }