vknet_vk/VkNet/Model/ConversationCanWrite.cs
Инютин Максим Николаевич 932d99d61a Применяет стили кода
2022-08-02 00:22:12 +03:00

24 lines
No EOL
602 B
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 Newtonsoft.Json;
using VkNet.Enums;
namespace VkNet.Model;
/// <summary>
/// Информация о том, может ли пользователь писать в диалог.
/// </summary>
[Serializable]
public class ConversationCanWrite
{
/// <summary>
/// true, если пользователь может писать в диалог;
/// </summary>
[JsonProperty("allowed")]
public bool Allowed { get; set; }
/// <summary>
/// Код ошибки для allowed = false.
/// </summary>
[JsonProperty("reason")]
public CanWriteReason Reason { get; set; }
}