2021-03-10 16:54:41 +00:00
|
|
|
import 'package:comunic/models/conversation.dart';
|
|
|
|
import 'package:comunic/models/conversation_message.dart';
|
2020-05-08 13:40:13 +00:00
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
|
|
|
/// Unread conversation information
|
|
|
|
///
|
|
|
|
/// @author Pierre Hubert
|
|
|
|
|
|
|
|
class UnreadConversation {
|
2021-03-10 16:54:41 +00:00
|
|
|
final Conversation conv;
|
|
|
|
final ConversationMessage message;
|
2020-05-08 13:40:13 +00:00
|
|
|
|
|
|
|
const UnreadConversation({
|
2021-03-10 16:54:41 +00:00
|
|
|
@required this.conv,
|
2020-05-08 13:40:13 +00:00
|
|
|
@required this.message,
|
2021-03-10 16:54:41 +00:00
|
|
|
}) : assert(conv != null),
|
2020-05-08 13:40:13 +00:00
|
|
|
assert(message != null);
|
|
|
|
}
|