From c6e0b9630610513b0d2ad9f818db4e47d294d208 Mon Sep 17 00:00:00 2001 From: Panuchi <41389318+Panuchi@users.noreply.github.com> Date: Mon, 8 Jun 2020 13:54:01 +0000 Subject: [PATCH] =?UTF-8?q?=D0=A1=D0=B4=D0=B5=D0=BB=D0=B0=D1=82=D1=8C=20?= =?UTF-8?q?=D0=BF=D0=B0=D1=80=D0=B0=D0=BC=D0=B5=D1=82=D1=80=20fields=20?= =?UTF-8?q?=D0=BD=D0=B5=D0=BE=D0=B1=D1=8F=D0=B7=D0=B0=D1=82=D0=B5=D0=BB?= =?UTF-8?q?=D1=8C=D0=BD=D1=8B=D0=BC=20(#1001)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Mark param: fields as optional #1000 * Mark param: fields as optional #1000 * Mark param: fields as optional #1000 * Mark param: fields as optional #1000 --- VkNet/Abstractions/Category/Async/IMessagesCategoryAsync.cs | 4 ++-- VkNet/Abstractions/Category/IMessagesCategory.cs | 4 ++-- VkNet/Categories/Async/MessagesCategoryAsync.cs | 4 ++-- VkNet/Categories/MessagesCategory.cs | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/VkNet/Abstractions/Category/Async/IMessagesCategoryAsync.cs b/VkNet/Abstractions/Category/Async/IMessagesCategoryAsync.cs index d7834eb24..f09771ced 100644 --- a/VkNet/Abstractions/Category/Async/IMessagesCategoryAsync.cs +++ b/VkNet/Abstractions/Category/Async/IMessagesCategoryAsync.cs @@ -783,7 +783,7 @@ Task GetConversationsByIdAsync(IEnumerable peerIds, IE /// Страница документации ВКонтакте /// http://vk.com/dev/messages.getConversationMembers /// - Task GetConversationMembersAsync(long peerId, IEnumerable fields, ulong? groupId = null); + Task GetConversationMembersAsync(long peerId, IEnumerable fields = null, ulong? groupId = null); /// /// Возвращает сообщения по их идентификаторам в рамках беседы. @@ -1114,4 +1114,4 @@ Task GetRecentCallsAsync(IEnumerable fields, ulong #endregion } -} \ No newline at end of file +} diff --git a/VkNet/Abstractions/Category/IMessagesCategory.cs b/VkNet/Abstractions/Category/IMessagesCategory.cs index 12e1adf33..f8666ab98 100644 --- a/VkNet/Abstractions/Category/IMessagesCategory.cs +++ b/VkNet/Abstractions/Category/IMessagesCategory.cs @@ -122,7 +122,7 @@ ConversationResult GetConversationsById(IEnumerable peerIds, IEnumerable - GetConversationMembersResult GetConversationMembers(long peerId, IEnumerable fields, ulong? groupId = null); + GetConversationMembersResult GetConversationMembers(long peerId, IEnumerable fields = null, ulong? groupId = null); /// GetByConversationMessageIdResult GetByConversationMessageId(long peerId, [NotNull] IEnumerable conversationMessageIds, @@ -178,4 +178,4 @@ GetRecentCallsResult GetRecentCalls(IEnumerable fields, ulong? count = n #endregion } -} \ No newline at end of file +} diff --git a/VkNet/Categories/Async/MessagesCategoryAsync.cs b/VkNet/Categories/Async/MessagesCategoryAsync.cs index 5f36ff74b..75ab59ab1 100644 --- a/VkNet/Categories/Async/MessagesCategoryAsync.cs +++ b/VkNet/Categories/Async/MessagesCategoryAsync.cs @@ -82,7 +82,7 @@ public Task GetConversationsAsync(GetConversationsParams } /// - public Task GetConversationMembersAsync(long peerId, IEnumerable fields, + public Task GetConversationMembersAsync(long peerId, IEnumerable fields = null, ulong? groupId = null) { return TypeHelper.TryInvokeMethodAsync(() => GetConversationMembers(peerId, fields, groupId)); @@ -332,4 +332,4 @@ public Task EditAsync(MessageEditParams @params) return TypeHelper.TryInvokeMethodAsync(() => Edit(@params)); } } -} \ No newline at end of file +} diff --git a/VkNet/Categories/MessagesCategory.cs b/VkNet/Categories/MessagesCategory.cs index ab43a733d..42bfe6f47 100644 --- a/VkNet/Categories/MessagesCategory.cs +++ b/VkNet/Categories/MessagesCategory.cs @@ -273,7 +273,7 @@ public GetConversationsResult GetConversations(GetConversationsParams getConvers } /// - public GetConversationMembersResult GetConversationMembers(long peerId, IEnumerable fields, ulong? groupId = null) + public GetConversationMembersResult GetConversationMembers(long peerId, IEnumerable fields = null, ulong? groupId = null) { return _vk.Call("messages.getConversationMembers", new VkParameters @@ -850,4 +850,4 @@ public Message GetById(ulong messageId, uint? previewLength = null) throw new VkApiException("Сообщения с таким ID не существует."); } } -} \ No newline at end of file +}