vknet_vk/VkNet/Model/LastActivity.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

32 lines
No EOL
922 B
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;
using Newtonsoft.Json.Converters;
namespace VkNet.Model;
/// <summary>
/// Информация о последней активности пользователя.
/// См. описание http://vk.ru/dev/messages.getLastActivity
/// </summary>
[Serializable]
public class LastActivity
{
/// <summary>
/// Идентификатор пользователя.
/// </summary>
[JsonProperty("user_id")]
public long UserId { get; set; }
/// <summary>
/// Текущий статус пользователя (true - в сети, false - не в сети).
/// </summary>
[JsonProperty("online")]
public bool? IsOnline { get; set; }
/// <summary>
/// Дата последней активности пользователя.
/// </summary>
[JsonProperty("time")]
[JsonConverter(converterType: typeof(UnixDateTimeConverter))]
public DateTime? Time { get; set; }
}