mirror of
https://gitlab.com/comunic/comunicmobile
synced 2025-06-19 00:05:16 +00:00
Can send comments
This commit is contained in:
23
lib/models/new_comment.dart
Normal file
23
lib/models/new_comment.dart
Normal file
@ -0,0 +1,23 @@
|
||||
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;
|
||||
}
|
Reference in New Issue
Block a user