1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2024-11-26 06:49:22 +00:00
comunicmobile/lib/models/call_member.dart

19 lines
354 B
Dart
Raw Normal View History

2020-04-20 12:02:32 +00:00
import 'package:flutter/material.dart';
/// Single call member information
///
/// @author Pierre Hubert
enum MemberStatus { JOINED, READY }
class CallMember {
2020-04-20 13:02:49 +00:00
final int userID;
MemberStatus status;
2020-04-20 12:02:32 +00:00
CallMember({
2020-04-20 13:02:49 +00:00
@required this.userID,
2020-04-20 12:24:35 +00:00
this.status = MemberStatus.JOINED,
2020-04-20 13:02:49 +00:00
}) : assert(userID != null),
2020-04-20 12:02:32 +00:00
assert(status != null);
}