mirror of
https://github.com/vknet/vk.git
synced 2026-07-17 03:48:26 +00:00
54 lines
No EOL
1.5 KiB
C#
54 lines
No EOL
1.5 KiB
C#
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; }
|
||
} |