import { PrintObject } from "./PrintObject";
/**
* gve
* @class gve.File
* @since gve
*/
export class File extends PrintObject {
/**
* 构造FIle对象
* @hideconstructor
* @param {string} [args] 构造函数参数
* @param {string} [type] 文件类型,可选参数,默认为File
* @returns gve.File
*/
constructor(args?: string, type:string = 'File') {
super();
this.url = args;
this.type = type;
if (!(this instanceof File)) {
return new File(args, type);
}
}
type: string = "File";
url: string;
}