private IEnumerable <RequestParameter> GetRequestParameters(JObject jObject) { var token = jObject.SelectToken("data.parameters").ToString(); var parameters = JsonConvert .DeserializeObject <IEnumerable <RequestParameter> >(token); foreach (var parameter in parameters) { parameter.Description = HtmlCleaner.Clean(parameter.Description); } return(parameters); }
private IEnumerable <ResponseParameter> GetResponseParameters(JObject jObject) { var token = jObject.SelectToken("data.fields").ToString(); var parameters = JsonConvert .DeserializeObject <IEnumerable <ResponseParameter> >(token) .Where(p => p.Type != "empty_line"); foreach (var parameter in parameters) { parameter.Description = HtmlCleaner.Clean(parameter.Description); } return(parameters); }
private string GetDescription(JObject jObject) { return(HtmlCleaner.Clean(jObject.SelectToken("data.description").ToString())); }