atmob_platform_info.dart 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. class AtmobPlatformInfo {
  2. AtmobPlatformInfo();
  3. /// 设备信息
  4. /// Android特有
  5. String? _oaid;
  6. String? _aaid;
  7. String? _androidId;
  8. String? _imei;
  9. String? _simImei0;
  10. String? _simImei1;
  11. String? _mac;
  12. //渠道信息
  13. String? _channelName;
  14. int? _appId;
  15. int? _tgPlatform;
  16. /// iOS特有
  17. String? _idfa;
  18. String? _idfv;
  19. /// 公共设备信息
  20. String? _machineId; //给web使用
  21. String? _brand;
  22. String? _model;
  23. String? _wifiName;
  24. /// 地理位置信息
  25. String? _region;
  26. double? _locLng;
  27. double? _locLat;
  28. AtmobPlatformInfo setChannelName(String? channelName) {
  29. _channelName = channelName;
  30. return this;
  31. }
  32. AtmobPlatformInfo setTgPlatform(int? tgPlatform) {
  33. _tgPlatform = tgPlatform;
  34. return this;
  35. }
  36. AtmobPlatformInfo setAppId(int? appId) {
  37. _appId = appId;
  38. return this;
  39. }
  40. AtmobPlatformInfo setOaid(String? oaid) {
  41. _oaid = oaid;
  42. return this;
  43. }
  44. AtmobPlatformInfo setAaid(String? aaid) {
  45. _aaid = aaid;
  46. return this;
  47. }
  48. AtmobPlatformInfo setAndroidId(String? androidId) {
  49. _androidId = androidId;
  50. return this;
  51. }
  52. AtmobPlatformInfo setImei(String? imei) {
  53. _imei = imei;
  54. return this;
  55. }
  56. AtmobPlatformInfo setSimImei0(String? simImei0) {
  57. _simImei0 = simImei0;
  58. return this;
  59. }
  60. AtmobPlatformInfo setSimImei1(String? simImei1) {
  61. _simImei1 = simImei1;
  62. return this;
  63. }
  64. AtmobPlatformInfo setMac(String? mac) {
  65. _mac = mac;
  66. return this;
  67. }
  68. AtmobPlatformInfo setIdfa(String? idfa) {
  69. _idfa = idfa;
  70. return this;
  71. }
  72. AtmobPlatformInfo setIdfv(String? idfv) {
  73. _idfv = idfv;
  74. return this;
  75. }
  76. AtmobPlatformInfo setMachineId(String? machineId) {
  77. _machineId = machineId;
  78. return this;
  79. }
  80. AtmobPlatformInfo setBrand(String? brand) {
  81. _brand = brand;
  82. return this;
  83. }
  84. AtmobPlatformInfo setModel(String? model) {
  85. _model = model;
  86. return this;
  87. }
  88. AtmobPlatformInfo setWifiName(String? wifiName) {
  89. _wifiName = wifiName;
  90. return this;
  91. }
  92. AtmobPlatformInfo setRegion(String? region) {
  93. _region = region;
  94. return this;
  95. }
  96. AtmobPlatformInfo setLocLng(double? locLng) {
  97. _locLng = locLng;
  98. return this;
  99. }
  100. AtmobPlatformInfo setLocLat(double? locLat) {
  101. _locLat = locLat;
  102. return this;
  103. }
  104. double? get locLat => _locLat;
  105. double? get locLng => _locLng;
  106. String? get region => _region;
  107. String? get wifiName => _wifiName;
  108. String? get model => _model;
  109. String? get brand => _brand;
  110. String? get machineId => _machineId;
  111. String? get idfv => _idfv;
  112. String? get idfa => _idfa;
  113. String? get mac => _mac;
  114. String? get simImei1 => _simImei1;
  115. String? get simImei0 => _simImei0;
  116. String? get imei => _imei;
  117. String? get androidId => _androidId;
  118. String? get aaid => _aaid;
  119. String? get oaid => _oaid;
  120. String? get channelName => _channelName;
  121. int? get tgPlatform => _tgPlatform;
  122. int? get appId => _appId;
  123. }
  124. final AtmobPlatformInfo atmobPlatformInfo = AtmobPlatformInfo();