-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBotStatistics.cs
60 lines (51 loc) · 1.8 KB
/
BotStatistics.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
49
50
51
52
53
54
55
56
57
58
59
60
using System.Text.Json.Serialization;
#pragma warning disable CS8625
namespace Telegram.Bot.ApiServer
{
/// <summary>
/// Represents the statistics for connected bot.
/// </summary>
public sealed class BotStatistics
{
/// <summary>
/// Gets or sets the ID of the bot.
/// </summary>
[JsonPropertyName("id")]
public long Id { get; set; }
/// <summary>
/// Gets or sets the uptime of the bot.
/// </summary>
[JsonPropertyName("uptime")]
public double Uptime { get; set; }
/// <summary>
/// Gets or sets the token of the bot.
/// </summary>
[JsonPropertyName("token")]
public string Token { get; set; }
/// <summary>
/// Gets or sets the username of the bot.
/// </summary>
[JsonPropertyName("username")]
public string Username { get; set; }
/// <summary>
/// Gets or sets the count of active requests for the bot.
/// </summary>
[JsonPropertyName("active_request_count")]
public int ActiveRequestCount { get; set; }
/// <summary>
/// Gets or sets the ID of the head update for the bot.
/// </summary>
[JsonPropertyName("head_update_id")]
public long HeadUpdateId { get; set; }
/// <summary>
/// Gets or sets the request count per second for the bot.
/// </summary>
[JsonPropertyName("request_count_per_sec")]
public double RequestCountPerSec { get; set; }
/// <summary>
/// Gets or sets the update count per second for the bot.
/// </summary>
[JsonPropertyName("update_count_per_sec")]
public double UpdateCountPerSec { get; set; }
}
}