chatting/lib/chatting_api_result.dart

43 lines
720 B
Dart

class ChattingApiResult extends Object{
Uesr user;
String token;
int time;
String message;
int sendId;
int receiveId;
String content;
ChattingApiResult(this.user, this.token, this.time, this.message, this.sendId, this.receiveId, this.content);
@override
String toString() {
return 'ChattingApiResult{token: $token, time: $time, message: $message, sendId: $sendId, receiveId: $receiveId, content: $content}';
}
}
class Uesr{
int id ;
String photo;
String username;
String telephone;
Uesr(this.id, this.photo, this.username, this.telephone);
@override
String toString() {
return 'Uesr{id: $id, photo: $photo, username: $username, telephone: $telephone}';
}
}