mirror of
https://github.com/ppy/osu.git
synced 2024-11-18 08:52:54 +08:00
43 lines
1.1 KiB
C#
43 lines
1.1 KiB
C#
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
|
// See the LICENCE file in the repository root for full licence text.
|
|
|
|
#nullable disable
|
|
|
|
using Newtonsoft.Json;
|
|
|
|
namespace osu.Game.Online.API
|
|
{
|
|
public class RegistrationRequest : OsuWebRequest
|
|
{
|
|
internal string Username;
|
|
internal string Email;
|
|
internal string Password;
|
|
|
|
protected override void PrePerform()
|
|
{
|
|
AddParameter("user[username]", Username);
|
|
AddParameter("user[user_email]", Email);
|
|
AddParameter("user[password]", Password);
|
|
|
|
base.PrePerform();
|
|
}
|
|
|
|
public class RegistrationRequestErrors
|
|
{
|
|
public UserErrors User;
|
|
|
|
public class UserErrors
|
|
{
|
|
[JsonProperty("username")]
|
|
public string[] Username;
|
|
|
|
[JsonProperty("user_email")]
|
|
public string[] Email;
|
|
|
|
[JsonProperty("password")]
|
|
public string[] Password;
|
|
}
|
|
}
|
|
}
|
|
}
|