@tnwx/commons
Version:
TTNWX 微信系开发脚手架之公共模块
15 lines (14 loc) • 505 B
TypeScript
import { OutMsg } from './OutMsg';
import { News } from './News';
import { InMsg } from '../in/InMsg';
export declare class OutNewsMsg extends OutMsg {
private articles;
constructor(inMsg: InMsg);
toXml(): string;
get getArticleCount(): number;
get getArticles(): News[];
set setArticles(articles: News[]);
addNews(articles: News[]): OutNewsMsg;
addArticle(title: string, description: string, picUrl: string, url: string): OutNewsMsg;
addNew(news: News): OutNewsMsg;
}