@ginstone/nga-api
Version:
87 lines (86 loc) • 1.64 kB
TypeScript
import { ForumType } from "../../enums/ForumType";
export declare class Forum {
/**
* 自定义声望等级
*/
readonly customLevels?: CustomLevel[];
/**
* 版面名称
*/
readonly forumName?: string;
/**
* 版面id
*/
readonly forumId?: number;
/**
* 合集标题
*/
readonly colTitle?: string;
/**
* 合集id
*/
readonly colTid?: number;
/**
* 子版面信息
*/
readonly subForums?: SubForum[];
/**
* 置顶帖id
*/
readonly toppedTopicId?: number;
/**
* 版面图标地址
*/
readonly icon?: string;
readonly iconBig?: string;
constructor(raw: ForumRaw);
}
export declare class SubForum {
/**
* 类型
*/
readonly type: ForumType;
/**
* id
*/
readonly id: number;
/**
* 名称
*/
readonly name: string;
/**
* 在 <a href="https://bbs.nga.cn/thread.php?fid=635">635版</a> 的镜像贴id
*/
readonly mirrorId: number;
constructor(key: string, raw: SubForumRaw);
}
/**
* 版面自定义的声望等级
*/
export declare class CustomLevel {
/**
* 等级
*/
readonly rank: number;
/**
* 名称
*/
readonly name: string;
constructor(rank: number, name: string);
}
export interface ForumRaw {
custom_level?: string;
name?: string;
fid?: number;
set_topic_subject?: string;
set_topic_tid?: number;
sub_forums?: any;
topped_topic?: number;
}
export interface SubForumRaw {
0: number;
1: string;
2: any;
3: number;
4: number;
}