rtc_activities_model.dart 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199
  1. /// code : "OK"
  2. /// data : {"list":[{"activityId":"470835806601216","activityBeginTime":"1631257800755","activityEndTime":"1632985810972","activityIcon":"http://media.qn.timichat.net/activityIcon/801/026e9f724d004e20a7d53de2acf1217b.png","activityNoticeIcon":null,"activityBanner":null,"activityName":"聚合活动--中秋节--甜优(勿动)","activityRuleUrl":"","activityType":801,"activityUrl":"http://bead.activity.timichat.net/middleautumn?activityId=470835806601216","liveShowPosition":2,"liveShowSort":null,"hasRecharged":-1,"moduleType":0,"wealthLevelLimit":1},{"activityId":"433981178773504","activityBeginTime":"1631263027352","activityEndTime":"1632991032673","activityIcon":"http://media.qn.timichat.net/activityIcon/701/9a017bf995a84ec2bb218204c07f49c0.png","activityNoticeIcon":null,"activityBanner":null,"activityName":"转运珠","activityRuleUrl":"","activityType":701,"activityUrl":"http://bead.activity.timichat.net/catchdolphins?activityId=351853267124224","liveShowPosition":2,"liveShowSort":null,"hasRecharged":-1,"moduleType":2,"wealthLevelLimit":1},{"activityId":"448444414033920","activityBeginTime":null,"activityEndTime":null,"activityIcon":"http://media.qn.timichat.net/activityIcon/101/c52b7a418fd84de8a0794ab6a2a6ea6d.png","activityNoticeIcon":null,"activityBanner":null,"activityName":"月光宝盒","activityRuleUrl":"","activityType":101,"activityUrl":"http://jewelbox.activity.timichat.net?m=ca9bd9dcdf895a157abbd91c3eae746c&d=a22558e7643e0e7b973e1333c25837b0","liveShowPosition":2,"liveShowSort":null,"hasRecharged":-1,"moduleType":0,"wealthLevelLimit":15},{"activityId":"286065172676608","activityBeginTime":null,"activityEndTime":null,"activityIcon":"http://media.qn.timichat.net/activityIcon/601/16fae411aa8d44f0b7a77d8c35b74a1f.png","activityNoticeIcon":null,"activityBanner":null,"activityName":"抢头条活动","activityRuleUrl":"","activityType":102,"activityUrl":"","liveShowPosition":2,"liveShowSort":null,"hasRecharged":-1,"moduleType":2,"wealthLevelLimit":null},{"activityId":"326743663575040","activityBeginTime":"1614137563661","activityEndTime":"1645673564653","activityIcon":"http://media.qn.timichat.net/activityIcon/201/72c7e463c5ff435787e84e48a48e55cc.png","activityNoticeIcon":null,"activityBanner":null,"activityName":"每日充值福利","activityRuleUrl":"","activityType":201,"activityUrl":"http://dayrecharge.m.timichat.net/daily?id=326743663575040","liveShowPosition":3,"liveShowSort":null,"hasRecharged":-1,"moduleType":2,"wealthLevelLimit":1},{"activityId":"409208017125376","activityBeginTime":null,"activityEndTime":null,"activityIcon":"http://media.qn.timichat.net/activityIcon/101/98a9bc89fc9b4b028f72dff5357cf01b.png","activityNoticeIcon":null,"activityBanner":null,"activityName":"欧气榜","activityRuleUrl":"","activityType":101,"activityUrl":"http://inapp.timichat.net/gasranks","liveShowPosition":2,"liveShowSort":null,"hasRecharged":-1,"moduleType":2,"wealthLevelLimit":1},{"activityId":"369321578594304","activityBeginTime":null,"activityEndTime":null,"activityIcon":"http://media.qn.timichat.net/activityIcon/101/23255cb41857495abdc7d8650cfc41e7.png","activityNoticeIcon":null,"activityBanner":null,"activityName":"太空旅行-游戏盒子","activityRuleUrl":"","activityType":101,"activityUrl":"http://travel.activity.timichat.net/travel/home?lotteryId=4947d282e625121ed591bf72833c53ea","liveShowPosition":3,"liveShowSort":null,"hasRecharged":-1,"moduleType":0,"wealthLevelLimit":1},{"activityId":"373033537634304","activityBeginTime":"1630999415831","activityEndTime":"1632992351243","activityIcon":"http://media.qn.timichat.net/activityIcon/801/28f159f7365d452cab167aa430226ce0.png","activityNoticeIcon":null,"activityBanner":null,"activityName":"聚合活动--中秋节(勿动)","activityRuleUrl":"","activityType":801,"activityUrl":"http://srank.activity.timichat.net/middleautumn?activityId=373033537634304","liveShowPosition":2,"liveShowSort":null,"hasRecharged":-1,"moduleType":0,"wealthLevelLimit":1},{"activityId":"473716697858048","activityBeginTime":"1631601111232","activityEndTime":"1632983514826","activityIcon":"http://media.qn.timichat.net/activityIcon/801/c1146f126ed74a348807681f5f6d997b.png","activityNoticeIcon":"http://media.qn.timichat.net/activityNoticeIcon/94186f99ef91483d9b97c6a65c8e024c.png","activityBanner":"http://media.qn.timichat.net/activityBanner/7c04e3ceda6f4b39ab2d0e590839afc4.png","activityName":"中秋验收聚合活动","activityRuleUrl":"","activityType":801,"activityUrl":"http://bead.activity.timichat.net/middleautumn?activityId=473716697858048","liveShowPosition":2,"liveShowSort":null,"hasRecharged":-1,"moduleType":0,"wealthLevelLimit":0},{"activityId":"218484625637376","activityBeginTime":"1609829770312","activityEndTime":"1675148171080","activityIcon":"http://media.qn.timichat.net/activityIcon/101/039573084f484259add79e7242f5fd29.png","activityNoticeIcon":"http://media.qn.timichat.net/activityNoticeIcon/2ace168cce5b4a069b2944caa835c9ee.png","activityBanner":null,"activityName":"太空旅行","activityRuleUrl":"","activityType":101,"activityUrl":"http://travel.activity.timichat.net/travel/home?lotteryId=4947d282e625121ed591bf72833c53ea","liveShowPosition":2,"liveShowSort":null,"hasRecharged":-1,"moduleType":2,"wealthLevelLimit":1},{"activityId":"306293663334400","activityBeginTime":"1612233781079","activityEndTime":"1677552189871","activityIcon":"http://media.qn.timichat.net/activityIcon/601/d22ea905fa074d72ab0a96627b867cf4.png","activityNoticeIcon":null,"activityBanner":"http://media.qn.timichat.net/activityBanner/5ac3effdf11a4684ae786331d012589e.png","activityName":"张帅-周星礼物测试","activityRuleUrl":"","activityType":601,"activityUrl":"http://inapp.timichat.net/gRanks/home","liveShowPosition":2,"liveShowSort":1,"hasRecharged":-1,"moduleType":0,"wealthLevelLimit":0}]}
  3. /// msg : ""
  4. /// success : true
  5. class RtcActivitiesModel {
  6. String? _code;
  7. Data? _data;
  8. String? _msg;
  9. bool? _success;
  10. String? get code => _code;
  11. Data? get data => _data;
  12. String? get msg => _msg;
  13. bool? get success => _success;
  14. RtcActivitiesModel({
  15. String? code,
  16. Data? data,
  17. String? msg,
  18. bool? success}){
  19. _code = code;
  20. _data = data;
  21. _msg = msg;
  22. _success = success;
  23. }
  24. RtcActivitiesModel.fromJson(dynamic json) {
  25. _code = json['code'];
  26. _data = json['data'] != null ? Data.fromJson(json['data']) : null;
  27. _msg = json['msg'];
  28. _success = json['success'];
  29. }
  30. Map<String, dynamic> toJson() {
  31. var map = <String, dynamic>{};
  32. map['code'] = _code;
  33. if (_data != null) {
  34. map['data'] = _data?.toJson();
  35. }
  36. map['msg'] = _msg;
  37. map['success'] = _success;
  38. return map;
  39. }
  40. }
  41. /// list : [{"activityId":"470835806601216","activityBeginTime":"1631257800755","activityEndTime":"1632985810972","activityIcon":"http://media.qn.timichat.net/activityIcon/801/026e9f724d004e20a7d53de2acf1217b.png","activityNoticeIcon":null,"activityBanner":null,"activityName":"聚合活动--中秋节--甜优(勿动)","activityRuleUrl":"","activityType":801,"activityUrl":"http://bead.activity.timichat.net/middleautumn?activityId=470835806601216","liveShowPosition":2,"liveShowSort":null,"hasRecharged":-1,"moduleType":0,"wealthLevelLimit":1},{"activityId":"433981178773504","activityBeginTime":"1631263027352","activityEndTime":"1632991032673","activityIcon":"http://media.qn.timichat.net/activityIcon/701/9a017bf995a84ec2bb218204c07f49c0.png","activityNoticeIcon":null,"activityBanner":null,"activityName":"转运珠","activityRuleUrl":"","activityType":701,"activityUrl":"http://bead.activity.timichat.net/catchdolphins?activityId=351853267124224","liveShowPosition":2,"liveShowSort":null,"hasRecharged":-1,"moduleType":2,"wealthLevelLimit":1},{"activityId":"448444414033920","activityBeginTime":null,"activityEndTime":null,"activityIcon":"http://media.qn.timichat.net/activityIcon/101/c52b7a418fd84de8a0794ab6a2a6ea6d.png","activityNoticeIcon":null,"activityBanner":null,"activityName":"月光宝盒","activityRuleUrl":"","activityType":101,"activityUrl":"http://jewelbox.activity.timichat.net?m=ca9bd9dcdf895a157abbd91c3eae746c&d=a22558e7643e0e7b973e1333c25837b0","liveShowPosition":2,"liveShowSort":null,"hasRecharged":-1,"moduleType":0,"wealthLevelLimit":15},{"activityId":"286065172676608","activityBeginTime":null,"activityEndTime":null,"activityIcon":"http://media.qn.timichat.net/activityIcon/601/16fae411aa8d44f0b7a77d8c35b74a1f.png","activityNoticeIcon":null,"activityBanner":null,"activityName":"抢头条活动","activityRuleUrl":"","activityType":102,"activityUrl":"","liveShowPosition":2,"liveShowSort":null,"hasRecharged":-1,"moduleType":2,"wealthLevelLimit":null},{"activityId":"326743663575040","activityBeginTime":"1614137563661","activityEndTime":"1645673564653","activityIcon":"http://media.qn.timichat.net/activityIcon/201/72c7e463c5ff435787e84e48a48e55cc.png","activityNoticeIcon":null,"activityBanner":null,"activityName":"每日充值福利","activityRuleUrl":"","activityType":201,"activityUrl":"http://dayrecharge.m.timichat.net/daily?id=326743663575040","liveShowPosition":3,"liveShowSort":null,"hasRecharged":-1,"moduleType":2,"wealthLevelLimit":1},{"activityId":"409208017125376","activityBeginTime":null,"activityEndTime":null,"activityIcon":"http://media.qn.timichat.net/activityIcon/101/98a9bc89fc9b4b028f72dff5357cf01b.png","activityNoticeIcon":null,"activityBanner":null,"activityName":"欧气榜","activityRuleUrl":"","activityType":101,"activityUrl":"http://inapp.timichat.net/gasranks","liveShowPosition":2,"liveShowSort":null,"hasRecharged":-1,"moduleType":2,"wealthLevelLimit":1},{"activityId":"369321578594304","activityBeginTime":null,"activityEndTime":null,"activityIcon":"http://media.qn.timichat.net/activityIcon/101/23255cb41857495abdc7d8650cfc41e7.png","activityNoticeIcon":null,"activityBanner":null,"activityName":"太空旅行-游戏盒子","activityRuleUrl":"","activityType":101,"activityUrl":"http://travel.activity.timichat.net/travel/home?lotteryId=4947d282e625121ed591bf72833c53ea","liveShowPosition":3,"liveShowSort":null,"hasRecharged":-1,"moduleType":0,"wealthLevelLimit":1},{"activityId":"373033537634304","activityBeginTime":"1630999415831","activityEndTime":"1632992351243","activityIcon":"http://media.qn.timichat.net/activityIcon/801/28f159f7365d452cab167aa430226ce0.png","activityNoticeIcon":null,"activityBanner":null,"activityName":"聚合活动--中秋节(勿动)","activityRuleUrl":"","activityType":801,"activityUrl":"http://srank.activity.timichat.net/middleautumn?activityId=373033537634304","liveShowPosition":2,"liveShowSort":null,"hasRecharged":-1,"moduleType":0,"wealthLevelLimit":1},{"activityId":"473716697858048","activityBeginTime":"1631601111232","activityEndTime":"1632983514826","activityIcon":"http://media.qn.timichat.net/activityIcon/801/c1146f126ed74a348807681f5f6d997b.png","activityNoticeIcon":"http://media.qn.timichat.net/activityNoticeIcon/94186f99ef91483d9b97c6a65c8e024c.png","activityBanner":"http://media.qn.timichat.net/activityBanner/7c04e3ceda6f4b39ab2d0e590839afc4.png","activityName":"中秋验收聚合活动","activityRuleUrl":"","activityType":801,"activityUrl":"http://bead.activity.timichat.net/middleautumn?activityId=473716697858048","liveShowPosition":2,"liveShowSort":null,"hasRecharged":-1,"moduleType":0,"wealthLevelLimit":0},{"activityId":"218484625637376","activityBeginTime":"1609829770312","activityEndTime":"1675148171080","activityIcon":"http://media.qn.timichat.net/activityIcon/101/039573084f484259add79e7242f5fd29.png","activityNoticeIcon":"http://media.qn.timichat.net/activityNoticeIcon/2ace168cce5b4a069b2944caa835c9ee.png","activityBanner":null,"activityName":"太空旅行","activityRuleUrl":"","activityType":101,"activityUrl":"http://travel.activity.timichat.net/travel/home?lotteryId=4947d282e625121ed591bf72833c53ea","liveShowPosition":2,"liveShowSort":null,"hasRecharged":-1,"moduleType":2,"wealthLevelLimit":1},{"activityId":"306293663334400","activityBeginTime":"1612233781079","activityEndTime":"1677552189871","activityIcon":"http://media.qn.timichat.net/activityIcon/601/d22ea905fa074d72ab0a96627b867cf4.png","activityNoticeIcon":null,"activityBanner":"http://media.qn.timichat.net/activityBanner/5ac3effdf11a4684ae786331d012589e.png","activityName":"张帅-周星礼物测试","activityRuleUrl":"","activityType":601,"activityUrl":"http://inapp.timichat.net/gRanks/home","liveShowPosition":2,"liveShowSort":1,"hasRecharged":-1,"moduleType":0,"wealthLevelLimit":0}]
  42. class Data {
  43. List<ActivesList>? _list;
  44. List<ActivesList>? get list => _list;
  45. Data({
  46. List<ActivesList>? list}){
  47. _list = list;
  48. }
  49. Data.fromJson(dynamic json) {
  50. if (json['list'] != null) {
  51. _list = [];
  52. json['list'].forEach((v) {
  53. _list?.add(ActivesList.fromJson(v));
  54. });
  55. }
  56. }
  57. Map<String, dynamic> toJson() {
  58. var map = <String, dynamic>{};
  59. if (_list != null) {
  60. map['list'] = _list?.map((v) => v.toJson()).toList();
  61. }
  62. return map;
  63. }
  64. }
  65. /// activityId : "470835806601216"
  66. /// activityBeginTime : "1631257800755"
  67. /// activityEndTime : "1632985810972"
  68. /// activityIcon : "http://media.qn.timichat.net/activityIcon/801/026e9f724d004e20a7d53de2acf1217b.png"
  69. /// activityNoticeIcon : null
  70. /// activityBanner : null
  71. /// activityName : "聚合活动--中秋节--甜优(勿动)"
  72. /// activityRuleUrl : ""
  73. /// activityType : 801
  74. /// activityUrl : "http://bead.activity.timichat.net/middleautumn?activityId=470835806601216"
  75. /// liveShowPosition : 2
  76. /// liveShowSort : null
  77. /// hasRecharged : -1
  78. /// moduleType : 0
  79. /// wealthLevelLimit : 1
  80. class ActivesList {
  81. String? _activityId;
  82. String? _activityBeginTime;
  83. String? _activityEndTime;
  84. String? _activityIcon;
  85. dynamic? _activityNoticeIcon;
  86. dynamic? _activityBanner;
  87. String? _activityName;
  88. String? _activityRuleUrl;
  89. int? _activityType;
  90. String? _activityUrl;
  91. int? _liveShowPosition;
  92. dynamic? _liveShowSort;
  93. int? _hasRecharged;
  94. int? _moduleType;
  95. int? _wealthLevelLimit;
  96. String? get activityId => _activityId;
  97. String? get activityBeginTime => _activityBeginTime;
  98. String? get activityEndTime => _activityEndTime;
  99. String? get activityIcon => _activityIcon;
  100. dynamic? get activityNoticeIcon => _activityNoticeIcon;
  101. dynamic? get activityBanner => _activityBanner;
  102. String? get activityName => _activityName;
  103. String? get activityRuleUrl => _activityRuleUrl;
  104. int? get activityType => _activityType;
  105. String? get activityUrl => _activityUrl;
  106. int? get liveShowPosition => _liveShowPosition;
  107. dynamic? get liveShowSort => _liveShowSort;
  108. int? get hasRecharged => _hasRecharged;
  109. int? get moduleType => _moduleType;
  110. int? get wealthLevelLimit => _wealthLevelLimit;
  111. ActivesList({
  112. String? activityId,
  113. String? activityBeginTime,
  114. String? activityEndTime,
  115. String? activityIcon,
  116. dynamic? activityNoticeIcon,
  117. dynamic? activityBanner,
  118. String? activityName,
  119. String? activityRuleUrl,
  120. int? activityType,
  121. String? activityUrl,
  122. int? liveShowPosition,
  123. dynamic? liveShowSort,
  124. int? hasRecharged,
  125. int? moduleType,
  126. int? wealthLevelLimit}){
  127. _activityId = activityId;
  128. _activityBeginTime = activityBeginTime;
  129. _activityEndTime = activityEndTime;
  130. _activityIcon = activityIcon;
  131. _activityNoticeIcon = activityNoticeIcon;
  132. _activityBanner = activityBanner;
  133. _activityName = activityName;
  134. _activityRuleUrl = activityRuleUrl;
  135. _activityType = activityType;
  136. _activityUrl = activityUrl;
  137. _liveShowPosition = liveShowPosition;
  138. _liveShowSort = liveShowSort;
  139. _hasRecharged = hasRecharged;
  140. _moduleType = moduleType;
  141. _wealthLevelLimit = wealthLevelLimit;
  142. }
  143. ActivesList.fromJson(dynamic json) {
  144. _activityId = json['activityId'];
  145. _activityBeginTime = json['activityBeginTime'];
  146. _activityEndTime = json['activityEndTime'];
  147. _activityIcon = json['activityIcon'];
  148. _activityNoticeIcon = json['activityNoticeIcon'];
  149. _activityBanner = json['activityBanner'];
  150. _activityName = json['activityName'];
  151. _activityRuleUrl = json['activityRuleUrl'];
  152. _activityType = json['activityType'];
  153. _activityUrl = json['activityUrl'];
  154. _liveShowPosition = json['liveShowPosition'];
  155. _liveShowSort = json['liveShowSort'];
  156. _hasRecharged = json['hasRecharged'];
  157. _moduleType = json['moduleType'];
  158. _wealthLevelLimit = json['wealthLevelLimit'];
  159. }
  160. Map<String, dynamic> toJson() {
  161. var map = <String, dynamic>{};
  162. map['activityId'] = _activityId;
  163. map['activityBeginTime'] = _activityBeginTime;
  164. map['activityEndTime'] = _activityEndTime;
  165. map['activityIcon'] = _activityIcon;
  166. map['activityNoticeIcon'] = _activityNoticeIcon;
  167. map['activityBanner'] = _activityBanner;
  168. map['activityName'] = _activityName;
  169. map['activityRuleUrl'] = _activityRuleUrl;
  170. map['activityType'] = _activityType;
  171. map['activityUrl'] = _activityUrl;
  172. map['liveShowPosition'] = _liveShowPosition;
  173. map['liveShowSort'] = _liveShowSort;
  174. map['hasRecharged'] = _hasRecharged;
  175. map['moduleType'] = _moduleType;
  176. map['wealthLevelLimit'] = _wealthLevelLimit;
  177. return map;
  178. }
  179. }