mirror of
https://gitlab.com/comunic/comunicmobile
synced 2024-11-25 22:39:22 +00:00
24 lines
547 B
Dart
24 lines
547 B
Dart
|
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);
|
||
|
}
|