Method GetBackgroundStoryQuestionById
- Namespace
- GuildWars2.Hero.StoryJournal
- Assembly
- GW2SDK.dll
GetBackgroundStoryQuestionById(int, Language?, MissingMemberBehavior, CancellationToken)
Retrieves a background story question by its ID.
public Task<(BackgroundStoryQuestion Value, MessageContext Context)> GetBackgroundStoryQuestionById(int questionId, Language? language = null, MissingMemberBehavior missingMemberBehavior = MissingMemberBehavior.Error, CancellationToken cancellationToken = default)
Parameters
questionId
intthe background story question ID.
language
LanguageThe language to use for descriptions.
missingMemberBehavior
MissingMemberBehaviorThe desired behavior when JSON contains unexpected members.
cancellationToken
CancellationTokenA token to cancel the request.
Returns
- Task<(BackgroundStoryQuestion Value, MessageContext Context)>
A task that represents the API request.