Method GetColorsByIds
- Namespace
- GuildWars2.Hero.Equipment.Dyes
- Assembly
- GuildWars2.dll
GetColorsByIds(IEnumerable<int>, Language?, MissingMemberBehavior, CancellationToken)
Retrieves dye colors by their IDs.
public Task<(IImmutableValueSet<DyeColor> Value, MessageContext Context)> GetColorsByIds(IEnumerable<int> colorIds, Language? language = null, MissingMemberBehavior missingMemberBehavior = MissingMemberBehavior.Error, CancellationToken cancellationToken = default)
Parameters
colorIdsIEnumerable<int>The dye color IDs.
languageLanguageThe language to use for descriptions.
missingMemberBehaviorMissingMemberBehaviorThe desired behavior when JSON contains unexpected members.
cancellationTokenCancellationTokenA token to cancel the request.
Returns
- Task<(IImmutableValueSet<DyeColor> Value, MessageContext Context)>
A task that represents the API request.