// Copyright (c) 2007-2018 ppy Pty Ltd . // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE using System.Net.Http; using osu.Framework.IO.Network; using osu.Game.Online.API.Requests.Responses; namespace osu.Game.Online.API.Requests { public class CreateRoomScoreRequest : APIRequest { private readonly int roomId; private readonly int playlistItemId; public CreateRoomScoreRequest(int roomId, int playlistItemId) { this.roomId = roomId; this.playlistItemId = playlistItemId; } protected override WebRequest CreateWebRequest() { var req = base.CreateWebRequest(); req.Method = HttpMethod.Post; return req; } protected override string Target => $@"rooms/{roomId}/playlist/{playlistItemId}/scores"; } }