mirror of
https://gitlab.com/comunic/comunicmobile
synced 2024-11-22 21:09:21 +00:00
30 lines
633 B
Dart
30 lines
633 B
Dart
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);
|
|
}
|
|
}
|