Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using API.Web.Cqrs.Queries.EncounterQueries.GetEncounterConfig;
- using GraphQL.Types;
- namespace API.Web.GraphQL.Types.QueryTypes.EncounterConfig
- {
- public class EncounterConfigType : ObjectGraphType<Cqrs.Queries.EncounterQueries.GetEncounterConfig.EncounterConfig>
- {
- public EncounterConfigType()
- {
- Name = "EncounterConfigType";
- Field(x => x.EncounterId, type: typeof(IdGraphType));
- Field(x => x.FavoredPercentageTeam1, type: typeof(IntGraphType));
- Field(x => x.FavoredPercentageText);
- Field(x => x.Maplist, type: typeof(ListGraphType<StringGraphType>));
- Field(x => x.MinPlayersToReady, type: typeof(IntGraphType));
- Field(x => x.MinSpectatorsToReady, type: typeof(IntGraphType));
- Field(x => x.NumberOfMaps, type: typeof(IntGraphType));
- Field(x => x.PlayersPerTeam, type: typeof(IntGraphType));
- Field(x => x.SideType);
- Field(x => x.SkipVeto, type: typeof(BooleanGraphType));
- Field(x => x.VetoFirst);
- Field(x => x.Cvars, type: typeof(CvarsType));
- Field(x => x.Spectators, type: typeof(SpectatorsType));
- Field(x => x.Team1, type: typeof(CsgoServerTeamType));
- Field(x => x.Team2, type: typeof(CsgoServerTeamType));
- Field(x => x.TmInfo, type: typeof(TmInfoType));
- }
- }
- public class CvarsType : ObjectGraphType<Cvars>
- {
- }
- public class SpectatorsType : ObjectGraphType<Spectators>
- {
- public SpectatorsType()
- {
- Field(x => x.Players, type: typeof(ListGraphType<StringGraphType>));
- }
- }
- public class CsgoServerTeamType : ObjectGraphType<CsgoServerTeam>
- {
- public CsgoServerTeamType()
- {
- Field(x => x.Players, type: typeof(ListGraphType<StringGraphType>));
- Field(x => x.Flag);
- Field(x => x.Logo);
- Field(x => x.Name);
- Field(x => x.Tag);
- }
- }
- public class TmInfoType : ObjectGraphType<TmInfo>
- {
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement