Start of the Structure of event not tied to Challonge or smash.

Lads und Canzer \o>
This commit is contained in:
2022-03-20 02:59:48 +01:00
parent ab02d292da
commit 87c9883245
22 changed files with 709 additions and 445 deletions

View File

@@ -1,66 +1,90 @@
using System.Collections.Generic;
using System;
using System.Collections.Generic;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
namespace LaDOSE.Business.Provider.SmashProvider
{
public class ResponseType
public class PageInfoType
{
public TournamentType Tournament { get; set; }
public class TournamentType
{
public int id { get; set; }
public int total { get; set; }
public int totalPages { get; set; }
public int page { get; set; }
public int perPage { get; set; }
public string sortBy { get; set; }
public string filter { get; set; }
}
public string Name { get; set; }
public class TournamentType
{
public int id { get; set; }
public List<Event> Events { get; set; }
public string Name { get; set; }
}
[JsonConverter(typeof(UnixDateTimeConverter))]
public DateTime startAt { get; set; }
public List<EventType> Events { get; set; }
public class Event
{
public int id { get; set; }
}
public class VideoGameType
{
public int id { get; set; }
public string Name { get; set; }
}
public string name { get; set; }
public string state { get; set; }
public VideoGame videogame { get; set; }
public Node<Standing> standings { get; set; }
}
public class StandingType
{
public int id { get; set; }
public class VideoGame
{
public int id { get; set; }
public string Name { get; set; }
}
public int placement { get; set; }
public class Node<T>
{
public List<T> nodes { get; set; }
}
public class Standing
{
public int id { get; set; }
public int placement { get; set; }
public PlayerType player { get; set; }
}
public class PlayerType
{
public int id { get; set; }
public string gamerTag { get; set; }
public UserType user { get; set; }
}
public class UserType
{
public int id { get; set; }
public string name { get; set; }
public Player player { get; set; }
}
public class Player
{
public int id { get; set; }
public string gamerTag { get; set; }
public User user { get; set; }
}
public class User
{
public int id { get; set; }
public string name { get; set; }
}
}
public class EventType
{
public int id { get; set; }
public string name { get; set; }
public string state { get; set; }
public VideoGameType videogame { get; set; }
public Node<StandingType> standings { get; set; }
}
public class Node<T>
{
public PageInfoType pageInfo { get; set; }
public List<T> nodes { get; set; }
}
public class TournamentResponse
{
public TournamentType Tournament { get; set; }
}
public class EventResponse
{
public EventType Event { get; set; }
}
}