// module g2.account_dep {
//     // info 模块
//     // Account info
//     export class InfoAccount {
//         public id:string;               // id
//         public type:number;             // accountType
//         public deviceID:string;         // deviceID
//         public channel:string;          // 账号创建时的channel
//         public mobile:string;           // 手机号
//         public password:string;         // 密码
//         public email:string;
//         public createTime:number;       // createTime
//         public lastLoginTime:number;    // lastLoginTime
//         public aplTest:boolean;         // aplTest
//         public aplUserID:string;
//         public aplPassword:string;
//         // 从obj完成初始化
//         public initFromObj(_obj:any){
//             // 定义工具函数
//             let LOG_ERROR:Function = (_msg:string) => {
//                 Log.error(`InfoAccount.initFromObj():${_msg}`);
//             }
//             // 检查参数
//             if(null == _obj){
//                 LOG_ERROR("null _obj");
//                 return;
//             }
//             // 写入参数
//             this.id = _obj.id;
//             this.type = _obj.type;
//             this.channel = _obj.channel;
//             this.deviceID = _obj.deviceID;
//             this.mobile = _obj.mobile;
//             this.password = _obj.password;
//             this.email = _obj.email;
//             this.createTime = _obj.createTime;
//             this.lastLoginTime = _obj.lastLoginTime;
//             this.aplTest = _obj.aplTest;
//             this.aplUserID = _obj.aplUserID;
//             this.aplPassword = _obj.aplPassword;
//         }
//     }
//     // 游戏列表info对象
//     export class InfoGameList {
//         private m_gameList:Dictionary = new Dictionary();
//         public recommandGameID:string;
//         public initFromObj(_obj:any){
//             let LOG_ERROR:Function = (_msg:string) => {
//                 Log.error(`InfoGameList.initFromObj():${_msg}`);
//             }
//             if(null == _obj){
//                 LOG_ERROR("null _obj");
//                 return;
//             }
//             // 加载gameList
//             let gameList:Array<any> = _obj.gameList;
//             this.m_gameList.clear();
//             if(null != gameList){
//                 let gameCount:number = gameList.length;
//                 for(let i:number = 0; i < gameCount; i ++){
//                     let gameObj:any = gameList[i];
//                     let gameServerInfo:InfoGameServer = new InfoGameServer();
//                     gameServerInfo.initFromObj(gameObj);
//                     this.m_gameList.set(gameServerInfo.id, gameServerInfo);
//                 }
//             }
//             // 获取推荐服务器
//             this.recommandGameID = _obj.recommandGameID;
//         }
//         // 获取游戏列表
//         public getGameList():Array<InfoGameServer> {
//             return this.m_gameList.values;
//         }
//         // 根据id获取gameServerInfo
//         public getGameServerByID(_gameID:string):InfoGameServer {
//             return this.m_gameList.get(_gameID);
//         }
//         /**
//          * 添加game server info
//          * @param _gameServerInfo 
//          */
//         public addGameServer(_gameServerInfo:InfoGameServer) {
//             if(null == _gameServerInfo) {
//                 Log.error("InfoGameList.addGameServer():null _gameServerInfo.");
//                 return;
//             }
//             this.m_gameList.set(_gameServerInfo.id, _gameServerInfo);
//         }
//     }
//     // GameServer info
//     export class InfoGameServer {
//         public id:string;
//         public host:string;
//         public name:string;
//         public bmartURL:string;
//         /**
//          * 游戏服状态
//          */
//         public status:number;
//         public isNew:boolean;
//         /**
//          * 在该时间戳之后创建的角色,无法看见该游戏分区
//          */
//         public hideAccountTime:number;
//         // 从obj初始化
//         public initFromObj(_obj:any){
//             // 工具函数定义
//             let LOG_ERROR:Function = (_msg) => {
//                 Log.error(`InfoGameServer.initFromObj():${_msg}`);
//             }
//             // 校验参数
//             if(null == _obj){
//                 LOG_ERROR("null _obj");
//                 return;
//             }
//             // 获取数据
//             this.id = _obj.id;
//             this.host = _obj.host;
//             this.name = _obj.name;
//             this.bmartURL = _obj.bmart_url;
//             this.status = _obj.status;
//             this.isNew = _obj.is_new;
//             this.hideAccountTime = _obj.hide_account_time;
//         }
//     }
//     // accountServerInfo
//     export class InfoAccountServer {
//         // account服务器状态
//         public serverStatus:number;
//         // 公告地址
//         public annoURL:string;
//         // validCode minIssueTime
//         public regMobileVCMinIssueTime:number;
//         public resetPasswordVCMinIssueTime:number;
//         // qq群号
//         public qq:string;
//         // 是否启动实名认证
//         public smrzEnable:boolean;
//         /**
//          * 是否关闭游客
//          * key:platform value:yes,or no
//          */
//         public m_closeGuest:g.common.Set;
//         // 从obj初始化
//         public initFromObj(_obj:any){
//             // 定义工具函数
//             let LOG_ERROR:Function = (_msg:string) => {
//                 Log.error(`InfoAccountServer.initFromObj():${_msg}`);
//             }
//             this.serverStatus = _obj.serverStatus;
//             this.annoURL = _obj.annoURL;
//             this.regMobileVCMinIssueTime = _obj.regMobileVCMinIssueTime;
//             this.resetPasswordVCMinIssueTime = _obj.resetPasswordVCMinIssueTime;
//             this.qq = _obj.qq;
//             this.smrzEnable = _obj.smrzEnable; 
//             // 初始化closeGuest
//             this.m_closeGuest = new g.common.Set();
//             let closeGuestArray:Array<string> = _obj.closeGuest;
//             if(null != closeGuestArray) {
//                 this.m_closeGuest.mergeArray(closeGuestArray);
//             }
//         }
//         /**
//          * 判定guest是否关闭
//          * @param _platform 
//          */
//         public isGuestClose(_platform:string):boolean {
//             // 从dic里面查找
//             let exist:boolean = this.m_closeGuest.contain(_platform)
//             if(exist) {
//                 return true;
//             }
//             // 没有找到,找默认的_
//             exist = this.m_closeGuest.contain("_");
//             if(exist){
//                 return true;
//             }
//             // 还没有找到,默认返回false
//             return false;
//         }
//     }
// }
//# sourceMappingURL=Info.js.map