mirror of
https://gitlab.com/comunic/comunicmobile
synced 2024-11-22 21:09:21 +00:00
22 lines
369 B
Dart
22 lines
369 B
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,
|
|
});
|
|
|
|
bool get hasContent => content.length > 0;
|
|
|
|
bool get hasImage => image != null;
|
|
}
|