1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-30 21:42:56 +08:00
osu-lazer/osu.Game/Users/Country.cs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

28 lines
686 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
2022-06-17 15:37:17 +08:00
#nullable disable
2019-12-01 08:52:41 +08:00
using System;
using Newtonsoft.Json;
2018-04-13 17:19:50 +08:00
namespace osu.Game.Users
{
2019-12-01 08:52:41 +08:00
public class Country : IEquatable<Country>
{
/// <summary>
2017-03-18 05:16:59 +08:00
/// The name of this country.
/// </summary>
[JsonProperty(@"name")]
public string FullName;
2018-04-13 17:19:50 +08:00
/// <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;
}
}