feat: Add input status related API; update synchronization monitoring related API.
This commit is contained in:
24
lib/src/models/input_status_changed_data.dart
Normal file
24
lib/src/models/input_status_changed_data.dart
Normal file
@@ -0,0 +1,24 @@
|
||||
class InputStatusChangedData {
|
||||
final String userID;
|
||||
final String conversationID;
|
||||
final List<int>? platformIDs;
|
||||
|
||||
InputStatusChangedData({
|
||||
required this.userID,
|
||||
required this.conversationID,
|
||||
this.platformIDs,
|
||||
});
|
||||
|
||||
InputStatusChangedData.fromJson(Map<String, dynamic> json)
|
||||
: userID = json['userID'],
|
||||
conversationID = json['conversationID'],
|
||||
platformIDs = List<int>.from(json['platformIDs'] ?? []);
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final data = <String, dynamic>{};
|
||||
data['userID'] = userID;
|
||||
data['conversationID'] = conversationID;
|
||||
data['platformIDs'] = platformIDs;
|
||||
return data;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user