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

45 lines
No EOL
947 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 VkNet.Enums.StringEnums;
namespace VkNet.Model;
/// <summary>
/// Информация о родственнике.
/// См. описание http://vk.ru/dev/fields
/// </summary>
[Serializable]
public class Relative
{
/// <summary>
/// Идентификатор родственника.
/// </summary>
[JsonProperty("id")]
public long Id { get; set; }
/// <summary>
/// Тип родственника (sibling и т.п.)
/// </summary>
[JsonProperty("type")]
public RelativeType? Type { get; set; }
/// <summary>
/// Имя родственника, если он не является пользователем ВКонтакте.
/// </summary>
[JsonProperty("name")]
public string Name { get; set; }
[JsonProperty("user_id")]
private long UserId
{
get => Id;
set => Id = value;
}
[JsonProperty("uid")]
private long Uid
{
get => Id;
set => Id = value;
}
}