Interface DataManager

interface DataManager {
    clearComments(): void;
    deleteComment(id: number): void;
    fetchComments(params: Partial<ListFetchParams>): void;
    findComment(id: number): undefined | CommentData;
    getComments(): CommentData[];
    getListLastFetch(): undefined | ListLastFetchData;
    getLoading(): boolean;
    getNotifies(): NotifyData[];
    getPage(): undefined | PageData;
    insertComment(comment: CommentData): void;
    loadComments(comments: CommentData[]): void;
    setListLastFetch(val: ListLastFetchData): void;
    setLoading(val: boolean): void;
    updateComment(comment: CommentData): void;
    updateNotifies(notifies: NotifyData[]): void;
    updatePage(pageData: PageData): void;
}

Methods