Exemplo n.º 1
0
        public Task <IChart> GetChart(ulong aId, uint aStart, uint aCount)
        {
            string method = "chart/{id}";
            List <IRequestParameter> parms = new List <IRequestParameter>()
            {
                RequestParameter.GetNewUrlSegmentParamter("id", aId),
            };

            return(GetChart(method, parms, aStart, aCount));
        }
Exemplo n.º 2
0
        private void AddToParamList(IList <IRequestParameter> aParams, uint aStart, uint aCount)
        {
            if (aCount < uint.MaxValue && aStart < uint.MaxValue)
            {
                aParams.Add(RequestParameter.GetNewQueryStringParameter("index", aStart));
                aParams.Add(RequestParameter.GetNewQueryStringParameter("limit", aCount));
            }

            if (IsAuthenticated)
            {
                aParams.Add(RequestParameter.GetAccessTokenParamter(AccessToken));
            }
        }
Exemplo n.º 3
0
        private void AddToParamList(IList <IRequestParameter> parms, uint start, uint count)
        {
            if (count <= uint.MaxValue && start <= uint.MaxValue)
            {
                parms.Add(RequestParameter.GetNewQueryStringParameter("index", start));
                parms.Add(RequestParameter.GetNewQueryStringParameter("limit", count));
            }

            if (IsAuthenticated)
            {
                parms.Add(RequestParameter.GetAccessTokenParamter(AccessToken));
            }
        }