vknet_vk/VkNet/Model/Account/AccountPushSettings.cs
Инютин Максим Николаевич f6901f2aa5 #1564 Проставляет XMLDOC
2023-07-29 17:55:07 +03:00

39 lines
No EOL
1.2 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.Generic;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
namespace VkNet.Model;
/// <summary>
/// Настройки отправки аккаунта
/// </summary>
[Serializable]
public class AccountPushSettings
{
/// <summary>
/// Отключены ли уведомления.
/// </summary>
[JsonProperty("disabled")]
public bool Disabled { get; set; }
/// <summary>
/// Unixtime-значение времени, до которого временно отключены уведомления.
/// </summary>
[JsonProperty("disabled_until")]
[JsonConverter(converterType: typeof(UnixDateTimeConverter))]
public DateTime? DisabledUntil { get; set; }
/// <summary>
/// Список, содержащий настройки конкретных диалогов, и их количество первым
/// элементом.
/// </summary>
[JsonProperty("conversations")]
public IEnumerable<ChatPushSettings> Conversations { get; set; }
/// <summary>
/// Объект с настройками Push-уведомлений в специальном формате.
/// </summary>
[JsonProperty("settings")]
public PushSettings Settings { get; set; }
}