mirror of
https://github.com/vknet/vk.git
synced 2026-08-28 17:52:02 +00:00
26 lines
No EOL
639 B
C#
26 lines
No EOL
639 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using Newtonsoft.Json;
|
|
using VkNet.Enums.StringEnums;
|
|
|
|
namespace VkNet.Model;
|
|
|
|
/// <summary>
|
|
/// Объект шаблона, отправляемый ботом.
|
|
/// </summary>
|
|
[Serializable]
|
|
[JsonObject(MemberSerialization.OptOut)]
|
|
public class MessageTemplate
|
|
{
|
|
/// <summary>
|
|
/// Тип шаблона.
|
|
/// </summary>
|
|
[JsonProperty(propertyName: "type")]
|
|
public TemplateType? Type { get; set; }
|
|
|
|
/// <summary>
|
|
/// Массив элементов шаблона.
|
|
/// </summary>
|
|
[JsonProperty(propertyName: "elements")]
|
|
public IEnumerable<CarouselElement> Elements { get; set; }
|
|
} |