vkdart
1import 'package:vkdart/vkontakte.dart';
2
3/// Model Note
4///
5/// See https://dev.vk.com/ru/reference/objects/note
6class NoteAttachmentModel extends CustomAttachmentModel {
7// ignore: public_member_api_docs
8NoteAttachmentModel(super.payload) : super(attachType: 'note');
9
10/// The title of the note.
11String? get title => payload['title'];
12
13/// The text of the note.
14String? get text => payload['text'];
15
16/// The date the note was created in Unixtime format.
17int? get createdAt => payload['date'];
18
19/// The number of comments.
20int? get commentsCount => payload['comments'];
21
22/// The number of comments read (only when requesting information about the current user's note).
23int? get readCommentsCount => payload['read_comments'];
24
25/// The URL of the page to display the note.
26String? get viewUrl => payload['view_url'];
27
28/// Privacy settings for commenting on a note
29String? get privacyView => payload['privacy_view'];
30
31/// Is it possible to leave comments
32bool? get isCanComment => checkBoolInProperty('can_comment');
33
34/// Wiki link tags.
35String? get textWiki => payload['text_wiki'];
36}
37