1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2025-02-16 21:52:38 +00:00
comunicmobile/lib/models/new_comment.dart

22 lines
413 B
Dart
Raw Normal View History

2021-03-13 18:03:20 +01:00
import 'api_request.dart';
2019-05-18 14:58:35 +02:00
/// New comment information
///
/// @author Pierre HUBERT
class NewComment {
final int postID;
final String content;
final BytesFile? image;
2019-05-18 14:58:35 +02:00
const NewComment({
required this.postID,
required this.content,
required this.image,
2019-05-18 14:58:35 +02:00
}) : assert(postID != null);
bool get hasContent => content != null && content.length > 0;
bool get hasImage => image != null;
}