Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SonarLint analysis #1444

Merged
merged 63 commits into from
Mar 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
63 commits
Select commit Hold shift + click to select a range
a391ea3
Implement groups.getTagList
sampletext32 Oct 3, 2021
a7f8543
Implement groups.setSettings
sampletext32 Oct 3, 2021
e897f28
Implement groups.setUserNote
sampletext32 Oct 3, 2021
4a540df
Restrict groups.setUserNote Note field to be not more than 96 chars
sampletext32 Oct 3, 2021
f2baacb
Fix missing GroupTag [Serializable]
sampletext32 Oct 3, 2021
730be79
Implement groups.tagAdd
Jun 17, 2022
c8fe418
Заменяет SafetyEnum на StringEnum для NameRequest
Panuchi Mar 12, 2023
a87b15e
Заменяет SafetyEnum на StringEnum для CampaignType
Panuchi Mar 13, 2023
ad7fa83
Заменяет SafetyEnum на StringEnum для CallbackServerStatus
Panuchi Mar 13, 2023
cc3cdcd
Заменяет SafetyEnum на StringEnum для Button
Panuchi Mar 12, 2023
f0782dd
Заменяет SafetyEnum на StringEnum для AudioCatalogSourceType
Panuchi Mar 12, 2023
a68176f
Заменяет SafetyEnum на StringEnum для AudioAlbumType
Panuchi Mar 12, 2023
e4dda8c
Заменяет SafetyEnum на StringEnum для AppWidgetType
Panuchi Mar 12, 2023
93cf780
Убирает лишнее приведение к строке
Panuchi Mar 12, 2023
99eb996
Заменяет SafetyEnum на StringEnum для AppType
Panuchi Mar 12, 2023
0a724a7
Заменяет SafetyEnum на StringEnum для AppSort
Panuchi Mar 12, 2023
ec7c10e
Заменяет SafetyEnum на StringEnum для AppRequestType
Panuchi Mar 12, 2023
3645377
Заменяет SafetyEnum на StringEnum для AppPlatforms
Panuchi Mar 12, 2023
82a8900
Заменяет SafetyEnum на StringEnum для AdsLinkType
Panuchi Mar 12, 2023
1dd2ac8
Заменяет SafetyEnum на StringEnum для AdRequestStatus
Panuchi Mar 12, 2023
813789a
Заменяет SafetyEnum на StringEnum для CarouselElementActionType
Panuchi Mar 12, 2023
7a8f530
Заменяет SafetyEnum на StringEnum для MonthlyLimit
Panuchi Mar 12, 2023
2670f6c
Заменяет SafetyEnum на StringEnum для OrderState
Panuchi Mar 13, 2023
1a20e30
Убрал не испольузуемые конвертеры
Panuchi Mar 13, 2023
885f0e7
Удаляет имплисит преобразование StoryType
Panuchi Mar 13, 2023
8cec605
Исправляет GetHistoryAttachments #1418
Panuchi Mar 13, 2023
1545415
Добавляет OwnerState в User #1255
Panuchi Mar 13, 2023
1a99aab
Добавляет ContentRestricted в Audio #1245
Panuchi Mar 13, 2023
f5533c1
Добавляет события GroupUpdate - AppPayload, MarketOrderNew, MarketOrd…
Panuchi Mar 13, 2023
eb56a33
Добавил отсутствующие поля в результат работы метода account.getProfi…
Panuchi Mar 13, 2023
73a3db1
Добавил в AccountSaveProfileInfoParams поле CancelRequestId #1009
Panuchi Mar 13, 2023
3002165
Добавил carousel в объект ClientInfo #1050
Panuchi Mar 13, 2023
504b2b7
Добавил обработку параметра Extended в GetList, GetListEx #1046
Panuchi Mar 13, 2023
11c04c9
date и views_count теперь возвращаются только администратору группы, …
Panuchi Mar 14, 2023
a4777da
Обновляет пакеты #1422
Panuchi Mar 14, 2023
afe34a0
duplicate
Panuchi Mar 15, 2023
8c343e9
Аннотацию для ссылочных типов, допускающих значение NULL, следует исп…
Panuchi Mar 15, 2023
e965b8c
Исправление XML комментариев
Panuchi Mar 15, 2023
153c3d2
Аннотацию для ссылочных типов, допускающих значение NULL, следует исп…
Panuchi Mar 15, 2023
5cffb32
Аннотацию для ссылочных типов, допускающих значение NULL, следует исп…
Panuchi Mar 15, 2023
f70e20c
Rename parameter 'str' to 'name' to match the base class declaration
Panuchi Mar 15, 2023
99e038f
Use a constructor overloads that allows a more meaningful exception m…
Panuchi Mar 15, 2023
522838b
S3887: Use an immutable collection or reduce the accessibility of the…
Panuchi Mar 15, 2023
9c44239
Исправление XML комментариев
Panuchi Mar 15, 2023
4e79b37
Убрал лишние свойства (используются в другом объекте в качестве парам…
Panuchi Mar 15, 2023
9e89ea9
Generic type parameters should be co/contravariant when possible
Panuchi Mar 15, 2023
1b575e7
Поправить возможность использования перегрузок методов + параметр tit…
Panuchi Mar 15, 2023
7a931df
5.105 В объект приложения добавлены 2 новых поля #994
Panuchi Mar 15, 2023
1596521
Пометил устаревшее поле #1003
Panuchi Mar 15, 2023
eb2d785
Добавляет метод messages.setMemberRole #1031
Panuchi Mar 15, 2023
155654b
5.115 В stories.getViewers изменился ответ #1063
Panuchi Mar 15, 2023
d5411f4
5.118 изменен процесс загрузки историй #1064
Panuchi Mar 15, 2023
1930d27
Обновил настройки приватности #1158
Panuchi Mar 16, 2023
5809292
Merge remote-tracking branch 'sampletext/groups' into new11
Panuchi Mar 18, 2023
1ff6e0e
Добавление отсутствующих методов в groups
Panuchi Mar 19, 2023
9d6e429
Заменил Call на Call<T>
Panuchi Mar 19, 2023
b655e6a
Method overloads with default parameter values should not overlap
Panuchi Mar 19, 2023
e39a996
Исправление XML комментариев
Panuchi Mar 19, 2023
746332f
Method overloads with default parameter values should not overlap
Panuchi Mar 19, 2023
f034847
Extended всегда true
Panuchi Mar 19, 2023
303676c
Исправил перегрузку метода
Panuchi Mar 19, 2023
a60bbe8
Исправление XML комментариев
Panuchi Mar 19, 2023
75bef75
Merge branch 'develop' into new12
inyutin-maxim Mar 20, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion VkNet/Abstractions/Category/Async/IAudioCategoryAsync.cs
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ public interface IAudioCategoryAsync
/// <remarks>
/// Страница документации ВКонтакте http://vk.com/dev/audio.getUploadServer
/// </remarks>
Task<Uri> GetUploadServerAsync();
Task<UploadServer> GetUploadServerAsync();

/// <summary>
/// Перемещает аудиозаписи в плейлист.
Expand Down
2 changes: 1 addition & 1 deletion VkNet/Abstractions/Category/Async/IPollsCategoryAsync.cs
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public interface IPollsCategoryAsync
/// <remarks>
/// Страница документации ВКонтакте http://vk.com/dev.php?method=polls.getPhotoUploadServer
/// </remarks>
Task<PhotoUploadServer> GetPhotoUploadServerAsync(long ownerId);
Task<UploadServer> GetPhotoUploadServerAsync(long ownerId);

/// <summary>
/// Сохраняет фотографию, загруженную в опрос.
Expand Down
2 changes: 1 addition & 1 deletion VkNet/Abstractions/Category/IAudioCategory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public interface IAudioCategory : IAudioCategoryAsync
uint? offset = null, bool? shuffle = null);

