-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathTelegramAnswer.cs
48 lines (43 loc) · 1016 Bytes
/
TelegramAnswer.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/*
* Created by SharpDevelop.
* User: Alex
* Date: 07.08.2015
* Time: 9:32
*
* To change this template use Tools | Options | Coding | Edit Standard Headers.
*/
using System;
using System.Collections.Generic;
using Newtonsoft.Json;
namespace Telemonitor
{
/// <summary>
/// Класс для Telegram Answer.
/// </summary>
public class TelegramAnswer
{
public TelegramAnswer()
{
}
/// <summary>
/// Статус ответа
/// </summary>
[JsonProperty("ok")]
public bool ok { get; set; }
/// <summary>
/// Описание ответа
/// </summary>
[JsonProperty("description")]
public string description { get; set; }
/// <summary>
/// Код ошибки
/// </summary>
[JsonProperty("error_code")]
public int error_code { get; set; }
/// <summary>
/// Результаты
/// </summary>
[JsonProperty("result")]
public List<TelegramUpdate> updates { get; set; }
}
}