Table of Contents

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 int

the background story question ID.

language Language

The language to use for descriptions.

missingMemberBehavior MissingMemberBehavior

The desired behavior when JSON contains unexpected members.

cancellationToken CancellationToken

A token to cancel the request.

Returns

Task<(BackgroundStoryQuestion Value, MessageContext Context)>

A task that represents the API request.