/// <inheritdoc cref="IAudioCategoryAsync.GetUploadServerAsync"/>
Uri GetUploadServer();
UploadServer GetUploadServer();

/// <inheritdoc cref="IAudioCategoryAsync.AddToPlaylistAsync"/>
IEnumerable<long> AddToPlaylist(long ownerId, long playlistId, IEnumerable<string> audioIds);
Expand Down
2 changes: 1 addition & 1 deletion VkNet/Abstractions/Category/IDocsCategory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public interface IDocsCategory : IDocsCategoryAsync
/// <inheritdoc cref="IDocsCategoryAsync.SaveAsync(string,string,string)"/>
ReadOnlyCollection<Attachment> Save(string file, string title = null, string tags = null);

/// <inheritdoc cref="IDocsCategoryAsync.SaveAsync(string,string,string,long?,string)"/>
/// <inheritdoc cref="IDocsCategoryAsync.SaveAsync(string,long?,string,string,string)"/>
[Obsolete(ObsoleteText.CaptchaNeeded, true)]
ReadOnlyCollection<Attachment> Save(string file, long? captchaSid = null, string title = null ,string tags = null,
string captchaKey = null);
Expand Down
2 changes: 1 addition & 1 deletion VkNet/Abstractions/Category/IPollsCategory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public interface IPollsCategory : IPollsCategoryAsync
ReadOnlyCollection<GetBackgroundsResult> GetBackgrounds();

