From 065c6ec80f38da640e91235fa2592a98a64dbb60 Mon Sep 17 00:00:00 2001 From: dslekom Date: Fri, 15 Dec 2023 13:45:29 +0500 Subject: [PATCH] added new PhotoSizeType "J", fixed set market id --- VkNet/Enums/StringEnums/PhotoSizeType.cs | 10 +++++++++- VkNet/Model/Attachments/Market.cs | 7 +------ 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/VkNet/Enums/StringEnums/PhotoSizeType.cs b/VkNet/Enums/StringEnums/PhotoSizeType.cs index 31576ca25..cf95ef737 100644 --- a/VkNet/Enums/StringEnums/PhotoSizeType.cs +++ b/VkNet/Enums/StringEnums/PhotoSizeType.cs @@ -151,5 +151,13 @@ public enum PhotoSizeType /// /// Документация /// - L + L, + + /// + /// В документации отсутствует описание + /// + /// + /// Документация + /// + J } \ No newline at end of file diff --git a/VkNet/Model/Attachments/Market.cs b/VkNet/Model/Attachments/Market.cs index 1be6bad6b..18c10676a 100644 --- a/VkNet/Model/Attachments/Market.cs +++ b/VkNet/Model/Attachments/Market.cs @@ -27,12 +27,7 @@ public class Market : MediaAttachment { get => _id; - set { - if (value is null) - { - _id ??= -1; - } - } + set => _id = value ?? -1; } ///