This commit is contained in:
@@ -422,3 +422,90 @@ class GroupInviteResult {
|
||||
return data;
|
||||
}
|
||||
}
|
||||
|
||||
class GetGroupApplicationListAsRecipientReq {
|
||||
final List<String> groupIDs;
|
||||
final List<int> handleResults;
|
||||
final int offset;
|
||||
final int count;
|
||||
|
||||
GetGroupApplicationListAsRecipientReq({
|
||||
this.groupIDs = const [],
|
||||
this.handleResults = const [],
|
||||
required this.offset,
|
||||
required this.count,
|
||||
});
|
||||
|
||||
GetGroupApplicationListAsRecipientReq.fromJson(Map<String, dynamic> json)
|
||||
: groupIDs = json['groupIDs'] == null ? [] : List<String>.from(json['groupIDs'].map((x) => x)),
|
||||
handleResults = json['handleResults'] == null ? [] : List<int>.from(json['handleResults'].map((x) => x)),
|
||||
offset = json['offset'],
|
||||
count = json['count'];
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final data = <String, dynamic>{};
|
||||
data['groupIDs'] = groupIDs;
|
||||
data['handleResults'] = handleResults;
|
||||
data['offset'] = offset;
|
||||
data['count'] = count;
|
||||
return data;
|
||||
}
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'GetGroupApplicationListAsRecipientReq{groupIDs: $groupIDs, handleResults: $handleResults, offset: $offset, count: $count}';
|
||||
}
|
||||
}
|
||||
|
||||
class GetGroupApplicationListAsApplicantReq {
|
||||
final List<String> groupIDs;
|
||||
final List<int> handleResults;
|
||||
final int offset;
|
||||
final int count;
|
||||
|
||||
GetGroupApplicationListAsApplicantReq({
|
||||
this.groupIDs = const [],
|
||||
this.handleResults = const [],
|
||||
required this.offset,
|
||||
required this.count,
|
||||
});
|
||||
|
||||
GetGroupApplicationListAsApplicantReq.fromJson(Map<String, dynamic> json)
|
||||
: groupIDs = json['groupIDs'] == null ? [] : List<String>.from(json['groupIDs'].map((x) => x)),
|
||||
handleResults = json['handleResults'] == null ? [] : List<int>.from(json['handleResults'].map((x) => x)),
|
||||
offset = json['offset'],
|
||||
count = json['count'];
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final data = <String, dynamic>{};
|
||||
data['groupIDs'] = groupIDs;
|
||||
data['handleResults'] = handleResults;
|
||||
data['offset'] = offset;
|
||||
data['count'] = count;
|
||||
return data;
|
||||
}
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'GetGroupApplicationListAsApplicantReq{groupIDs: $groupIDs, handleResults: $handleResults, offset: $offset, count: $count}';
|
||||
}
|
||||
}
|
||||
|
||||
class GetGroupApplicationUnhandledCountReq {
|
||||
final int time;
|
||||
|
||||
GetGroupApplicationUnhandledCountReq({this.time = 0});
|
||||
|
||||
GetGroupApplicationUnhandledCountReq.fromJson(Map<String, dynamic> json) : time = json['time'];
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final data = <String, dynamic>{};
|
||||
data['time'] = time;
|
||||
return data;
|
||||
}
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'GetGroupApplicationUnhandledCountReq{time: $time}';
|
||||
}
|
||||
}
|
||||
|
||||
@@ -124,6 +124,6 @@ class SearchFriendsInfo extends FriendInfo {
|
||||
Map<String, dynamic> toJson() {
|
||||
final data = super.toJson();
|
||||
data['relationship'] = this.relationship;
|
||||
return data ?? {};
|
||||
return data;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -423,3 +423,78 @@ class UserStatusInfo {
|
||||
return data;
|
||||
}
|
||||
}
|
||||
|
||||
class GetFriendApplicationListAsRecipientReq {
|
||||
final List<int> handleResults;
|
||||
final int offset;
|
||||
final int count;
|
||||
|
||||
GetFriendApplicationListAsRecipientReq({
|
||||
this.handleResults = const [],
|
||||
required this.offset,
|
||||
required this.count,
|
||||
});
|
||||
|
||||
GetFriendApplicationListAsRecipientReq.fromJson(Map<String, dynamic> json)
|
||||
: handleResults = json['handleResults'] == null ? [] : List<int>.from(json['handleResults'].map((x) => x)),
|
||||
offset = json['offset'],
|
||||
count = json['count'];
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final data = <String, dynamic>{};
|
||||
data['handleResults'] = handleResults;
|
||||
data['offset'] = offset;
|
||||
data['count'] = count;
|
||||
return data;
|
||||
}
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'GetFriendApplicationListAsRecipientReq{handleResults: $handleResults, offset: $offset, count: $count}';
|
||||
}
|
||||
}
|
||||
|
||||
class GetFriendApplicationListAsApplicantReq {
|
||||
final int offset;
|
||||
final int count;
|
||||
|
||||
GetFriendApplicationListAsApplicantReq({
|
||||
required this.offset,
|
||||
required this.count,
|
||||
});
|
||||
|
||||
GetFriendApplicationListAsApplicantReq.fromJson(Map<String, dynamic> json)
|
||||
: offset = json['offset'],
|
||||
count = json['count'];
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final data = <String, dynamic>{};
|
||||
data['offset'] = offset;
|
||||
data['count'] = count;
|
||||
return data;
|
||||
}
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'GetFriendApplicationListAsApplicantReq{offset: $offset, count: $count}';
|
||||
}
|
||||
}
|
||||
|
||||
class GetFriendApplicationUnhandledCountReq {
|
||||
final int time;
|
||||
|
||||
GetFriendApplicationUnhandledCountReq({this.time = 0});
|
||||
|
||||
GetFriendApplicationUnhandledCountReq.fromJson(Map<String, dynamic> json) : time = json['time'];
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final data = <String, dynamic>{};
|
||||
data['time'] = time;
|
||||
return data;
|
||||
}
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'GetSelfUnhandledApplyCountReq{time: $time}';
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user