/// <inheritdoc cref="IPollsCategoryAsync.GetPhotoUploadServerAsync"/>
PhotoUploadServer GetPhotoUploadServer(long ownerId);
UploadServer GetPhotoUploadServer(long ownerId);

/// <inheritdoc cref="IPollsCategoryAsync.SavePhotoAsync"/>
SavePhotoResult SavePhoto(SavePhotoParams @params);
Expand Down
6 changes: 4 additions & 2 deletions VkNet/Abstractions/Category/IStoriesCategory.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
using System.Threading;
using JetBrains.Annotations;
using VkNet.Abstractions.Category;
using VkNet.Model;
Expand Down Expand Up @@ -55,10 +56,11 @@ public interface IStoriesCategory : IStoriesCategoryAsync
/// <inheritdoc cref="IStoriesCategoryAsync.UnbanOwnerAsync"/>
bool UnbanOwner(IEnumerable<long> ownersIds);

/// <inheritdoc cref="IStoriesCategoryAsync.SaveAsync"/>
/// <inheritdoc cref="IStoriesCategoryAsync.SaveAsync(StoryServerUrl, CancellationToken)"/>
VkCollection<Story> Save(StoryServerUrl uploadResults);

/// <inheritdoc cref="IStoriesCategoryAsync.SaveAsync"/>
/// <inheritdoc cref="IStoriesCategoryAsync.SaveAsync(StoryServerUrl, bool, IEnumerable{string}, CancellationToken)"/>

[Obsolete("Начиная с версии 5.118 используется только параметр uploadResults")]
VkCollection<Story> Save(StoryServerUrl uploadResults, bool extended, IEnumerable<string> fields);

Expand Down
3 changes: 2 additions & 1 deletion VkNet/Abstractions/Core/IVkApiInvoke.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@ public interface IVkApiInvoke
/// <param name="methodName"> Название метода. </param>
/// <param name="parameters"> Параметры. </param>
/// <param name="skipAuthorization"> Если <c> true </c> то пропустить авторизацию. </param>
/// /// <param name="jsonConverters"> JsonConverters </param>
/// <returns> </returns>
VkResponse Call(string methodName, VkParameters parameters, bool skipAuthorization = false);
VkResponse Call(string methodName, VkParameters parameters, bool skipAuthorization = false, params JsonConverter[] jsonConverters);

/// <summary>
/// Вызвать метод.
Expand Down
3 changes: 2 additions & 1 deletion VkNet/Abstractions/Core/IVkLongPollInvoke.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ public interface IVkLongPollInvoke
/// </summary>
/// <param name="server"> Сервер. </param>
/// <param name="parameters"> Параметры. </param>
/// /// <param name="jsonConverters"> JsonConverters </param>
/// <returns> </returns>
VkResponse CallLongPoll(string server, VkParameters parameters);
VkResponse CallLongPoll(string server, VkParameters parameters, params JsonConverter[] jsonConverters);

/// <summary>
/// Вызвать ожидание событий LongPoll API.
Expand Down
18 changes: 9 additions & 9 deletions VkNet/Categories/AccountCategory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,14 @@ public bool SetOnline(bool? voip = null)
}

