Exemplo n.º 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));
 }
Exemplo n.º 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 }
     }));
 }
Exemplo n.º 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));
 }