Skip to content

Commit

Permalink
Сделать параметр fields необязательным (#1001)
Browse files Browse the repository at this point in the history
* Mark param: fields as optional #1000

* Mark param: fields as optional #1000

* Mark param: fields as optional #1000

* Mark param: fields as optional #1000
  • Loading branch information
Panuchi authored Jun 8, 2020
1 parent 2d0bc8d commit c6e0b96
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions VkNet/Abstractions/Category/Async/IMessagesCategoryAsync.cs
Original file line number Diff line number Diff line change
Expand Up @@ -783,7 +783,7 @@ Task<ConversationResult> GetConversationsByIdAsync(IEnumerable<long> peerIds, IE
/// Страница документации ВКонтакте
/// http://vk.com/dev/messages.getConversationMembers
/// </remarks>
Task<GetConversationMembersResult> GetConversationMembersAsync(long peerId, IEnumerable<string> fields, ulong? groupId = null);
Task<GetConversationMembersResult> GetConversationMembersAsync(long peerId, IEnumerable<string> fields = null, ulong? groupId = null);

/// <summary>
/// Возвращает сообщения по их идентификаторам в рамках беседы.
Expand Down Expand Up @@ -1114,4 +1114,4 @@ Task<GetRecentCallsResult> GetRecentCallsAsync(IEnumerable<string> fields, ulong

#endregion
}
}
}
4 changes: 2 additions & 2 deletions VkNet/Abstractions/Category/IMessagesCategory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ ConversationResult GetConversationsById(IEnumerable<long> peerIds, IEnumerable<s
GetConversationsResult GetConversations(GetConversationsParams getConversationsParams);

/// <inheritdoc cref="IMessagesCategoryAsync.GetConversationMembersAsync"/>
GetConversationMembersResult GetConversationMembers(long peerId, IEnumerable<string> fields, ulong? groupId = null);
GetConversationMembersResult GetConversationMembers(long peerId, IEnumerable<string> fields = null, ulong? groupId = null);

/// <inheritdoc cref="IMessagesCategoryAsync.GetByConversationMessageIdAsync"/>
GetByConversationMessageIdResult GetByConversationMessageId(long peerId, [NotNull] IEnumerable<ulong> conversationMessageIds,
Expand Down Expand Up @@ -178,4 +178,4 @@ GetRecentCallsResult GetRecentCalls(IEnumerable<string> fields, ulong? count = n

#endregion
}
}
}
4 changes: 2 additions & 2 deletions VkNet/Categories/Async/MessagesCategoryAsync.cs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public Task<GetConversationsResult> GetConversationsAsync(GetConversationsParams
}

/// <inheritdoc />
public Task<GetConversationMembersResult> GetConversationMembersAsync(long peerId, IEnumerable<string> fields,
public Task<GetConversationMembersResult> GetConversationMembersAsync(long peerId, IEnumerable<string> fields = null,
ulong? groupId = null)
{
return TypeHelper.TryInvokeMethodAsync(() => GetConversationMembers(peerId, fields, groupId));
Expand Down Expand Up @@ -332,4 +332,4 @@ public Task<bool> EditAsync(MessageEditParams @params)
return TypeHelper.TryInvokeMethodAsync(() => Edit(@params));
}
}
}
}
4 changes: 2 additions & 2 deletions VkNet/Categories/MessagesCategory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ public GetConversationsResult GetConversations(GetConversationsParams getConvers
}

/// <inheritdoc />
public GetConversationMembersResult GetConversationMembers(long peerId, IEnumerable<string> fields, ulong? groupId = null)
public GetConversationMembersResult GetConversationMembers(long peerId, IEnumerable<string> fields = null, ulong? groupId = null)
{
return _vk.Call<GetConversationMembersResult>("messages.getConversationMembers",
new VkParameters
Expand Down Expand Up @@ -850,4 +850,4 @@ public Message GetById(ulong messageId, uint? previewLength = null)
throw new VkApiException("Сообщения с таким ID не существует.");
}
}
}
}

0 comments on commit c6e0b96

Please sign in to comment.