2021-03-13 17:03:20 +00:00
|
|
|
import 'api_request.dart';
|
|
|
|
|
2019-05-18 12:58:35 +00:00
|
|
|
/// New comment information
|
|
|
|
///
|
|
|
|
/// @author Pierre HUBERT
|
|
|
|
|
|
|
|
class NewComment {
|
|
|
|
final int postID;
|
|
|
|
final String content;
|
2022-03-10 18:39:57 +00:00
|
|
|
final BytesFile? image;
|
2019-05-18 12:58:35 +00:00
|
|
|
|
|
|
|
const NewComment({
|
2022-03-10 18:39:57 +00:00
|
|
|
required this.postID,
|
|
|
|
required this.content,
|
|
|
|
required this.image,
|
2022-03-11 16:13:54 +00:00
|
|
|
});
|
2019-05-18 12:58:35 +00:00
|
|
|
|
2022-03-11 16:13:54 +00:00
|
|
|
bool get hasContent => content.length > 0;
|
2019-05-18 12:58:35 +00:00
|
|
|
|
|
|
|
bool get hasImage => image != null;
|
|
|
|
}
|