public async Task <Model.Upcoming> CreateUpcoming(string Title, string NickName, string TeamName, int Season = 0, int Episode = 0) { var Request = new Requests.Upcoming() { title = Title, season = Season, episode = Episode, nickname = NickName, teamname = TeamName }; var Url = "/upcomings"; var Response = await Query <Response, Requests.Upcoming>(Url, Methods.POST, Request); return(Response.upcoming); }
public async Task <Model.Upcoming> UpdateUpcoming(string ID, string NickName, string TeamName, int AllLines, int TranslatedLines, Requests.Upcoming.Statuses Status) { var Request = new Requests.Upcoming() { all_lines = AllLines, translated_lines = TranslatedLines, nickname = NickName, teamname = TeamName, status = (int)Status }; var Url = String.Format("/upcomings/{0}", ID); var Response = await Query <Response, Requests.Upcoming>(Url, Methods.PATCH, Request); return(Response.upcoming); }