/// <summary> /// Get a beatmap's metadata by its MD5 hash /// </summary> /// <param name="client">The <see cref="OrbitClient"/> to use</param> /// <param name="mapHash">The MD5 hash of the map</param> public static Task <OsuBeatmap> GetBeatmapByHash(this OrbitClient client, string mapHash) { var request = new OsuBeatmapRequest { Hash = mapHash }; return(client.PerformAsync <OsuBeatmap>(request)); }
/// <summary> /// Get a beatmap's metadata by its original filename /// </summary> /// <param name="client">The <see cref="OrbitClient"/> to use</param> /// <param name="fileName">The original, unedited name of the map</param> public static Task <OsuBeatmap> GetBeatmapByFilename(this OrbitClient client, string fileName) { var request = new OsuBeatmapRequest { Filename = fileName }; return(client.PerformAsync <OsuBeatmap>(request)); }
/// <summary> /// Get a beatmap's metadata by its online id /// </summary> /// <param name="client">The <see cref="OrbitClient"/> to use</param> /// <param name="mapId">The id of the map</param> public static Task <OsuBeatmap> GetBeatmap(this OrbitClient client, uint mapId) { var request = new OsuBeatmapRequest { BeatmapId = mapId }; return(client.PerformAsync <OsuBeatmap>(request)); }