public string GetPagesById(string id) { RestClient = new RestClient.RestClient { EndPoint = Pages + id, HttpMethod = Prototype.RestClient.RestClient.HttpVerb.GET }; return(Response = RestClient.DoRequest()); }
public string GetCourses() { RestClient = new RestClient.RestClient { EndPoint = Courses, HttpMethod = Prototype.RestClient.RestClient.HttpVerb.GET }; return(Response = RestClient.DoRequest()); }
public void ShowSentence() { //Instantiation of our RestClient object RestClient = new RestClient.RestClient { EndPoint = url }; string Response = RestClient.DoRequest(); Console.WriteLine(Response.ToString()); Sentences = JsonConvert.DeserializeObject <List <Cloze> >(Response); DoTransitions(); }
public void ShowQuestions() { //Instantiation of our RestClient object RestClient = new RestClient.RestClient { EndPoint = url }; string Response = RestClient.DoRequest(); Console.WriteLine(Response.ToString()); //JsonCovert does exactly what is says... Contents = JsonConvert.DeserializeObject <List <Content> >(Response); ModifyData(); DoTransition(); }