Method GetStoredBuilds
- Namespace
- GuildWars2.Hero.Builds
- Assembly
- GuildWars2.dll
GetStoredBuilds(string?, MissingMemberBehavior, CancellationToken)
Retrieves all builds in the build storage on the account. This endpoint is only accessible with a valid access token.
public Task<(IReadOnlyList<Build> Value, MessageContext Context)> GetStoredBuilds(string? accessToken, MissingMemberBehavior missingMemberBehavior = MissingMemberBehavior.Error, CancellationToken cancellationToken = default)
Parameters
accessTokenstringAn API key or subtoken.
missingMemberBehaviorMissingMemberBehaviorThe desired behavior when JSON contains unexpected members.
cancellationTokenCancellationTokenA token to cancel the request.
Returns
- Task<(IReadOnlyList<Build> Value, MessageContext Context)>
A task that represents the API request.
GetStoredBuilds(IEnumerable<int>, string?, MissingMemberBehavior, CancellationToken)
Retrieves builds in the specified storage numbers on the account. This endpoint is only accessible with a valid access token.
public Task<(IReadOnlyList<Build> Value, MessageContext Context)> GetStoredBuilds(IEnumerable<int> storageNumbers, string? accessToken, MissingMemberBehavior missingMemberBehavior = MissingMemberBehavior.Error, CancellationToken cancellationToken = default)
Parameters
storageNumbersIEnumerable<int>The numbers of the storage spaces to fetch.
accessTokenstringAn API key or subtoken.
missingMemberBehaviorMissingMemberBehaviorThe desired behavior when JSON contains unexpected members.
cancellationTokenCancellationTokenA token to cancel the request.
Returns
- Task<(IReadOnlyList<Build> Value, MessageContext Context)>
A task that represents the API request.