Method GetStoredBuilds
- Namespace
- GuildWars2.Hero.Builds
- Assembly
- GW2SDK.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
accessToken
stringAn API key or subtoken.
missingMemberBehavior
MissingMemberBehaviorThe desired behavior when JSON contains unexpected members.
cancellationToken
CancellationTokenA 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
storageNumbers
IEnumerable<int>The numbers of the storage spaces to fetch.
accessToken
stringAn API key or subtoken.
missingMemberBehavior
MissingMemberBehaviorThe desired behavior when JSON contains unexpected members.
cancellationToken
CancellationTokenA token to cancel the request.
Returns
- Task<(IReadOnlyList<Build> Value, MessageContext Context)>
A task that represents the API request.