コード例 #1
0
        public async ValueTask <BungieResponse <GroupResponse> > GetGroupByNameV2(
            GroupNameSearchRequest request,
            CancellationToken token = default)
        {
            var stream = new MemoryStream();
            await _serializationHelper.SerializeAsync(stream, request);

            return(await _httpClient.PostToBungieNetPlatform <GroupResponse>("/GroupV2/NameV2/", token, stream));
        }
コード例 #2
0
    public async ValueTask <BungieResponse <GroupResponse> > GetGroupByNameV2(
        GroupNameSearchRequest request,
        CancellationToken cancellationToken = default)
    {
        var stream = new MemoryStream();
        await _serializer.SerializeAsync(stream, request);

        return(await _dotNetBungieApiHttpClient
               .PostToBungieNetPlatform <GroupResponse>("/GroupV2/NameV2/", cancellationToken, stream)
               .ConfigureAwait(false));
    }
コード例 #3
0
 public async ValueTask <BungieResponse <GroupResponse> > GetGroupByNameV2(
     GroupNameSearchRequest request,
     CancellationToken token = default)
 {
     return(await _apiAccess.GetGroupByNameV2(request, token));
 }