/// <inheritdoc />
public bool SetOffline() => _vk.Call("account.setOffline", VkParameters.Empty);
public bool SetOffline() => _vk.Call<bool>("account.setOffline", VkParameters.Empty);

/// <inheritdoc />
public bool RegisterDevice(AccountRegisterDeviceParams @params)
{
VkErrors.ThrowIfNullOrEmpty(() => @params.Token);

return _vk.Call("account.registerDevice",
return _vk.Call<bool>("account.registerDevice",
new()
{
{
Expand Down Expand Up @@ -115,7 +115,7 @@ public bool UnregisterDevice(string deviceId, bool? sandbox = null)
}
};

return _vk.Call("account.unregisterDevice", parameters);
return _vk.Call<bool>("account.unregisterDevice", parameters);
}

/// <inheritdoc />
Expand All @@ -139,7 +139,7 @@ public bool SetSilenceMode(string deviceId, int? time = null, int? peerId = null
}
};

return _vk.Call("account.setSilenceMode", parameters);
return _vk.Call<bool>("account.setSilenceMode", parameters);
}

/// <inheritdoc />
Expand Down Expand Up @@ -175,7 +175,7 @@ public bool SetPushSettings(string deviceId, PushSettings settings, string key,
}
};

return _vk.Call("account.setPushSettings", parameters);
return _vk.Call<bool>("account.setPushSettings", parameters);
}

/// <inheritdoc />
Expand All @@ -188,7 +188,7 @@ public long GetAppPermissions(long userId)
}
};

return _vk.Call("account.getAppPermissions", parameters);
return _vk.Call<long>("account.getAppPermissions", parameters);
}

/// <inheritdoc />
Expand Down Expand Up @@ -221,7 +221,7 @@ public bool Ban(long ownerId)
}
};

return _vk.Call("account.ban", parameters);
return _vk.Call<bool>("account.ban", parameters);
}

/// <inheritdoc />
Expand All @@ -238,7 +238,7 @@ public bool Unban(long ownerId)
}
};

return _vk.Call("account.unban", parameters);
return _vk.Call<bool>("account.unban", parameters);
}

/// <inheritdoc />
Expand Down Expand Up @@ -282,7 +282,7 @@ public bool SetInfo(string name, string value)
}
};

return _vk.Call("account.setInfo", parameters);
return _vk.Call<bool>("account.setInfo", parameters);
}

/// <inheritdoc />
Expand Down
10 changes: 5 additions & 5 deletions VkNet/Categories/AppsCategory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public AppGetObject Get(AppGetParams @params, bool skipAuthorization = false)
}

/// <inheritdoc />
public long SendRequest(AppSendRequestParams @params) => _vk.Call("apps.sendRequest", new()
public long SendRequest(AppSendRequestParams @params) => _vk.Call<long>("apps.sendRequest", new()
{
{
"user_id", @params.UserId
Expand All @@ -110,7 +110,7 @@ public long SendRequest(AppSendRequestParams @params) => _vk.Call("apps.sendRequ
});

/// <inheritdoc />
public bool DeleteAppRequests() => _vk.Call("apps.deleteAppRequests", VkParameters.Empty);
public bool DeleteAppRequests() => _vk.Call<bool>("apps.deleteAppRequests", VkParameters.Empty);

/// <inheritdoc />
public VkCollection<User> GetFriendsList(AppRequestType type
Expand Down Expand Up @@ -201,7 +201,7 @@ public long GetScore(long userId)
}
};

return _vk.Call("apps.getScore", parameters);
return _vk.Call<long>("apps.getScore", parameters);
}

/// <inheritdoc />
Expand All @@ -223,7 +223,7 @@ public long GetScore(long userId)
});

