Exemplo n.º 1
0
        public override IRestRequest GetRequest()
        {
            var request = base.GetRequest();

            request.AddQueryParameter("forum", AttributeHelpers.GetParamAttributeData(Forum));

            return(request);
        }
Exemplo n.º 2
0
        public override IRestRequest GetRequest()
        {
            var request = base.GetRequest();

            if (Order.HasValue)
            {
                request.AddQueryParameter("order", AttributeHelpers.GetParamAttributeData(Order));
            }
            if (Status.HasValue)
            {
                request.AddQueryParameter("status", AttributeHelpers.GetParamAttributeData(Status));
            }
            if (!string.IsNullOrEmpty(Season))
            {
                request.AddQueryParameter("season", Season);
            }
            if (Score.HasValue)
            {
                request.AddQueryParameter("score", Score.Value.ToString());
            }
            if (Genre != null)
            {
                request.AddQueryParameter("genre", string.Join(",", Genre));
            }
            if (Studio != null)
            {
                request.AddQueryParameter("studio", string.Join(",", Studio));
            }
            if (Franchise != null)
            {
                request.AddQueryParameter("franchise", string.Join(",", Franchise));
            }
            if (Censored.HasValue)
            {
                request.AddQueryParameter("censored", Censored.Value.ToString().ToLower());
            }
            if (MyList.HasValue)
            {
                request.AddQueryParameter("mylist", AttributeHelpers.GetParamAttributeData(MyList));
            }
            if (Ids != null)
            {
                request.AddQueryParameter("ids", string.Join(",", Ids));
            }
            if (ExcludeIds != null)
            {
                request.AddQueryParameter("exclude_ids", string.Join(",", ExcludeIds));
            }
            if (!string.IsNullOrEmpty(Search))
            {
                request.AddQueryParameter("search", Search);
            }

            return(request);
        }
Exemplo n.º 3
0
        public override IRestRequest GetRequest()
        {
            var request = base.GetRequest();

            request.AddQueryParameter("kind", AttributeHelpers.GetParamAttributeData(Kind));
            if (Descending.HasValue)
            {
                request.AddQueryParameter("desc", Descending.Value.ToString());
            }

            return(request);
        }