/**
 * AccessToken
 */
export class AccessUser{
    appid: string;
    openid: string;
    userid: number;
    weixinid: string;
    unionid: string;
    name: string;
    nickname: string;
    sex: number;
    mobile: string;
    headimgurl: string
    subscribe: boolean;
    deviceId: string;

    constructor(options: {
        appid?: string;
        openid?: string;
        userid?: number;
        weixinid?: string;
        unionid?: string;
        name?: string;
        nickname?: string;
        sex?: number;
        mobile?: string;
        headimgurl?: string;
        subscribe?: boolean;
        deviceId?: string;
    } = {}) {
        this.appid = options.appid || '';
        this.openid = options.openid || '';
        this.userid = options.userid || 0;
        this.weixinid = options.weixinid || '';
        this.unionid = options.unionid || '';
        this.name = options.name || '';
        this.nickname = options.nickname || '';
        this.sex = options.sex || 0;
        this.mobile = options.mobile || '';
        this.headimgurl = options.headimgurl || '';
        this.subscribe = options.subscribe || false;
        this.deviceId = options.deviceId || '';
    }
}
