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