Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2019
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 2.09 KB | None | 0 0
  1. using API.Web.Cqrs.Queries.EncounterQueries.GetEncounterConfig;
  2. using GraphQL.Types;
  3.  
  4. namespace API.Web.GraphQL.Types.QueryTypes.EncounterConfig
  5. {
  6.     public class EncounterConfigType : ObjectGraphType<Cqrs.Queries.EncounterQueries.GetEncounterConfig.EncounterConfig>
  7.     {
  8.         public EncounterConfigType()
  9.         {
  10.             Name = "EncounterConfigType";
  11.             Field(x => x.EncounterId, type: typeof(IdGraphType));
  12.             Field(x => x.FavoredPercentageTeam1, type: typeof(IntGraphType));
  13.             Field(x => x.FavoredPercentageText);
  14.             Field(x => x.Maplist, type: typeof(ListGraphType<StringGraphType>));
  15.             Field(x => x.MinPlayersToReady, type: typeof(IntGraphType));
  16.             Field(x => x.MinSpectatorsToReady, type: typeof(IntGraphType));
  17.             Field(x => x.NumberOfMaps, type: typeof(IntGraphType));
  18.             Field(x => x.PlayersPerTeam, type: typeof(IntGraphType));
  19.             Field(x => x.SideType);
  20.             Field(x => x.SkipVeto, type: typeof(BooleanGraphType));
  21.             Field(x => x.VetoFirst);
  22.             Field(x => x.Cvars, type: typeof(CvarsType));
  23.             Field(x => x.Spectators, type: typeof(SpectatorsType));
  24.             Field(x => x.Team1, type: typeof(CsgoServerTeamType));
  25.             Field(x => x.Team2, type: typeof(CsgoServerTeamType));
  26.             Field(x => x.TmInfo, type: typeof(TmInfoType));
  27.         }
  28.     }
  29.  
  30.     public class CvarsType : ObjectGraphType<Cvars>
  31.     {
  32.     }
  33.  
  34.     public class SpectatorsType : ObjectGraphType<Spectators>
  35.     {
  36.         public SpectatorsType()
  37.         {
  38.             Field(x => x.Players, type: typeof(ListGraphType<StringGraphType>));
  39.         }
  40.     }
  41.  
  42.     public class CsgoServerTeamType : ObjectGraphType<CsgoServerTeam>
  43.     {
  44.         public CsgoServerTeamType()
  45.         {
  46.             Field(x => x.Players, type: typeof(ListGraphType<StringGraphType>));
  47.             Field(x => x.Flag);
  48.             Field(x => x.Logo);
  49.             Field(x => x.Name);
  50.             Field(x => x.Tag);
  51.         }
  52.     }
  53.  
  54.     public class TmInfoType : ObjectGraphType<TmInfo>
  55.     {
  56.     }
  57. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement