1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2024-11-29 16:26:27 +00:00
comunicmobile/lib/models/conversation_message.dart

30 lines
633 B
Dart
Raw Normal View History

2019-04-25 06:56:16 +00:00
import 'package:meta/meta.dart';
/// Single conversation message
///
/// @author Pierre HUBERT
class ConversationMessage implements Comparable {
final int id;
final int userID;
final int timeInsert;
final String message;
final String imageURL;
const ConversationMessage({
@required this.id,
@required this.userID,
@required this.timeInsert,
@required this.message,
@required this.imageURL,
}) : assert(id != null),
assert(userID != null),
assert(timeInsert != null),
assert(message != null);
@override
int compareTo(other) {
return id.compareTo(other.id);
}
}