vknet_vk/VkNet/Model/SearchHintsItem.cs
Timofei Jääger e4862c0e96
Пометил StringEnums nullable #1556 (#1577)
Co-authored-by: inyutin-maxim <inyutin_maxim@mail.ru>
2023-08-28 17:13:16 +03:00

57 lines
No EOL
1.8 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;
using VkNet.Enums.Filters;
using VkNet.Enums.StringEnums;
using VkNet.Utils.JsonConverter;
namespace VkNet.Model;
/// <summary>
/// Элемент подсказки поиска
/// </summary>
[Serializable]
public class SearchHintsItem
{
/// <summary>
/// тип объекта
/// </summary>
[JsonProperty(propertyName: "type")]
public SearchResultType? Type { get; set; }
/// <summary>
/// данные о сообществе.
/// </summary>
[JsonProperty(propertyName: "group")]
public SearchGroup Group { get; set; }
/// <summary>
/// данные о профиле.
/// </summary>
[JsonProperty(propertyName: "profile")]
public SearchProfile Profile { get; set; }
/// <summary>
/// тип объекта
/// </summary>
[JsonProperty(propertyName: "section")]
[JsonConverter(converterType: typeof(SafetyEnumJsonConverter))]
public SearchFilter Section { get; set; }
/// <summary>
/// описание объекта (для сообществ — тип и число участников, например, Group,
/// 269,136 members,
/// для профилей друзей или пользователями, которые не являются возможными друзьями
/// — название университета или город,
/// для профиля текущего пользователя — That's you, для профилей возможных друзей —
/// N mutual friends).
/// </summary>
[JsonProperty(propertyName: "description")]
public string Description { get; set; }
/// <summary>
/// поле возвращается, если объект был найден в глобальном поиске, всегда содержит
/// 1.
/// </summary>
[JsonProperty(propertyName: "global")]
public bool? Global { get; set; }
}