mirror of
https://gitlab.com/comunic/comunicmobile
synced 2024-11-30 00:36:28 +00:00
24 lines
435 B
Dart
24 lines
435 B
Dart
|
import 'dart:io';
|
||
|
|
||
|
import 'package:meta/meta.dart';
|
||
|
|
||
|
/// New comment information
|
||
|
///
|
||
|
/// @author Pierre HUBERT
|
||
|
|
||
|
class NewComment {
|
||
|
final int postID;
|
||
|
final String content;
|
||
|
final File 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;
|
||
|
}
|