1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-06 16:07:25 +08:00
osu-lazer/osu.Game/Users/User.cs

156 lines
3.6 KiB
C#
Raw Normal View History

// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
2017-06-15 21:13:40 +08:00
using System;
2017-03-27 23:04:07 +08:00
using Newtonsoft.Json;
using osu.Framework.Configuration;
2017-03-27 23:04:07 +08:00
namespace osu.Game.Users
{
public class User
{
2017-03-27 23:04:07 +08:00
[JsonProperty(@"id")]
public long Id = 1;
2017-06-16 20:32:11 +08:00
[JsonProperty(@"join_date")]
public DateTimeOffset JoinDate;
2017-06-15 21:13:40 +08:00
2017-03-27 23:04:07 +08:00
[JsonProperty(@"username")]
public string Username;
2017-03-27 23:04:07 +08:00
2017-04-20 18:48:53 +08:00
[JsonProperty(@"country")]
public Country Country;
2017-03-27 23:04:07 +08:00
public Bindable<UserStatus> Status = new Bindable<UserStatus>();
2017-06-15 21:13:40 +08:00
[JsonProperty(@"age")]
2017-06-15 23:25:13 +08:00
public int? Age;
2017-06-15 21:13:40 +08:00
2017-05-30 16:12:11 +08:00
public int GlobalRank;
public int CountryRank;
//public Team Team;
2017-03-27 23:04:07 +08:00
2017-04-20 18:48:53 +08:00
[JsonProperty(@"profile_colour")]
2017-03-27 23:04:07 +08:00
public string Colour;
2017-04-11 13:00:21 +08:00
2017-04-20 18:48:53 +08:00
[JsonProperty(@"avatar_url")]
public string AvatarUrl;
2017-04-20 18:48:53 +08:00
[JsonProperty(@"cover_url")]
public string CoverUrl;
//[JsonProperty(@"cover")]
//public UserCover Cover;
public class UserCover
{
2017-04-20 18:48:53 +08:00
[JsonProperty(@"custom_url")]
public string CustomUrl;
[JsonProperty(@"url")]
public string Url;
[JsonProperty(@"id")]
public int? Id;
}
2017-06-15 21:13:40 +08:00
[JsonProperty(@"isAdmin")]
public bool IsAdmin;
[JsonProperty(@"isSupporter")]
public bool IsSupporter;
[JsonProperty(@"isGMT")]
public bool IsGMT;
[JsonProperty(@"isQAT")]
public bool IsQAT;
[JsonProperty(@"isBNG")]
public bool IsBNG;
[JsonProperty(@"is_active")]
public bool Active;
[JsonProperty(@"interests")]
public string Intrerests;
[JsonProperty(@"occupation")]
public string Occupation;
[JsonProperty(@"title")]
public string Title;
[JsonProperty(@"location")]
public string Location;
[JsonProperty(@"lastvisit")]
public DateTimeOffset LastVisit;
[JsonProperty(@"twitter")]
public string Twitter;
[JsonProperty(@"lastfm")]
public string Lastfm;
[JsonProperty(@"skype")]
public string Skype;
[JsonProperty(@"website")]
public string Website;
[JsonProperty(@"playstyle")]
public string[] PlayStyle;
[JsonProperty(@"playmode")]
public string PlayMode;
[JsonProperty(@"profileOrder")]
public string[] ProfileOrder;
[JsonProperty(@"kudosu")]
public KudosuCount Kudosu;
public class KudosuCount
{
[JsonProperty(@"total")]
public int Total;
[JsonProperty(@"available")]
public int Available;
}
[JsonProperty(@"defaultStatistics")]
public UserStatistics Statistics;
2017-06-26 00:38:00 +08:00
public class RankHistories
{
[JsonProperty(@"osu")]
public RankHistory Osu;
[JsonProperty(@"taiko")]
public RankHistory Taiko;
[JsonProperty(@"fruits")]
public RankHistory Fruits;
[JsonProperty(@"mania")]
public RankHistory Mania;
}
public class RankHistory
{
[JsonProperty(@"mode")]
public string Mode;
[JsonProperty(@"data")]
public int[] Data;
}
[JsonProperty(@"allRankHistories")]
public RankHistories AllRankHistories;
}
}