mirror of
https://github.com/ppy/osu.git
synced 2026-05-16 09:42:53 +08:00
27 lines
736 B
C#
27 lines
736 B
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.
|
|
|
|
using System.ComponentModel;
|
|
using System.Runtime.Serialization;
|
|
using Newtonsoft.Json;
|
|
|
|
namespace osu.Game.Online.API.Requests.Responses
|
|
{
|
|
public class APIMe : APIUser
|
|
{
|
|
[JsonProperty("session_verification_method")]
|
|
public SessionVerificationMethod? SessionVerificationMethod { get; set; }
|
|
}
|
|
|
|
public enum SessionVerificationMethod
|
|
{
|
|
[Description("Timed one-time password")]
|
|
[EnumMember(Value = "totp")]
|
|
TimedOneTimePassword,
|
|
|
|
[Description("E-mail")]
|
|
[EnumMember(Value = "mail")]
|
|
EmailMessage,
|
|
}
|
|
}
|