vknet_vk/VkNet/Model/LongPollServerResponse.cs
Tartilla-TAIGO 5454ae3b55
Merge pull request #1644
* update from vk.com to vk.ru

* add Microsoft.Extensions.Logging

* Исправляет сборку

* Исправляет сборку

* Обновляет пакеты

* Переводит тесты на AwesomeAssertions

* Устанавливает Reo.Core.Analyzers из nuget

* Удаляет явную ссылку на Reo.Core.Analyzers из VkNet.csproj
2025-09-08 22:08:03 +03:00

38 lines
No EOL
1.2 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 Newtonsoft.Json;
namespace VkNet.Model;
/// <summary>
/// Объект, с помощью которого можно подключиться к серверу быстрых сообщений для
/// мгновенного
/// получения приходящих сообщений и других событий.
/// См. описание http://vk.ru/dev/messages.getLongPollServer
/// </summary>
[Serializable]
public class LongPollServerResponse
{
/// <summary>
/// Ключ для подключения.
/// </summary>
[JsonProperty("key")]
public string Key { get; set; }
/// <summary>
/// Имя сервера быстрых сообщений.
/// </summary>
[JsonProperty("server")]
public string Server { get; set; }
/// <summary>
/// Номер последнего события, начиная с которого нужно получать данные;
/// </summary>
[JsonProperty("ts")]
public ulong Ts { get; set; }
/// <summary>
/// Постоянное событие для работы с методом getLongPollHistory
/// </summary>
[JsonProperty("pts")]
public ulong? Pts { get; set; }
}