CloudPhoneModel.h 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527
  1. //
  2. // CloudPhoneModel.h
  3. // VclustersGemini
  4. //
  5. // Created by APPLE on 2020/7/27.
  6. // Copyright © 2020 APPLE. All rights reserved.
  7. //
  8. #import "SuperModel.h"
  9. /**在需要存储的model类中,添加BGFMDB.h头文件,本类就具有了BGFMDB存储功能.*/
  10. #import "BGFMDB.h"
  11. NS_ASSUME_NONNULL_BEGIN
  12. /**
  13. `云手机相关
  14. @discussion screenShareStatus 屏幕分享状态 0屏幕分享中 1分享暂停 2未分享 3屏幕授权分享中
  15. @discussion diskName 云手机名称
  16. @discussion authPhone 是否为授权云手机 0非授权手机(自己的手机) 1别人授权的手机
  17. @discussion sn 云手机序列号
  18. @discussion readme 云手机过期相关提醒
  19. @discussion buyVipType 云手机类型 VIP星动云手机 SVIP星曜云手机 STAR 唔即云手机
  20. @discussion phoneAuthStatus 云手机授权状态 0未授权 1已授权
  21. @discussion phoneId 云手机Id
  22. @discussion exIp 云手机ip地址
  23. @discussion exPort 云手机端口号
  24. @discussion myOrderNum 云手机购买/续费订单号
  25. @discussion validTime 云手机有效时间(精确到分)
  26. @discussion username 云手机所属用户名
  27. @discussion areaStatus 是否正在进行站点迁移
  28. @discussion areaId 站点ID
  29. @discussion androidVersion 安卓系统版本 7、10
  30. */
  31. @interface CloudPhoneModel : SuperModel
  32. /**站点迁移状态*/
  33. typedef NS_ENUM(NSInteger, SiteSwitchState) {
  34. SiteSwitchStateFail = 0, // 0、切换失败
  35. SiteSwitchStateSuccess = 1, // 1、切换成功
  36. SiteSwitchStateMoving = 2, // 2、切换中
  37. SiteSwitchStateBacking = 3, // 3、回滚中
  38. SiteSwitchStateNormal = 4, // 4、正常状态
  39. };
  40. /**
  41. * @brief 云游戏下载 云机配置推荐 1.星动 2.星曜 3.唔即 4.唔即pro
  42. */
  43. @property (nonatomic,assign) int cloudMachine;//
  44. /**
  45. * @brief 云游戏下载 配置推荐isRecommended 0 不推荐 1 推荐
  46. */
  47. @property (nonatomic,assign) BOOL isRecommended;
  48. /**
  49. * @brief 屏幕分享状态 0屏幕分享中 1分享暂停 2未分享 3屏幕授权分享中
  50. */
  51. @property (nonatomic,assign) NSInteger screenShareStatus;
  52. /**
  53. * @brief 云手机名称
  54. */
  55. @property (nonatomic,copy) NSString *diskName;
  56. /**
  57. * @brief 云手机购买时间
  58. */
  59. @property (nonatomic,copy) NSString *ctime;
  60. /**
  61. * @brief 是否为授权云手机 0非授权手机(自己的手机) 1别人授权的手机
  62. */
  63. @property (nonatomic,assign) NSInteger authPhone;
  64. /**
  65. * @brief 云手机序列号
  66. */
  67. @property (nonatomic,copy) NSString *sn;
  68. /**
  69. * @brief 云手机过期相关提醒
  70. */
  71. @property (nonatomic,copy) NSString *readme;
  72. /**
  73. * @brief 云手机类型 VIP星动云手机 SVIP星曜云手机 STAR 唔即云手机 STARPRO 唔即PRO云手机
  74. */
  75. @property (nonatomic,copy) NSString *buyVipType;
  76. /**
  77. * @brief 云手机授权状态 0未授权 1已授权
  78. */
  79. @property (nonatomic,assign) NSInteger phoneAuthStatus;
  80. /**
  81. * @brief 云手机Id
  82. */
  83. @property (nonatomic,assign) NSInteger phoneId;
  84. /**
  85. * @brief 云手机分配rbd后的 id 用于判断用户是否有查看过云手机 为0就是首次进入
  86. */
  87. @property (nonatomic,assign) long cardId;
  88. /**
  89. * @brief 云手机ip地址
  90. */
  91. @property (nonatomic,copy) NSString *internetIp;
  92. /**
  93. * @brief 机房外网ip (ping地址)
  94. */
  95. @property (nonatomic,copy) NSString *roomInternetIp;
  96. /**
  97. * @brief 音视频外网端口
  98. */
  99. @property (nonatomic,copy) NSString *internetVideoPort;
  100. /**
  101. * @brief 云手机购买/续费订单号
  102. */
  103. @property (nonatomic,copy) NSString *myOrderNum;
  104. /**
  105. * @brief 云手机有效时间(精确到分)
  106. */
  107. @property (nonatomic,assign) NSInteger validTime;
  108. /**
  109. * @brief 站点迁移剩余时间(精确到分)
  110. */
  111. @property (nonatomic,assign) NSInteger switchTime;
  112. /**
  113. * @brief 云手机所属用户名
  114. */
  115. @property (nonatomic,copy) NSString *username;
  116. /**
  117. * @brief 是否正在进行站点迁移 0、切换失败 1、切换成功 2、切换中 3、回滚中 4、正常状态
  118. */
  119. @property (nonatomic,assign) SiteSwitchState areaStatus;
  120. /**
  121. * @brief 站点迁移是否排队 -1 排队中
  122. */
  123. @property (nonatomic,assign) NSInteger moveStatus;
  124. /**
  125. * @brief 站点ID
  126. */
  127. @property (nonatomic,assign) NSInteger areaId;
  128. /**
  129. * @brief 站点名称
  130. */
  131. @property (nonatomic,copy) NSString *areaName;
  132. /**
  133. * @brief 是否具有超分权限 0没有 1有
  134. */
  135. @property (nonatomic,assign) NSInteger overStatus;
  136. /**
  137. * @brief 设备扩容大小,单位G
  138. */
  139. @property (nonatomic, assign) NSInteger rbdExtendSize;
  140. /**
  141. * @brief 虚拟按键状态 1:开启 0:关闭
  142. */
  143. @property(nonatomic, assign)NSInteger virtualKeyStatus;
  144. /**
  145. * @brief 专业模式状态 0:常规 1:专业
  146. */
  147. @property(nonatomic, assign)NSInteger usageMode;
  148. /**
  149. * @brief ROOT按键状态 1:开启 0:关闭
  150. */
  151. @property(nonatomic, assign)NSInteger rootStatus;
  152. /**
  153. * @brief 使用习惯 1:左手 2:右手
  154. */
  155. @property(nonatomic, assign)NSInteger usageHabit;
  156. /**
  157. *
  158. * @brief 云手机是否被选中-自定义属性
  159. */
  160. @property (nonatomic, assign) BOOL isSelect;
  161. /**
  162. * @brief vpnStatus 1:开启 0:关闭
  163. */
  164. @property (nonatomic, assign) NSInteger vpnStatus;
  165. /**
  166. * @brief startGetRBDTime 开启rbd时间
  167. */
  168. @property (nonatomic, assign) double startGetRBDTime;
  169. @property (nonatomic, assign) NSInteger userCardId;
  170. /**
  171. * @brief chaofenPhoneIndex 开启超分设备下标
  172. */
  173. @property (nonatomic, assign) NSInteger chaofenPhoneIndex;
  174. /**
  175. * @brief chaofenPhoneIndex 开启超分设备结果状态
  176. */
  177. @property (nonatomic, assign) BOOL chaofenResult;
  178. /**
  179. * @brief freeTrial 标记是否为免费试用云手机
  180. */
  181. @property (nonatomic, copy) NSString *freeTrial;//免费试用 : 10:是 20:否
  182. /**
  183. * @brief 云机来源: 0:购买 1试用 2:免费激活码 3:免费活动抽奖 4:ar app注册 5:9.9元套餐年卡 ',
  184. */
  185. @property (nonatomic, assign) NSInteger sourceType;
  186. /**
  187. * @brief 云机类型: 1 计时套餐 0 普通云手机套餐 2 普通计时套餐 3:自动续费计时
  188. */
  189. @property (nonatomic, assign) NSInteger userCardType;
  190. /**
  191. * @brief 云手机推流编码 H264 H265
  192. */
  193. @property (nonatomic,copy) NSString *videoCode;
  194. /**
  195. * @brief 最近获取设备的时间
  196. */
  197. @property (nonatomic,assign)double getDeviceTime;
  198. /**
  199. *
  200. * @brief 云手机是否需要更新服务器上的图片
  201. */
  202. @property (nonatomic, assign) BOOL needUpdateImageInSever;
  203. /**
  204. * @brief 设备请求刷新缩略图的时间
  205. */
  206. @property (nonatomic,assign)double deviceRefeshImageTime;
  207. /**
  208. * @brief 修改云机参数状态 1:开启 0:关闭 1:开启
  209. */
  210. @property (nonatomic, assign) NSInteger modifyCardParamStatus;
  211. /**
  212. * @brief 虚拟定位状态 1:开启 0:关闭
  213. */
  214. @property (nonatomic, assign) NSInteger virtualGpsStatus;
  215. /**
  216. * @brief ROOT开关状态 1:开启 0:关闭
  217. */
  218. @property (nonatomic, assign) NSInteger rootSwitchStatus;
  219. /**
  220. * @brief 站点迁移状态 1:开启 0:关闭
  221. */
  222. @property (nonatomic, assign) NSInteger siteTransferStatus;
  223. /**
  224. * @brief 一键换机状态 1:开启 0:关闭
  225. */
  226. @property (nonatomic, assign) NSInteger oneButtonStatus;
  227. /**
  228. * @brief 云机摄像头状态 1:开启 0:关闭 2: 不可用(当前云手机摄像头不可用)
  229. */
  230. @property (nonatomic, assign) NSInteger phoneCameraStatus;
  231. /**
  232. * @brief 自动管理续费状态 1:已购买 0:未购买
  233. */
  234. @property (nonatomic, assign) NSInteger sign;
  235. /**
  236. * @brief 自动续费套餐周期(天)
  237. */
  238. @property (nonatomic,assign) NSInteger period;
  239. /**
  240. * @brief 未被超分前的云手机分配的机房名称
  241. */
  242. @property (nonatomic, copy) NSString *room;
  243. /**
  244. * @brief 增值服务使用记录 虚拟全部model标识符
  245. */
  246. @property (nonatomic,assign) int isTrialAll;
  247. /**
  248. * @brief 业务通讯外网端口 (暂时未使用)
  249. */
  250. @property (nonatomic, copy) NSString *internetBusinessPort;
  251. /**
  252. * @brief 板卡型号
  253. */
  254. @property (nonatomic, copy) NSString *deviceBoard;
  255. /**
  256. * @brief 机房外网wss地址
  257. */
  258. @property (nonatomic, copy) NSString *internetHttps;
  259. /**
  260. * @brief 机房外网ws地址
  261. */
  262. @property (nonatomic, copy) NSString *internetHttp;
  263. /**
  264. * @brief 安卓卡内网ws地址
  265. */
  266. @property (nonatomic, copy) NSString *localIp;
  267. /**
  268. * @brief 安卓卡校验token
  269. */
  270. @property (nonatomic, copy) NSString *cardToken;
  271. /**
  272. * @brief 安卓系统 7、10
  273. */
  274. @property (nonatomic, copy) NSString *androidVersion;
  275. /**
  276. * @brief 系统升级显示状态 1:开启 0:关闭
  277. */
  278. @property (nonatomic,assign) int systemUpgradeStatus;
  279. /**
  280. * @brief 一键诊断 1:诊断中 0
  281. */
  282. @property (nonatomic,assign) int oneKeyRepairStatus;
  283. /**
  284. * @brief 推流编码(H264、H265)
  285. */
  286. @property (nonatomic, copy) NSString *pushFlowCode;
  287. /**
  288. * @brief 分辨率(720、1080)
  289. */
  290. @property (nonatomic, copy) NSString *resolvingPower;
  291. /**
  292. * @brief 分辨率高度
  293. */
  294. @property (nonatomic,assign) NSInteger high;/*高度*/
  295. /**
  296. * @brief 分辨率宽度
  297. */
  298. @property (nonatomic,assign) NSInteger width;/*宽度*/
  299. /**
  300. * @brief 分辨率密度
  301. */
  302. @property (nonatomic,assign) NSInteger dpi;/*密度*/
  303. /**
  304. * @brief 设置分辨率时间
  305. */
  306. @property (nonatomic,strong) NSDate *dpiSetime;/*分辨率密度设置时间*/
  307. /**
  308. * @brief 一键修复剩余的次数
  309. */
  310. @property (nonatomic,assign) NSInteger oneKeyRepairResidueNum;
  311. /**
  312. * @brief vpn模式 0:自动 1:UDP 2:TCP
  313. */
  314. @property (nonatomic,assign) NSInteger vpnMode;
  315. /**
  316. * @brief 计时状态 0:停止计时 1:开始计时 2:等待进入状态
  317. */
  318. @property (nonatomic,assign) NSInteger timingStatus;
  319. /**
  320. * @brief 是否展示倒计时:0:不展示 1:展示(9.9套餐活动)
  321. */
  322. @property (nonatomic,assign) NSInteger isShowCountdown;
  323. /**
  324. * @brief 是否首次连接 0: 否 1:是(9.9套餐活动)
  325. */
  326. @property (nonatomic,assign) NSInteger isFirstConnect;
  327. /**
  328. * @brief 0:否 1:是
  329. */
  330. @property (nonatomic,assign) NSInteger isShowRule;
  331. //是否开启虚拟键盘
  332. - (BOOL)isOpenVirtualKey;
  333. //是否开启专业模式
  334. - (BOOL)isOpenUsageMode;
  335. //是否开启左手
  336. - (BOOL)isOpenLeftModel;
  337. //是否打开ROOT开关
  338. - (BOOL)isOpenRoot;
  339. /**
  340. * @brief 增值服务限免Codes
  341. */
  342. @property (nonatomic,strong) NSMutableArray *freeCodes;
  343. /**
  344. * @brief 云手机功能Codes - visible
  345. */
  346. @property (nonatomic,strong) NSMutableArray *visibleFuncCodes;
  347. /**
  348. * @brief 云机业务状态 :0:空闲 1:系统升级 2:套餐升级 3:非超分转换超分 4:连接队列 5:等待进入
  349. */
  350. @property (nonatomic,assign) NSInteger businessStatus;
  351. /**
  352. * @brief 年卡下次发送时间
  353. */
  354. @property (nonatomic, copy) NSString* nextSendTime;
  355. /**
  356. * @brief 是否为转移的云机 1:是 0:不是
  357. */
  358. @property (nonatomic,assign) NSInteger transferStatus;
  359. @end
  360. @protocol CloudPhoneModel;
  361. /**
  362. `云手机列表相关
  363. @discussion diskInfo 云手机列表
  364. @discussion isTrial 是否有体验权限 0没有 1有
  365. */
  366. @interface CloudPhoneDataModel : SuperModel
  367. /**
  368. * @brief 云手机列表数据
  369. */
  370. @property (nonatomic,strong) CloudPhoneModel *data;
  371. @end
  372. @protocol CloudPhoneModel;
  373. /**
  374. `云手机列表相关
  375. @discussion diskInfo 云手机列表
  376. @discussion isTrial 是否有体验权限 0没有 1有
  377. */
  378. @interface CloudPhoneListModel : SuperModel
  379. /**
  380. * @brief 云手机列表
  381. */
  382. @property (nonatomic,strong) NSMutableArray <CloudPhoneModel>*diskInfo;
  383. /**
  384. * @brief 增值服务限免Codes
  385. */
  386. @property (nonatomic,strong) NSMutableArray *freeCodes;
  387. /**
  388. * @brief 是否有体验权限
  389. */
  390. @property (nonatomic,assign) int isTrial;
  391. @end
  392. @protocol CloudPhoneListModel;
  393. /**
  394. `云手机列表相关
  395. @discussion diskInfo 云手机列表
  396. @discussion isTrial 是否有体验权限 0没有 1有
  397. */
  398. @interface CloduPhoneListDataModel : SuperModel
  399. /**
  400. * @brief 云手机列表数据
  401. */
  402. @property (nonatomic,strong) CloudPhoneListModel *data;
  403. @end
  404. @protocol CloudPhoneModel;
  405. /**
  406. `续费云手机列表
  407. */
  408. @interface CloudPhoneListForRenewModel : SuperModel
  409. /**
  410. * @brief 云手机列表
  411. */
  412. @property (nonatomic,strong) NSMutableArray <CloudPhoneModel>*data;
  413. @end
  414. NS_ASSUME_NONNULL_END