public async Task<ReadingList> GetReadingList(ListState state = ListState.Unread, bool onlyFavorites = false, string tagname = "", ContentType content = ContentType.All, SortOn sort = SortOn.Newest, DetailType detail = DetailType.Simple) { List<Param> parameters = new List<Param>(); parameters.Add(new Param("state",state.ToString().ToLower())); parameters.Add(new Param("favorite", onlyFavorites ? "1" : "0")); if (tagname != "") { parameters.Add(new Param("tag", tagname)); } if (content != ContentType.All) { parameters.Add(new Param("contentType", content.ToString().ToLower())); } parameters.Add(new Param("sort", sort.ToString().ToLower())); parameters.Add(new Param("detailType", detail.ToString().ToLower())); IRestResponse resp = await HandleRequest("get.php", Call.POST, parameters); var regexd = Regex.Replace(Regex.Replace(resp.Content, @"""\d+"":", "").Replace("\"list\":{", "\"list\":[").Replace("}},\"error\"", "}],\"error\""), "{{(([^{}]|{[^{}]+}|)+)}(([^{}]|{[^{}]+}|)+)}", "[{$1}$3]"); return JsonConvert.DeserializeObject<ReadingList>(regexd); }