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)); }
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)); } }
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)); } }