1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2025-06-19 00:05:16 +00:00

Create new conversations

This commit is contained in:
2019-04-27 16:23:08 +02:00
parent 765ca82300
commit 852064e82d
7 changed files with 272 additions and 15 deletions

View File

@ -0,0 +1,27 @@
import 'package:meta/meta.dart';
/// Conversation settings model
///
/// Use this model to create / update a conversation
///
/// @author Pierre HUBERT
class ConversationSettings {
/// Set the ID to 0 if not required
final int id;
final String name;
final bool following;
final List<int> members;
ConversationSettings({
@required this.id,
@required this.name,
@required this.following,
@required this.members,
}) : assert(members != null && members.length > 0),
assert(following != null);
bool get hasName => name != null && name.length > 0;
bool get hasId => id != null & id > 0;
}