mirror of
https://github.com/vknet/vk.git
synced 2026-07-10 00:18:28 +00:00
45 lines
No EOL
1.3 KiB
C#
45 lines
No EOL
1.3 KiB
C#
using System;
|
|
using Newtonsoft.Json;
|
|
using Newtonsoft.Json.Converters;
|
|
|
|
namespace VkNet.Model;
|
|
|
|
/// <summary>
|
|
/// API Notification object.
|
|
/// </summary>
|
|
[Serializable]
|
|
public class Notification
|
|
{
|
|
/// <summary>
|
|
/// Тип оповещения.
|
|
/// </summary>
|
|
[JsonProperty(propertyName: "type")]
|
|
public string Type { get; set; }
|
|
|
|
/// <summary>
|
|
/// Время появления ответа в формате Unixtime.
|
|
/// </summary>
|
|
[JsonProperty(propertyName: "date")]
|
|
[JsonConverter(converterType: typeof(UnixDateTimeConverter))]
|
|
public DateTime Date { get; set; }
|
|
|
|
/// <summary>
|
|
/// Объект описывающий поступивший ответ.
|
|
/// </summary>
|
|
[JsonProperty(propertyName: "feedback")]
|
|
public Feedback Feedback { get; set; }
|
|
|
|
/// <summary>
|
|
/// объект, описывающий комментарий текущего пользователя, отправленный в ответ на
|
|
/// данное оповещение. Отсутствует, если
|
|
/// пользователь ещё не давал ответа.
|
|
/// </summary>
|
|
[JsonProperty(propertyName: "reply")]
|
|
public Reply Reply { get; set; }
|
|
|
|
/// <summary>
|
|
/// Property
|
|
/// </summary>
|
|
[JsonProperty(propertyName: "parent")]
|
|
public Feedback Parent { get; set; }
|
|
} |