public FuzzyDateIntQueryFields(AniListQueryType queryType)
 {
     _queryType         = queryType;
     _allowedQueryTypes = new List <AniListQueryType> {
         AniListQueryType.Media, AniListQueryType.Page
     };
 }
示例#2
0
        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
            }));
        }
示例#3
0
 public AiringScheduleEdgeQueryFields(AniListQueryType queryType)
 {
     _queryType         = queryType;
     _allowedQueryTypes = new List <AniListQueryType> {
         AniListQueryType.Media, AniListQueryType.Page
     };
 }
示例#4
0
 public FavouritesQueryFields(AniListQueryType queryType)
 {
     _queryType         = queryType;
     _allowedQueryTypes = new List <AniListQueryType> {
         AniListQueryType.User
     };
 }
示例#5
0
 public StaffConnectionQueryFields(AniListQueryType queryType)
 {
     _queryType         = queryType;
     _allowedQueryTypes = new List <AniListQueryType> {
         AniListQueryType.Staff, AniListQueryType.Media
     };
 }
示例#6
0
 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
     };
 }
示例#9
0
 public NameQueryFields(AniListQueryType queryType)
 {
     _queryType         = queryType;
     _allowedQueryTypes = new List <AniListQueryType> {
         AniListQueryType.Staff, AniListQueryType.Page
     };
 }
示例#10
0
 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
     };
 }
示例#13
0
        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
     };
 }
示例#16
0
 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
     };
 }
示例#18
0
 /// <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;
 }
示例#19
0
 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);
 }
示例#20
0
 internal CharacterQueryFields(AniListQueryType queryType)
 {
     _queryType         = queryType;
     _allowedQueryTypes = new List <AniListQueryType> {
         AniListQueryType.Character, AniListQueryType.Media, AniListQueryType.Page
     };
 }
示例#21
0
 public ThreadCategoryQueryFields(AniListQueryType queryType)
 {
     _queryType         = queryType;
     _allowedQueryTypes = new List <AniListQueryType> {
         AniListQueryType.Thread
     };
 }
示例#22
0
        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
     };
 }
示例#24
0
 internal MediaListQueryFields(AniListQueryType queryType)
 {
     _queryType         = queryType;
     _allowedQueryTypes = new List <AniListQueryType> {
         AniListQueryType.MediaList
     };
 }
示例#25
0
 public UserActivityHistoryQueryFields(AniListQueryType queryType)
 {
     _queryType         = queryType;
     _allowedQueryTypes = new List <AniListQueryType> {
         AniListQueryType.User
     };
 }
 public StudioEdgeQueryFields(AniListQueryType queryType)
 {
     _queryType         = queryType;
     _allowedQueryTypes = new List <AniListQueryType> {
         AniListQueryType.Studio
     };
 }
示例#27
0
 public UserStatsQueryFields(AniListQueryType queryType)
 {
     _queryType         = queryType;
     _allowedQueryTypes = new List <AniListQueryType> {
         AniListQueryType.User
     };
 }
示例#28
0
 public AiringProgressionQueryFields(AniListQueryType queryType)
 {
     _queryType         = queryType;
     _allowedQueryTypes = new List <AniListQueryType> {
         AniListQueryType.Media, AniListQueryType.Page
     };
 }
示例#29
0
 internal GraphQueryArgument(string fieldName, Type parentClassType, AniListQueryType allowedInQueryType, QueryArgumentRules queryArgumentRules)
 {
     FieldName                      = fieldName;
     ParentClassType                = parentClassType;
     AllowedInQueryType             = allowedInQueryType;
     QueryArgumentRules             = queryArgumentRules;
     GraphQueryArgumentVariableType = GraphHelper.GetGraphVariableType(typeof(T));
 }
示例#30
0
 public MediaListOptionsQueryFields(AniListQueryType queryType)
 {
     _queryType         = queryType;
     _allowedQueryTypes = new List <AniListQueryType>
     {
         AniListQueryType.MediaList
     };
 }