{"version":3,"sources":["tplus-api/../src/model/ClientInfo.ts"],"names":[],"mappings":"AAGE,MAAM,CAAC,OAAO,OAAO,UAAU;IAE7B,SAAS,EAAC,MAAM,CAAC;IACjB,aAAa,EAAC,MAAM,CAAC;IACrB,YAAY,EAAC,MAAM,CAAC;IACpB,KAAK,EAAC,MAAM,CAAC;gBAED,SAAS,KAAA,EAAC,aAAa,KAAA,EAAC,YAAY,KAAA,EAAC,KAAK,KAAA;IAOtD,MAAM,CAAC,aAAa,CAAC,UAAU,KAAA;IAM/B,KAAK;IAKL,MAAM,CAAC,OAAO;CAQf","file":"ClientInfo.d.ts","sourcesContent":["\n  import {localStore} from 'mutants-microfx';\n  import {clientInfoKey} from '../const/app';\n  export default class ClientInfo {\n\n    osRelease:string;\n    networkStatus:string;\n    manufacturer:string;\n    model:string;\n  \n    constructor(osRelease,networkStatus,manufacturer,model){\n      this.osRelease = osRelease;\n      this.networkStatus = networkStatus;\n      this.manufacturer = manufacturer;\n      this.model = model;\n    }\n  \n    static getClientInfo(deviceInfo){\n      let clientInfo = new ClientInfo(deviceInfo.osRelease,deviceInfo.networkStatus,deviceInfo.manufacturer,deviceInfo.model);\n      return clientInfo;\n    }\n  \n    //缓存数据\n    cache(){\n      localStore.set(clientInfoKey,this);\n    }\n  \n    //从缓存中恢复ClientInfo对象\n    static restore(){\n      let clientInfo = localStore.get(clientInfoKey);\n      if(clientInfo){\n          return clientInfo;\n      }\n      return undefined;\n    }\n  \n  }\n  "]}