/// <inheritdoc />
public bool PromoHasActiveGift(ulong promoId, ulong? userId = null) => _vk.Call("apps.promoHasActiveGift",
public bool PromoHasActiveGift(ulong promoId, ulong? userId = null) => _vk.Call<bool>("apps.promoHasActiveGift",
new()
{
{
Expand All @@ -235,7 +235,7 @@ public long GetScore(long userId)
});

/// <inheritdoc />
public bool PromoUseGift(ulong promoId, ulong? userId = null) => _vk.Call("apps.promoUseGift",
public bool PromoUseGift(ulong promoId, ulong? userId = null) => _vk.Call<bool>("apps.promoUseGift",
new()
{
{
Expand Down
2 changes: 1 addition & 1 deletion VkNet/Categories/Async/AudioCategoryAsync.cs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public partial class AudioCategory
TypeHelper.TryInvokeMethodAsync(() => GetRecommendations(targetAudio, userId, count, offset, shuffle));

/// <inheritdoc />
public Task<Uri> GetUploadServerAsync() => TypeHelper.TryInvokeMethodAsync(GetUploadServer);
public Task<UploadServer> GetUploadServerAsync() => TypeHelper.TryInvokeMethodAsync(GetUploadServer);

/// <inheritdoc />
public Task<IEnumerable<long>> AddToPlaylistAsync(long ownerId, long playlistId, IEnumerable<string> audioIds) =>
Expand Down
2 changes: 1 addition & 1 deletion VkNet/Categories/Async/PollsCategoryAsync.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public partial class PollsCategory
TypeHelper.TryInvokeMethodAsync(func: () => GetBackgrounds());

/// <inheritdoc />
public Task<PhotoUploadServer> GetPhotoUploadServerAsync(long ownerId) =>
public Task<UploadServer> GetPhotoUploadServerAsync(long ownerId) =>
TypeHelper.TryInvokeMethodAsync(func: () => GetPhotoUploadServer(ownerId));

/// <inheritdoc />
Expand Down
6 changes: 2 additions & 4 deletions VkNet/Categories/AudioCategory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -337,11 +337,9 @@ public IEnumerable<Audio> GetPopular(bool onlyEng = false, AudioGenre? genre = n
}

/// <inheritdoc />
public Uri GetUploadServer()
public UploadServer GetUploadServer()
{
var response = _vk.Call("audio.getUploadServer", VkParameters.Empty);

return response["upload_url"];
return _vk.Call<UploadServer>("audio.getUploadServer", VkParameters.Empty);
}

/// <inheritdoc />
Expand Down
4 changes: 2 additions & 2 deletions VkNet/Categories/AuthCategory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ public bool CheckPhone(string phone, string clientSecret, long? clientId = null,
}
};

return _vk.Call("auth.checkPhone", parameters);
return _vk.Call<bool>("auth.checkPhone", parameters);
}

/// <inheritdoc />
public string Signup(AuthSignupParams @params) => _vk.Call("auth.signup", new()
public string Signup(AuthSignupParams @params) => _vk.Call<string>("auth.signup", new()
{
{
"first_name", @params.FirstName
Expand Down
20 changes: 10 additions & 10 deletions VkNet/Categories/BoardCategory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public TopicsFeed GetComments(BoardGetCommentsParams @params, bool skipAuthoriza
}

/// <inheritdoc />
public long AddTopic(BoardAddTopicParams @params) => _vk.Call("board.addTopic", new()
public long AddTopic(BoardAddTopicParams @params) => _vk.Call<long>("board.addTopic", new()
{
{
"group_id", @params.GroupId
Expand All @@ -101,7 +101,7 @@ public long AddTopic(BoardAddTopicParams @params) => _vk.Call("board.addTopic",
});

/// <inheritdoc />
public bool DeleteTopic(BoardTopicParams @params) => _vk.Call("board.deleteTopic", new()
public bool DeleteTopic(BoardTopicParams @params) => _vk.Call<bool>("board.deleteTopic", new()
{
{
"group_id", @params.GroupId
Expand All @@ -112,7 +112,7 @@ public bool DeleteTopic(BoardTopicParams @params) => _vk.Call("board.deleteTopic
});

/// <inheritdoc />
public bool CloseTopic(BoardTopicParams @params) => _vk.Call("board.closeTopic", new()
public bool CloseTopic(BoardTopicParams @params) => _vk.Call<bool>("board.closeTopic", new()
{
{
"group_id", @params.GroupId
Expand All @@ -123,7 +123,7 @@ public bool CloseTopic(BoardTopicParams @params) => _vk.Call("board.closeTopic",
});

/// <inheritdoc />
public bool OpenTopic(BoardTopicParams @params) => _vk.Call("board.openTopic", new()
public bool OpenTopic(BoardTopicParams @params) => _vk.Call<bool>("board.openTopic", new()
{
{
"group_id", @params.GroupId
Expand All @@ -134,7 +134,7 @@ public bool OpenTopic(BoardTopicParams @params) => _vk.Call("board.openTopic", n
});

/// <inheritdoc />
public bool FixTopic(BoardTopicParams @params) => _vk.Call("board.fixTopic", new()
public bool FixTopic(BoardTopicParams @params) => _vk.Call<bool>("board.fixTopic", new()
{
{
"group_id", @params.GroupId
Expand All @@ -145,7 +145,7 @@ public bool FixTopic(BoardTopicParams @params) => _vk.Call("board.fixTopic", new
});

/// <inheritdoc />
public bool UnFixTopic(BoardTopicParams @params) => _vk.Call("board.unfixTopic", new()
public bool UnFixTopic(BoardTopicParams @params) => _vk.Call<bool>("board.unfixTopic", new()
{
{
"group_id", @params.GroupId
Expand All @@ -156,7 +156,7 @@ public bool UnFixTopic(BoardTopicParams @params) => _vk.Call("board.unfixTopic",
});

/// <inheritdoc />
public bool EditTopic(BoardEditTopicParams @params) => _vk.Call("board.editTopic", new()
public bool EditTopic(BoardEditTopicParams @params) => _vk.Call<bool>("board.editTopic", new()
{
{
"group_id", @params.GroupId
Expand All @@ -170,7 +170,7 @@ public bool EditTopic(BoardEditTopicParams @params) => _vk.Call("board.editTopic
});

/// <inheritdoc />
public long CreateComment(BoardCreateCommentParams @params) => _vk.Call("board.createComment", new()
public long CreateComment(BoardCreateCommentParams @params) => _vk.Call<long>("board.createComment", new()
{
{
"group_id", @params.GroupId
Expand All @@ -196,7 +196,7 @@ public long CreateComment(BoardCreateCommentParams @params) => _vk.Call("board.c
});

/// <inheritdoc />
public bool DeleteComment(BoardCommentParams @params) => _vk.Call("board.deleteComment", new()
public bool DeleteComment(BoardCommentParams @params) => _vk.Call<bool>("board.deleteComment", new()
{
{
"group_id", @params.GroupId
Expand All @@ -210,7 +210,7 @@ public bool DeleteComment(BoardCommentParams @params) => _vk.Call("board.deleteC
});

/// <inheritdoc />
public bool EditComment(BoardEditCommentParams @params) => _vk.Call("board.editComment", new()
public bool EditComment(BoardEditCommentParams @params) => _vk.Call<bool>("board.editComment", new()
{
{
"group_id", @params.GroupId
Expand Down
6 changes: 3 additions & 3 deletions VkNet/Categories/DocsCategory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ public bool Delete(long ownerId, long docId)
}
};

return _vk.Call("docs.delete", parameters);
return _vk.Call<bool>("docs.delete", parameters);
}

/// <inheritdoc />
Expand Down Expand Up @@ -235,7 +235,7 @@ public long Add(long ownerId, long docId, string accessKey = null)
}
};

return _vk.Call("docs.add", parameters);
return _vk.Call<long>("docs.add", parameters);
}

/// <inheritdoc />
Expand Down Expand Up @@ -292,7 +292,7 @@ public bool Edit(long ownerId, long docId, string title, IEnumerable<string> tag
}
};

return _vk.Call("docs.edit", parameters);
return _vk.Call<bool>("docs.edit", parameters);
}

/// <inheritdoc />
Expand Down
2 changes: 1 addition & 1 deletion VkNet/Categories/DonutCategory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public bool IsDon(long ownerId)
}
};

return _vk.Call("donut.isDon", parameters);
return _vk.Call<bool>("donut.isDon", parameters);
}

/// <inheritdoc/>
Expand Down
Loading