1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2025-09-18 21:38:48 +00:00

Can respond to friendship requests from memberships bar

This commit is contained in:
2020-05-06 13:38:11 +02:00
parent c5c544fb34
commit 263849266f
3 changed files with 92 additions and 6 deletions

View File

@@ -8,12 +8,12 @@ import 'package:meta/meta.dart';
/// @author Pierre HUBERT
class Friend extends CacheModel implements Comparable<Friend> {
final bool accepted;
bool accepted;
final int lastActive;
final bool following;
final bool canPostTexts;
const Friend({
Friend({
@required int id,
@required this.accepted,
@required this.lastActive,
@@ -22,6 +22,8 @@ class Friend extends CacheModel implements Comparable<Friend> {
}) : assert(id != null),
assert(accepted != null),
assert(lastActive != null),
assert(following != null),
assert(canPostTexts != null),
super(id: id);
/// Check out whether friend is connected or not