vknet_vk/VkNet/Model/Attachments/Note.cs
Tartilla-TAIGO 5454ae3b55
Merge pull request #1644
* update from vk.com to vk.ru

* add Microsoft.Extensions.Logging

* Исправляет сборку

* Исправляет сборку

* Обновляет пакеты

* Переводит тесты на AwesomeAssertions

* Устанавливает Reo.Core.Analyzers из nuget

* Удаляет явную ссылку на Reo.Core.Analyzers из VkNet.csproj
2025-09-08 22:08:03 +03:00

56 lines
No EOL
1.4 KiB
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using System;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
namespace VkNet.Model;
/// <summary>
/// Заметка пользователя.
/// </summary>
/// <remarks>
/// <a href="http://vk.ru/dev/note">См. описание</a>
/// </remarks>
[Serializable]
public class Note : MediaAttachment
{
/// <inheritdoc />
protected override string Alias => "note";
/// <summary>
/// Заголовок заметки.
/// </summary>
[JsonProperty("title")]
public string Title { get; set; }
/// <summary>
/// Текст заметки.
/// </summary>
[JsonProperty("text")]
public string Text { get; set; }
/// <summary>
/// Дата создания заметки.
/// </summary>
[JsonProperty("date")]
[JsonConverter(typeof(UnixDateTimeConverter))]
public DateTime? Date { get; set; }
/// <summary>
/// Количество комментариев к заметке.
/// </summary>
[JsonProperty("comments")]
public int? CommentsCount { get; set; }
/// <summary>
/// Количество прочитанных комментариев (только при запросе информации о заметке
/// текущего пользователя).
/// </summary>
[JsonProperty("read_comments")]
public int? ReadCommentsCount { get; set; }
/// <summary>
/// Адрес страницы для отображения заметки.
/// </summary>
[JsonProperty("view_url")]
public Uri ViewUrl { get; set; }
}