1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2024-11-25 14:29:22 +00:00
comunicmobile/lib/models/group_membership.dart

26 lines
604 B
Dart
Raw Normal View History

2020-05-02 09:18:03 +00:00
import 'package:comunic/models/group.dart';
import 'package:flutter/material.dart';
/// Group membership information
///
/// @author Pierre Hubert
class GroupMembership {
final int userID;
final int groupID;
final int timeCreate;
final GroupMembershipLevel level;
const GroupMembership({
@required this.userID,
@required this.groupID,
@required this.timeCreate,
@required this.level,
}) : assert(userID != null),
assert(groupID != null),
assert(timeCreate != null),
assert(level != null);
2021-04-25 15:06:28 +00:00
String get membershipText => membershipToText(level);
2020-05-02 09:18:03 +00:00
}