public FuzzyDateIntQueryFields(AniListQueryType queryType) { _queryType = queryType; _allowedQueryTypes = new List <AniListQueryType> { AniListQueryType.Media, AniListQueryType.Page }; }
private void InitializeProperties(AniListQueryType queryType) { Id = new GraphQueryArgument <int>("id", GetType(), queryType, new QueryArgumentRules(false, null, null, new List <AniListQueryType> { AniListQueryType.Staff })); Search = new GraphQueryArgument <string>("search", GetType(), queryType, new QueryArgumentRules(false, null, null, new List <AniListQueryType> { AniListQueryType.Staff })); IdNot = new GraphQueryArgument <int>("id_not", GetType(), queryType, new QueryArgumentRules(false, null, null, new List <AniListQueryType> { AniListQueryType.Staff })); IdIn = new GraphQueryArgument <IEnumerable <int> >("id_in", GetType(), queryType, new QueryArgumentRules(false, null, null, new List <AniListQueryType> { AniListQueryType.Staff })); IdNotIn = new GraphQueryArgument <IEnumerable <int> >("id_not_in", GetType(), queryType, new QueryArgumentRules(false, null, null, new List <AniListQueryType> { AniListQueryType.Staff })); Sort = new GraphQueryArgument <IEnumerable <int> >("sort", GetType(), queryType, new QueryArgumentRules(false, null, null, new List <AniListQueryType> { AniListQueryType.Staff })); Page = new GraphQueryArgument <int>("page", GetType(), queryType, new QueryArgumentRules(false, null, null, new List <AniListQueryType> { AniListQueryType.Media, AniListQueryType.Page })); PerPage = new GraphQueryArgument <int>("perPage", GetType(), queryType, new QueryArgumentRules(false, 25, null, new List <AniListQueryType> { AniListQueryType.Media, AniListQueryType.Page })); }
public AiringScheduleEdgeQueryFields(AniListQueryType queryType) { _queryType = queryType; _allowedQueryTypes = new List <AniListQueryType> { AniListQueryType.Media, AniListQueryType.Page }; }
public FavouritesQueryFields(AniListQueryType queryType) { _queryType = queryType; _allowedQueryTypes = new List <AniListQueryType> { AniListQueryType.User }; }
public StaffConnectionQueryFields(AniListQueryType queryType) { _queryType = queryType; _allowedQueryTypes = new List <AniListQueryType> { AniListQueryType.Staff, AniListQueryType.Media }; }
public StudioQueryFields(AniListQueryType queryType) { _queryType = queryType; _allowedQueryTypes = new List <AniListQueryType> { AniListQueryType.Media, AniListQueryType.Page }; }
public ThreadCommentQueryFields(AniListQueryType queryType) { _queryType = queryType; _allowedQueryTypes = new List <AniListQueryType> { AniListQueryType.ThreadComment }; }
internal CharacterConnectionQueryFields(AniListQueryType queryType) { _queryType = queryType; _allowedQueryTypes = new List <AniListQueryType> { AniListQueryType.Media, AniListQueryType.Staff, AniListQueryType.User }; }
public NameQueryFields(AniListQueryType queryType) { _queryType = queryType; _allowedQueryTypes = new List <AniListQueryType> { AniListQueryType.Staff, AniListQueryType.Page }; }
public AiringScheduleConnectionQueryFields(AniListQueryType queryType) { _queryType = queryType; _allowedQueryTypes = new List <AniListQueryType> { AniListQueryType.AiringSchedule }; }
public ParsedMarkdownQueryFields(AniListQueryType queryType) { _queryType = queryType; _allowedQueryTypes = new List <AniListQueryType> { AniListQueryType.Markdown }; }
public StatusDistributionQueryFields(AniListQueryType queryType) { _queryType = queryType; _allowedQueryTypes = new List <AniListQueryType> { AniListQueryType.Media, AniListQueryType.User }; }
private void InitializeBuilder(AniListQueryType queryType) { InitializeBase(queryType); OtherFields = new PageQueryBuilderFields(queryType); OtherArguments = new PageQueryBuilderArguments(queryType); }
public ReviewEdgeQueryFields(AniListQueryType queryType) { _queryType = queryType; _allowedQueryTypes = new List <AniListQueryType> { AniListQueryType.Review }; }
internal MediaEdgeQueryFields(AniListQueryType queryType) { _queryType = queryType; _allowedQueryTypes = new List <AniListQueryType> { AniListQueryType.Media, AniListQueryType.Page }; }
private void InitializeProperties(AniListQueryType queryType) { Id = new GraphQueryArgument <int>("id", GetType(), queryType, new QueryArgumentRules(false, null, null, new List <AniListQueryType> { AniListQueryType.Thread })); UserId = new GraphQueryArgument <int>("userId", GetType(), queryType, new QueryArgumentRules(false, null, null, new List <AniListQueryType> { AniListQueryType.Thread })); ReplyUserId = new GraphQueryArgument <int>("replyUserId", GetType(), queryType, new QueryArgumentRules(false, null, null, new List <AniListQueryType> { AniListQueryType.Thread })); Subscribed = new GraphQueryArgument <bool>("subscribed", GetType(), queryType, new QueryArgumentRules(false, null, null, new List <AniListQueryType> { AniListQueryType.Thread })); CategoryId = new GraphQueryArgument <int>("categoryId", GetType(), queryType, new QueryArgumentRules(false, null, null, new List <AniListQueryType> { AniListQueryType.Thread })); MediaCategoryId = new GraphQueryArgument <int>("mediaCategoryId", GetType(), queryType, new QueryArgumentRules(false, null, null, new List <AniListQueryType> { AniListQueryType.Thread })); Search = new GraphQueryArgument <string>("search", GetType(), queryType, new QueryArgumentRules(false, null, null, new List <AniListQueryType> { AniListQueryType.Thread })); IdIn = new GraphQueryArgument <IEnumerable <int> >("id_in", GetType(), queryType, new QueryArgumentRules(false, null, null, new List <AniListQueryType> { AniListQueryType.Thread })); Sort = new GraphQueryArgument <IEnumerable <ThreadSort> >("sort", GetType(), queryType, new QueryArgumentRules(false, null, null, new List <AniListQueryType> { AniListQueryType.Thread })); }
public MediaStreamingEpisodeQueryFields(AniListQueryType queryType) { _queryType = queryType; _allowedQueryTypes = new List <AniListQueryType> { AniListQueryType.Media, AniListQueryType.Page }; }
/// <summary> /// Initilizes an instance of a GraphQueryField. /// </summary> /// <param name="fieldName">Raw name of the field to be used in a graph query.</param> /// <param name="parentClassType">The class this fields belongs to.</param> /// <param name="allowedInQueryType">The query type this instance of graph query field is allowed to be used in.</param> /// <param name="rules">The rules and contraints to be applied to this field in a graph query.</param> public GraphQueryField(string fieldName, Type parentClassType, AniListQueryType allowedInQueryType, FieldRules rules) { FieldName = fieldName; ParentClassType = parentClassType; Rules = rules; AllowedInQueryType = allowedInQueryType; }
private void InitializeFields(AniListQueryType queryType) { Character = new CharacterQueryFields(queryType); MediaTitle = new MediaTitleQueryFields(queryType); MediaTrailer = new MediaTrailerQueryFields(queryType); CoverImageData = new ImageDataQueryFields(queryType); MediaTag = new MediaTagQueryFields(queryType); MediaConnection = new MediaConnectionQueryFields(queryType); MediaEdge = new MediaEdgeQueryFields(queryType); PagiInfoQuery = new PageInfoQueryFields(queryType); CharacterConnection = new CharacterConnectionQueryFields(queryType); CharacterEdge = new CharacterEdgeQueryFields(queryType); Name = new NameQueryFields(queryType); StaffConnection = new StaffConnectionQueryFields(queryType); Staff = new StaffQueryFields(queryType); StaffEdge = new StaffEdgeQueryFields(queryType); StudioConnection = new StudioConnectionQueryFields(queryType); StudioEdge = new StudioEdgeQueryFields(queryType); Studio = new StudioQueryFields(queryType); AiringSchedule = new AiringScheduleQueryFields(queryType); AiringScheduleConnection = new AiringScheduleConnectionQueryFields(queryType); AiringScheduleEdge = new AiringScheduleEdgeQueryFields(queryType); MediaExternalLink = new MediaExternalLinkQueryFields(queryType); MediaStreamingEpisode = new MediaStreamingEpisodeQueryFields(queryType); MediaRank = new MediaRankQueryFields(queryType); MediaList = new MediaListQueryFields(queryType); ReviewConnection = new ReviewConnectionQueryFields(queryType); ReviewEdge = new ReviewEdgeQueryFields(queryType); Review = new ReviewQueryFields(queryType); MediaStats = new MediaStatsQueryFields(queryType); }
internal CharacterQueryFields(AniListQueryType queryType) { _queryType = queryType; _allowedQueryTypes = new List <AniListQueryType> { AniListQueryType.Character, AniListQueryType.Media, AniListQueryType.Page }; }
public ThreadCategoryQueryFields(AniListQueryType queryType) { _queryType = queryType; _allowedQueryTypes = new List <AniListQueryType> { AniListQueryType.Thread }; }
private void InitializeProperties(AniListQueryType queryType) { Id = new GraphQueryArgument <int>("id", GetType(), queryType, new QueryArgumentRules(false, null, null, new List <AniListQueryType> { AniListQueryType.Review })); MediaId = new GraphQueryArgument <int>("mediaId", GetType(), queryType, new QueryArgumentRules(false, null, null, new List <AniListQueryType> { AniListQueryType.Review })); UserId = new GraphQueryArgument <int>("userId", GetType(), queryType, new QueryArgumentRules(false, null, null, new List <AniListQueryType> { AniListQueryType.Review })); MediaType = new GraphQueryArgument <MediaType>("mediaType", GetType(), queryType, new QueryArgumentRules(false, null, null, new List <AniListQueryType> { AniListQueryType.Review })); Search = new GraphQueryArgument <string>("search", GetType(), queryType, new QueryArgumentRules(false, null, null, new List <AniListQueryType> { AniListQueryType.Review })); Sort = new GraphQueryArgument <IEnumerable <ReviewSort> >("sort", GetType(), queryType, new QueryArgumentRules(false, null, null, new List <AniListQueryType> { AniListQueryType.Review })); Limit = new GraphQueryArgument <int>("limit", GetType(), queryType, new QueryArgumentRules(false, null, null, new List <AniListQueryType> { AniListQueryType.Media, AniListQueryType.Page })); Page = new GraphQueryArgument <int>("page", GetType(), queryType, new QueryArgumentRules(false, null, null, new List <AniListQueryType> { AniListQueryType.Media, AniListQueryType.Page })); PerPage = new GraphQueryArgument <int>("perPage", GetType(), queryType, new QueryArgumentRules(false, 25, null, new List <AniListQueryType> { AniListQueryType.Media, AniListQueryType.Page })); }
public PageInfoQueryFields(AniListQueryType queryType) { _queryType = queryType; _allowedQueryTypes = new List <AniListQueryType> { AniListQueryType.Page }; }
internal MediaListQueryFields(AniListQueryType queryType) { _queryType = queryType; _allowedQueryTypes = new List <AniListQueryType> { AniListQueryType.MediaList }; }
public UserActivityHistoryQueryFields(AniListQueryType queryType) { _queryType = queryType; _allowedQueryTypes = new List <AniListQueryType> { AniListQueryType.User }; }
public StudioEdgeQueryFields(AniListQueryType queryType) { _queryType = queryType; _allowedQueryTypes = new List <AniListQueryType> { AniListQueryType.Studio }; }
public UserStatsQueryFields(AniListQueryType queryType) { _queryType = queryType; _allowedQueryTypes = new List <AniListQueryType> { AniListQueryType.User }; }
public AiringProgressionQueryFields(AniListQueryType queryType) { _queryType = queryType; _allowedQueryTypes = new List <AniListQueryType> { AniListQueryType.Media, AniListQueryType.Page }; }
internal GraphQueryArgument(string fieldName, Type parentClassType, AniListQueryType allowedInQueryType, QueryArgumentRules queryArgumentRules) { FieldName = fieldName; ParentClassType = parentClassType; AllowedInQueryType = allowedInQueryType; QueryArgumentRules = queryArgumentRules; GraphQueryArgumentVariableType = GraphHelper.GetGraphVariableType(typeof(T)); }
public MediaListOptionsQueryFields(AniListQueryType queryType) { _queryType = queryType; _allowedQueryTypes = new List <AniListQueryType> { AniListQueryType.MediaList }; }