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

54 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 System.Collections.ObjectModel;
using Newtonsoft.Json;
namespace VkNet.Model;
/// <summary>
/// Ошибка при вызове метода exeсute
/// </summary>
[Serializable]
public class VkError
{
/// <summary>
/// Метод в котором произошла ошибка
/// </summary>
[JsonProperty("method")]
public string Method { get; set; }
/// <summary>
/// Код ошибки
/// </summary>
[JsonProperty("error_code")]
public int ErrorCode { get; set; }
/// <summary>
/// Сообщение об ошибке
/// </summary>
[JsonProperty("error_msg")]
public string ErrorMessage { get; set; }
/// <summary>
/// Параметры запроса
/// </summary>
[JsonProperty("request_params")]
public ReadOnlyCollection<RequestParam> RequestParams { get; set; }
/// <summary>
/// Идентификатор капчи
/// </summary>
[JsonProperty("captcha_sid", NullValueHandling = NullValueHandling.Ignore)]
public ulong CaptchaSid { get; set; }
/// <summary>
/// Ссылка на изображение капчи
/// </summary>
[JsonProperty("captcha_img", NullValueHandling = NullValueHandling.Ignore)]
public Uri CaptchaImg { get; set; }
/// <summary>
/// Адрес который необходимо открыть в браузере для подтверждения валидации.
/// </summary>
[JsonProperty("redirect_uri", NullValueHandling = NullValueHandling.Ignore)]
public Uri RedirectUri { get; set; }
}