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

75 lines
No EOL
1.9 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 System.Collections.Generic;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using VkNet.Enums.StringEnums;
namespace VkNet.Model;
/// <summary>
/// Результат метода fave.get
/// </summary>
[Serializable]
public class FaveGetObject
{
/// <summary>
/// Дата добавления объекта в закладки.
/// </summary>
[JsonProperty("added_date")]
[JsonConverter(typeof(UnixDateTimeConverter))]
public DateTime AddedDate { get; set; }
/// <summary>
/// Является ли закладка просмотренной.
/// </summary>
[JsonProperty("seen")]
public bool Seen { get; set; }
/// <summary>
/// Тип объекта, добавленного в закладки.
/// </summary>
[JsonProperty("type")]
public FaveType? Type { get; set; }
/// <summary>
/// Массив меток объекта в списке закладок.
/// </summary>
[JsonProperty("tags")]
public IEnumerable<FaveTag> Tags { get; set; }
/// <summary>
/// Запись со стены пользователя или сообщества.
/// </summary>
[JsonProperty("post")]
public Post Post { get; set; }
/// <summary>
/// Видеозапись пользователя или группы.
/// </summary>
[JsonProperty("video")]
public Video Video { get; set; }
/// <summary>
/// Информация о продукте.
/// </summary>
[JsonProperty("product")]
public Market Product { get; set; }
/// <summary>
/// Статья
/// </summary>
[JsonProperty("article")]
public Article Article { get; set; }
/// <summary>
/// Подкаст
/// </summary>
[JsonProperty("podcast")]
public Podcast Podcast { get; set; }
/// <summary>
/// Ссылка на Web-страницу. /// См. описание http://vk.ru/dev/attachments_w
/// </summary>
[JsonProperty("link")]
public Link Link { get; set; }
}