@ginstone/nga-api
Version:
49 lines (48 loc) • 1.38 kB
TypeScript
import { ReadBodyRaw } from "./ReadBody";
import { ForumRaw } from "../field/Forum";
import { TopicDetailRaw } from "../field/TopicDetail";
import { CurrentUser } from "../field/CurrentUser";
import { ReplyInfoRaw } from "../field/ReplyInfo";
export declare const TAB_PLACEHOLDER = "{\u5236\u8868\u7B26\u5360\u4F4D}";
/**
* read.php 解析网页得到的数据
*/
export declare class ReadDocBody implements ReadBodyRaw {
__CU: CurrentUser;
__F: ForumRaw;
__PAGE: number;
__R: ReplyDocInfoRaw[];
__ROWS: number;
__R__ROWS_PAGE: number;
__T: TopicDetailRaw;
__U: any;
totalPage?: number;
constructor(p: {
doc: HTMLHtmlElement;
html: string;
});
}
export declare class ReplyDocInfoRaw implements ReplyInfoRaw {
tid?: number;
"14": any;
authorid?: number;
from_client?: string;
lou?: number;
pid?: number;
postdate?: number | string;
recommend: number;
score: number;
score_2: number;
type?: number;
postdatetimestamp?: number;
subject?: string;
content?: string;
alterinfo?: string;
reply_to?: number;
attachs: any;
comment: any;
hotreply: any;
vote?: string;
constructor(replyTable: Element, result: (undefined | string)[]);
static handleResult(result: (undefined | string)[], index: number, handle: (value: string) => void): void;
}