Inheritance: JsonResponse
Exemplo n.º 1
0
        public override void HandleRequest(string jsonString, AjaxBase ajax)
        {
            MangaListRequest request = Utility.ParseJson<MangaListRequest>(jsonString);
            MangaListResponse response = new MangaListResponse();
            response.items = Manga.ToListItemJsonArray(Manga.GetMangaList(ajax, request.filter));

            ThreadHelper.Run("ProcessAutoAddStage1");

            ajax.ReturnJson(response);
        }
Exemplo n.º 2
0
        private void MangaListRequestSuccess(MangaListResponse response)
        {
            jQuery.Select("#mangas-loading").Children().Remove();

            items = response.items;
            SortItems();

            ChangePage(1);
            pagination.Refresh(true);
        }