8 changed files with 555 additions and 97 deletions
Split View
Diff Options
-
142lib/controller/discover/room_controller.dart
-
104lib/model/discover/audience_list_data.dart
-
7lib/network/api_urls.dart
-
21lib/network/rtc_api.dart
-
86lib/network/rtc_api.g.dart
-
8lib/rtc/rtc_manager.dart
-
33lib/widget/live/live_room_anchor_showcase.dart
-
251lib/widget/live/live_room_invitation_list.dart
@ -0,0 +1,104 @@ |
|||
class AudienceListData { |
|||
List<Records>? records; |
|||
int? total; |
|||
int? size; |
|||
int? current; |
|||
int? pages; |
|||
|
|||
AudienceListData( |
|||
{this.records, this.total, this.size, this.current, this.pages}); |
|||
|
|||
AudienceListData.fromJson(Map<String, dynamic> json) { |
|||
if (json['records'] != null) { |
|||
records = <Records>[]; |
|||
json['records'].forEach((v) { |
|||
records!.add(new Records.fromJson(v)); |
|||
}); |
|||
} |
|||
total = json['total']; |
|||
size = json['size']; |
|||
current = json['current']; |
|||
pages = json['pages']; |
|||
} |
|||
|
|||
Map<String, dynamic> toJson() { |
|||
final Map<String, dynamic> data = new Map<String, dynamic>(); |
|||
if (this.records != null) { |
|||
data['records'] = this.records!.map((v) => v.toJson()).toList(); |
|||
} |
|||
data['total'] = this.total; |
|||
data['size'] = this.size; |
|||
data['current'] = this.current; |
|||
data['pages'] = this.pages; |
|||
return data; |
|||
} |
|||
} |
|||
|
|||
class Records { |
|||
String? id; |
|||
int? userManagementId; |
|||
String? userId; |
|||
String? miId; |
|||
String? nickName; |
|||
String? profilePhoto; |
|||
int? genderCode; |
|||
String? birthYear; |
|||
String? birthDate; |
|||
int? age; |
|||
int? provinceCode; |
|||
String? provinceName; |
|||
int? cityCode; |
|||
String? cityName; |
|||
|
|||
Records( |
|||
{this.id, |
|||
this.userManagementId, |
|||
this.userId, |
|||
this.miId, |
|||
this.nickName, |
|||
this.profilePhoto, |
|||
this.genderCode, |
|||
this.birthYear, |
|||
this.birthDate, |
|||
this.age, |
|||
this.provinceCode, |
|||
this.provinceName, |
|||
this.cityCode, |
|||
this.cityName}); |
|||
|
|||
Records.fromJson(Map<String, dynamic> json) { |
|||
id = json['id']; |
|||
userManagementId = json['userManagementId']; |
|||
userId = json['userId']; |
|||
miId = json['miId']; |
|||
nickName = json['nickName']; |
|||
profilePhoto = json['profilePhoto']; |
|||
genderCode = json['genderCode']; |
|||
birthYear = json['birthYear']; |
|||
birthDate = json['birthDate']; |
|||
age = json['age']; |
|||
provinceCode = json['provinceCode']; |
|||
provinceName = json['provinceName']; |
|||
cityCode = json['cityCode']; |
|||
cityName = json['cityName']; |
|||
} |
|||
|
|||
Map<String, dynamic> toJson() { |
|||
final Map<String, dynamic> data = new Map<String, dynamic>(); |
|||
data['id'] = this.id; |
|||
data['userManagementId'] = this.userManagementId; |
|||
data['userId'] = this.userId; |
|||
data['miId'] = this.miId; |
|||
data['nickName'] = this.nickName; |
|||
data['profilePhoto'] = this.profilePhoto; |
|||
data['genderCode'] = this.genderCode; |
|||
data['birthYear'] = this.birthYear; |
|||
data['birthDate'] = this.birthDate; |
|||
data['age'] = this.age; |
|||
data['provinceCode'] = this.provinceCode; |
|||
data['provinceName'] = this.provinceName; |
|||
data['cityCode'] = this.cityCode; |
|||
data['cityName'] = this.cityName; |
|||
return data; |
|||
} |
|||
} |
|||
Write
Preview
Loading…
Cancel
Save