mirror of
https://gitlab.com/comunic/comunicmobile
synced 2025-06-19 00:05:16 +00:00
Display the list of unread conversations
This commit is contained in:
25
lib/models/unread_conversation.dart
Normal file
25
lib/models/unread_conversation.dart
Normal file
@ -0,0 +1,25 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
/// Unread conversation information
|
||||
///
|
||||
/// @author Pierre Hubert
|
||||
|
||||
class UnreadConversation {
|
||||
final int id;
|
||||
final String convName;
|
||||
final int lastActive;
|
||||
final int userID;
|
||||
final String message;
|
||||
|
||||
const UnreadConversation({
|
||||
@required this.id,
|
||||
@required this.convName,
|
||||
@required this.lastActive,
|
||||
@required this.userID,
|
||||
@required this.message,
|
||||
}) : assert(id != null),
|
||||
assert(convName != null),
|
||||
assert(lastActive != null),
|
||||
assert(userID != null),
|
||||
assert(message != null);
|
||||
}
|
Reference in New Issue
Block a user