vknet_vk/VkNet/Model/CommentBoard.cs
Timofei Jääger e643c95d94
Предупреждения Qodana (#1530)
* Update azure-pipelines.yml

* Предупреждения Qodana

* Удаляет неиспользуемый токен отмены

* Предупреждения Qodana

* Предупреждения Qodana

* Предупреждения Qodana latest revert

* Добавляет Template в объект Message

* Возвращает токен отмены
2023-06-27 00:30:17 +03:00

53 lines
No EOL
1.6 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 System.Collections.ObjectModel;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using VkNet.Utils.JsonConverter;
namespace VkNet.Model;
/// <summary>
/// Комментарий в обсуждении
/// </summary>
[Serializable]
public class CommentBoard
{
/// <summary>
/// Идентификатор комментария.
/// </summary>
[JsonProperty(propertyName: "id")]
public long Id { get; set; }
/// <summary>
/// Идентификатор автора комментария.
/// </summary>
[JsonProperty(propertyName: "from_id")]
public long FromId { get; set; }
/// <summary>
/// Дата создания (в формате Unixtime).
/// </summary>
[JsonProperty(propertyName: "date")]
[JsonConverter(converterType: typeof(UnixDateTimeConverter))]
public DateTime Date { get; set; }
/// <summary>
/// Текст комментария.
/// </summary>
[JsonProperty(propertyName: "text")]
public string Text { get; set; }
/// <summary>
/// Медиавложения комментария (фотографии, ссылки и т.п.).
/// </summary>
[JsonProperty(propertyName: "attachments")]
[JsonConverter(converterType: typeof(AttachmentJsonConverter))]
public ReadOnlyCollection<Attachment> Attachments { get; set; }
/// <summary>
/// Информация об отметках «Мне нравится» текущего комментария (если был задан
/// параметр need_likes)
/// </summary>
[JsonProperty(propertyName: "likes")]
public Likes Likes { get; set; }
}