mirror of
https://github.com/vknet/vk.git
synced 2026-07-18 12:23:29 +00:00
57 lines
No EOL
1.8 KiB
C#
57 lines
No EOL
1.8 KiB
C#
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; }
|
||
} |