1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2024-12-30 14:58:52 +00:00
comunicmobile/lib/models/new_comment.dart

24 lines
449 B
Dart

import 'package:meta/meta.dart';
import 'api_request.dart';
/// New comment information
///
/// @author Pierre HUBERT
class NewComment {
final int postID;
final String content;
final BytesFile image;
const NewComment({
@required this.postID,
@required this.content,
@required this.image,
}) : assert(postID != null);
bool get hasContent => content != null && content.length > 0;
bool get hasImage => image != null;
}