forked from Zhetadelta/Blaseball-Livestream-Watcher
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTeam.cs
30 lines (29 loc) · 936 Bytes
/
Team.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Blaseball_Livestream
{
/// <summary>
/// Serializable class representing a single response from the list provided by the allTeams API
/// https://blaseball.com/database/allTeams returns a List<Team>
/// </summary>
public class Team : IComparable<Team>
{
public string _id { get; set; }
public string fullName { get; set; }
public string nickname { get; set; }
public string mainColor { get; set; }
public string slogan { get; set; }
public string shorthand { get; set; }
public int CompareTo(Team other)
{
return nickname.CompareTo(other.nickname);
}
public override string ToString()
{
return String.Concat(new String[3] { fullName, " - ", slogan });
}
}
}