vknet_vk/VkNet/Model/Keyboard/AddButtonParams.cs
Timofei Jääger e4862c0e96
Пометил StringEnums nullable #1556 (#1577)
Co-authored-by: inyutin-maxim <inyutin_maxim@mail.ru>
2023-08-28 17:13:16 +03:00

65 lines
No EOL
1.5 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 JetBrains.Annotations;
using Newtonsoft.Json;
using VkNet.Enums.StringEnums;
namespace VkNet.Model;
/// <summary>
/// Параметры для создания кнопки в билдере
/// </summary>
[Serializable]
public class AddButtonParams
{
/// <summary>
/// Надписть на кнопке
/// </summary>
public string Label { get; set; }
/// <summary>
/// Ссылка на кнопке
/// </summary>
public string Link { get; set; }
/// <summary>
/// Парметры для платежа
/// </summary>
public string Hash { get; set; }
/// <summary>
/// Дополнительная информация о кнопке
/// </summary>
public string Extra { get; set; }
/// <summary>
/// Цвет кнопки
/// </summary>
public KeyboardButtonColor? Color { get; set; } = default;
/// <summary>
/// Основная информация о типе кнопки в Payload
/// </summary>
[CanBeNull]
public string PayloadType { get; set; }
/// <summary>
/// Тип кнопки
/// </summary>
public KeyboardButtonActionType? ActionType { get; set; }
/// <summary>
/// Любой из интентов, требующий подписки.
/// </summary>
[JsonProperty("intent", NullValueHandling = NullValueHandling.Ignore)]
public Intent? Intent { get; set; }
/// <summary>
/// Дополнительное поле для confirmed_notification.
/// </summary>
public byte? SubscribeId { get; set; }
/// <summary>
/// user_id: 1-2e9
/// </summary>
public long? PeerId { get; set; }
}