Skip to content

Commit

Permalink
Fixed warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
JKorf committed Aug 21, 2024
1 parent de29786 commit ec17956
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 14 deletions.
7 changes: 0 additions & 7 deletions Kucoin.Net/Clients/SpotApi/KucoinRestClientSpotApiAccount.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,6 @@ public async Task<WebCallResult<KucoinUserInfo>> GetUserInfoAsync(CancellationTo
return await _baseClient.SendAsync<KucoinUserInfo>(request, null, ct).ConfigureAwait(false);
}

/// <inheritdoc />
public async Task<WebCallResult<IEnumerable<KucoinSubUser>>> GetSubUserInfoAsync(CancellationToken ct = default)
{
var request = _definitions.GetOrCreate(HttpMethod.Get, $"api/v1/sub/user", KucoinExchange.RateLimiter.ManagementRest, 20, true);
return await _baseClient.SendAsync<IEnumerable<KucoinSubUser>>(request, null, ct).ConfigureAwait(false);
}

/// <inheritdoc />
public async Task<WebCallResult<IEnumerable<KucoinAccount>>> GetAccountsAsync(string? asset = null, AccountType? accountType = null, CancellationToken ct = default)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public async Task<WebCallResult<IEnumerable<KucoinSubUserKey>>> GetSubAccountApi
return result.AsError<IEnumerable<KucoinSubUserKey>>(new ServerError(result.Data.Code, result.Data.Message ?? "-"));

if (!string.IsNullOrEmpty(result.Data.Message))
return result.AsError<IEnumerable<KucoinSubUserKey>>(new ServerError(result.Data.Message));
return result.AsError<IEnumerable<KucoinSubUserKey>>(new ServerError(result.Data.Message!));

return result.As(result.Data.Data);
}
Expand Down Expand Up @@ -109,7 +109,7 @@ public async Task<WebCallResult<KucoinSubUserKeyDetails>> CreateSubAccountApiKey
return result.AsError<KucoinSubUserKeyDetails>(new ServerError(result.Data.Code, result.Data.Message ?? "-"));

if (!string.IsNullOrEmpty(result.Data.Message))
return result.AsError<KucoinSubUserKeyDetails>(new ServerError(result.Data.Message));
return result.AsError<KucoinSubUserKeyDetails>(new ServerError(result.Data.Message!));

return result.As(result.Data.Data);
}
Expand Down Expand Up @@ -141,7 +141,7 @@ public async Task<WebCallResult<KucoinSubUserKeyEdited>> EditSubAccountApiKeyAsy
return result.AsError<KucoinSubUserKeyEdited>(new ServerError(result.Data.Code, result.Data.Message ?? "-"));

if (!string.IsNullOrEmpty(result.Data.Message))
return result.AsError<KucoinSubUserKeyEdited>(new ServerError(result.Data.Message));
return result.AsError<KucoinSubUserKeyEdited>(new ServerError(result.Data.Message!));

return result.As(result.Data.Data);
}
Expand All @@ -167,7 +167,7 @@ public async Task<WebCallResult<KucoinSubUserKeyEdited>> DeleteSubAccountApiKeyA
return result.AsError<KucoinSubUserKeyEdited>(new ServerError(result.Data.Code, result.Data.Message ?? "-"));

if (!string.IsNullOrEmpty(result.Data.Message))
return result.AsError<KucoinSubUserKeyEdited>(new ServerError(result.Data.Message));
return result.AsError<KucoinSubUserKeyEdited>(new ServerError(result.Data.Message!));

return result.As(result.Data.Data);
}
Expand Down
3 changes: 0 additions & 3 deletions Kucoin.Net/Kucoin.Net.xml
Original file line number Diff line number Diff line change
Expand Up @@ -442,9 +442,6 @@
<member name="M:Kucoin.Net.Clients.SpotApi.KucoinRestClientSpotApiAccount.GetUserInfoAsync(System.Threading.CancellationToken)">
<inheritdoc />
</member>
<member name="M:Kucoin.Net.Clients.SpotApi.KucoinRestClientSpotApiAccount.GetSubUserInfoAsync(System.Threading.CancellationToken)">
<inheritdoc />
</member>
<member name="M:Kucoin.Net.Clients.SpotApi.KucoinRestClientSpotApiAccount.GetAccountsAsync(System.String,System.Nullable{Kucoin.Net.Enums.AccountType},System.Threading.CancellationToken)">
<inheritdoc />
</member>
Expand Down

0 comments on commit ec17956

Please sign in to comment.