Table of Contents

Method GetPointOfInterestById

Namespace
GuildWars2.Exploration
Assembly
GW2SDK.dll

GetPointOfInterestById(int, int, int, int, int, Language?, MissingMemberBehavior, CancellationToken)

Retrieves a point of interest by its ID.

public Task<(PointOfInterest Value, MessageContext Context)> GetPointOfInterestById(int continentId, int floorId, int regionId, int mapId, int pointOfInterestId, Language? language = null, MissingMemberBehavior missingMemberBehavior = MissingMemberBehavior.Error, CancellationToken cancellationToken = default)

Parameters

continentId int

The continent ID.

floorId int

The floor ID.

regionId int

The region ID.

mapId int

The map ID.

pointOfInterestId int

the point of interest 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<(PointOfInterest Value, MessageContext Context)>

A task that represents the API request.