Initial commit
This commit is contained in:
125
models/Schedule.cs
Normal file
125
models/Schedule.cs
Normal file
@@ -0,0 +1,125 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace azfx_calendars_functions_dotnet.Schedule
|
||||
{
|
||||
public class Status {
|
||||
public string abstractGameState { get; set; }
|
||||
public string codedGameState { get; set; }
|
||||
public string detailedState { get; set; }
|
||||
public string statusCode { get; set; }
|
||||
public string abstractGameCode { get; set; }
|
||||
public string reason { get; set; }
|
||||
public bool? startTimeTBD { get; set; }
|
||||
}
|
||||
|
||||
public class LeagueRecord {
|
||||
public int wins { get; set; }
|
||||
public int losses { get; set; }
|
||||
public string pct { get; set; }
|
||||
}
|
||||
|
||||
public class Team {
|
||||
public int id { get; set; }
|
||||
public string name { get; set; }
|
||||
public string link { get; set; }
|
||||
}
|
||||
|
||||
public class Away {
|
||||
public LeagueRecord leagueRecord { get; set; }
|
||||
public int? score { get; set; }
|
||||
public Team team { get; set; }
|
||||
public bool isWinner { get; set; }
|
||||
public bool splitSquad { get; set; }
|
||||
public int? seriesNumber { get; set; }
|
||||
}
|
||||
|
||||
public class LeagueRecord2 {
|
||||
public int wins { get; set; }
|
||||
public int losses { get; set; }
|
||||
public string pct { get; set; }
|
||||
}
|
||||
|
||||
public class Team2 {
|
||||
public int id { get; set; }
|
||||
public string name { get; set; }
|
||||
public string link { get; set; }
|
||||
}
|
||||
|
||||
public class Home {
|
||||
public LeagueRecord2 leagueRecord { get; set; }
|
||||
public int? score { get; set; }
|
||||
public Team2 team { get; set; }
|
||||
public bool isWinner { get; set; }
|
||||
public bool splitSquad { get; set; }
|
||||
public int? seriesNumber { get; set; }
|
||||
}
|
||||
|
||||
public class Teams {
|
||||
public Away away { get; set; }
|
||||
public Home home { get; set; }
|
||||
}
|
||||
|
||||
public class Venue {
|
||||
public int id { get; set; }
|
||||
public string name { get; set; }
|
||||
public string link { get; set; }
|
||||
}
|
||||
|
||||
public class Content {
|
||||
public string link { get; set; }
|
||||
}
|
||||
|
||||
public class Game {
|
||||
public int gamePk { get; set; }
|
||||
public string link { get; set; }
|
||||
public string gameType { get; set; }
|
||||
public string season { get; set; }
|
||||
public string gameDate { get; set; }
|
||||
public string officialDate { get; set; }
|
||||
public Status status { get; set; }
|
||||
public Teams teams { get; set; }
|
||||
public Venue venue { get; set; }
|
||||
public Content content { get; set; }
|
||||
public bool isTie { get; set; }
|
||||
public int gameNumber { get; set; }
|
||||
public bool publicFacing { get; set; }
|
||||
public string doubleHeader { get; set; }
|
||||
public string gamedayType { get; set; }
|
||||
public string tiebreaker { get; set; }
|
||||
public string calendarEventID { get; set; }
|
||||
public string seasonDisplay { get; set; }
|
||||
public string dayNight { get; set; }
|
||||
public string description { get; set; }
|
||||
public int scheduledInnings { get; set; }
|
||||
public bool reverseHomeAwayStatus { get; set; }
|
||||
public int inningBreakLength { get; set; }
|
||||
public string seriesDescription { get; set; }
|
||||
public string recordSource { get; set; }
|
||||
public string ifNecessary { get; set; }
|
||||
public string ifNecessaryDescription { get; set; }
|
||||
public int? gamesInSeries { get; set; }
|
||||
public int? seriesGameNumber { get; set; }
|
||||
public DateTime? rescheduleDate { get; set; }
|
||||
public DateTime? rescheduledFrom { get; set; }
|
||||
}
|
||||
|
||||
public class Date {
|
||||
public string date { get; set; }
|
||||
public int totalItems { get; set; }
|
||||
public int totalEvents { get; set; }
|
||||
public int totalGames { get; set; }
|
||||
public int totalGamesInProgress { get; set; }
|
||||
public List<Game> games { get; set; }
|
||||
public List<object> events { get; set; }
|
||||
}
|
||||
|
||||
public class Root {
|
||||
public string copyright { get; set; }
|
||||
public int totalItems { get; set; }
|
||||
public int totalEvents { get; set; }
|
||||
public int totalGames { get; set; }
|
||||
public int totalGamesInProgress { get; set; }
|
||||
public List<Date> dates { get; set; }
|
||||
}
|
||||
}
|
||||
68
models/Teams.cs
Normal file
68
models/Teams.cs
Normal file
@@ -0,0 +1,68 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace azfx_calendars_functions_dotnet.Teams
|
||||
{
|
||||
public class Venue
|
||||
{
|
||||
public int id { get; set; }
|
||||
public string name { get; set; }
|
||||
public string link { get; set; }
|
||||
}
|
||||
|
||||
public class League
|
||||
{
|
||||
public int id { get; set; }
|
||||
public string name { get; set; }
|
||||
public string link { get; set; }
|
||||
}
|
||||
|
||||
public class Division
|
||||
{
|
||||
public int id { get; set; }
|
||||
public string name { get; set; }
|
||||
public string link { get; set; }
|
||||
}
|
||||
|
||||
public class Sport
|
||||
{
|
||||
public int id { get; set; }
|
||||
public string link { get; set; }
|
||||
public string name { get; set; }
|
||||
}
|
||||
|
||||
public class SpringLeague
|
||||
{
|
||||
public int id { get; set; }
|
||||
public string name { get; set; }
|
||||
public string link { get; set; }
|
||||
public string abbreviation { get; set; }
|
||||
}
|
||||
|
||||
public class Team
|
||||
{
|
||||
public int id { get; set; }
|
||||
public string name { get; set; }
|
||||
public string link { get; set; }
|
||||
public int season { get; set; }
|
||||
public Venue venue { get; set; }
|
||||
public string teamCode { get; set; }
|
||||
public string fileCode { get; set; }
|
||||
public string abbreviation { get; set; }
|
||||
public string teamName { get; set; }
|
||||
public string locationName { get; set; }
|
||||
public string firstYearOfPlay { get; set; }
|
||||
public League league { get; set; }
|
||||
public Division division { get; set; }
|
||||
public Sport sport { get; set; }
|
||||
public string shortName { get; set; }
|
||||
public SpringLeague springLeague { get; set; }
|
||||
public string allStarStatus { get; set; }
|
||||
public bool active { get; set; }
|
||||
}
|
||||
|
||||
public class Root
|
||||
{
|
||||
public string copyright { get; set; }
|
||||
public List<Team> teams { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user