vkdart

Форк
0
36 строк · 1.1 Кб
1
import 'package:vkdart/vkontakte.dart';
2

3
/// Model Note
4
///
5
/// See https://dev.vk.com/ru/reference/objects/note
6
class NoteAttachmentModel extends CustomAttachmentModel {
7
  // ignore: public_member_api_docs
8
  NoteAttachmentModel(super.payload) : super(attachType: 'note');
9

10
  /// The title of the note.
11
  String? get title => payload['title'];
12

13
  /// The text of the note.
14
  String? get text => payload['text'];
15

16
  /// The date the note was created in Unixtime format.
17
  int? get createdAt => payload['date'];
18

19
  /// The number of comments.
20
  int? get commentsCount => payload['comments'];
21

22
  /// The number of comments read (only when requesting information about the current user's note).
23
  int? get readCommentsCount => payload['read_comments'];
24

25
  /// The URL of the page to display the note.
26
  String? get viewUrl => payload['view_url'];
27

28
  /// Privacy settings for commenting on a note
29
  String? get privacyView => payload['privacy_view'];
30

31
  /// Is it possible to leave comments
32
  bool? get isCanComment => checkBoolInProperty('can_comment');
33

34
  /// Wiki link tags.
35
  String? get textWiki => payload['text_wiki'];
36
}
37

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.