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

26 lines
667 B
C#
Raw Normal View History

// 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.
2018-04-13 17:19:50 +08:00
2019-12-01 08:52:41 +08:00
using System;
2018-04-13 17:19:50 +08:00
using Newtonsoft.Json;
namespace osu.Game.Users
{
2019-12-01 08:52:41 +08:00
public class Country : IEquatable<Country>
2018-04-13 17:19:50 +08:00
{
/// <summary>
/// The name of this country.
/// </summary>
[JsonProperty(@"name")]
public string FullName;
/// <summary>
/// Two-letter flag acronym (ISO 3166 standard)
/// </summary>
[JsonProperty(@"code")]
public string FlagName;
2019-12-01 08:52:41 +08:00
2019-12-01 09:09:45 +08:00
public bool Equals(Country other) => FlagName == other?.FlagName;
2018-04-13 17:19:50 +08:00
}
}