public TaskResourceEndPoint(CloudFoundryClientV3 client,
                             ISimpleHttpClient simpleHttpClient) : base(simpleHttpClient)
 {
     this.Client = client;
 }
 internal ProcessesExperimentalEndpoint(CloudFoundryClientV3 client,
                                        ISimpleHttpClient simpleHttpClient) : base(simpleHttpClient)
 {
     this.Client = client;
 }
        internal static PagedResponseCollection <T> DeserializePage <T>(string value, CloudFoundryClientV3 client)
        {
            PagedResponseCollection <T> page = new PagedResponseCollection <T>(client.SimpleHttp);

            page.Client = client;

            using (StringReader stringReader = new StringReader(value))
            {
                using (JsonReader reader = new JsonTextReader(stringReader))
                {
                    reader.DateParseHandling = DateParseHandling.None;
                    var obj = JObject.Load(reader);
                    if (obj["pagination"] == null)
                    {
                        throw new CloudFoundryException("Value contains no pagination info");
                    }

                    page.Pagination = JsonConvert.DeserializeObject <Pagination>(obj["pagination"].ToString(), jsonSettings);
                }
            }

            page.Resources = DeserializeJsonResources <T>(value).ToList <T>();
            return(page);
        }