Beispiel #1
0
        public static async Task <Beatmapset> GetBeatmapsetsBySidAsync(string sId)
        {
            OsuApiV2Client client = new OsuApiV2Client(OsuApiKey.UserName, OsuApiKey.Password);

            try
            {
                Beatmapset set = await client.GetBeatmapsetBySIdAsync(sId);

                return(set);
            }
            catch (NetworkFailException e)
            {
                if (e.InnerException.Message.Contains("404"))
                {
                    return(null);
                }
                throw;
            }
        }
Beispiel #2
0
        public static Beatmapset GetBeatmapsetsBySid(string sId)
        {
            OsuApiV2Client client = new OsuApiV2Client(OsuApiKey.UserName, OsuApiKey.Password);

            return(client.GetBeatmapsetBySIdAsync(sId).Result);
        }