Skip to content

Commit

Permalink
Add todo
Browse files Browse the repository at this point in the history
  • Loading branch information
sliekens committed Jan 26, 2025
1 parent b78d3a2 commit ebc9b65
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions GW2SDK/Features/Hero/StoryJournal/Stories/Storyline.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ public sealed record Storyline
/// <summary>The display order of the storyline in the story journal.</summary>
public required int Order { get; init; }

// TODO: should have been IReadOnlyList<int>
/// <summary>The IDs of the stories that belong to this storyline.</summary>
public required List<int> StoryIds { get; init; }
}
4 changes: 3 additions & 1 deletion GW2SDK/Features/Hero/StoryJournal/Stories/StorylineJson.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,11 @@ public static Storyline GetStoryline(this JsonElement json)
Id = id.Map(static value => value.GetStringRequired()),
Name = name.Map(static value => value.GetStringRequired()),
Order = order.Map(static value => value.GetInt32()),

// TODO: should have been IReadOnlyList<int>
StoryIds = stories.Map(
static values => values.GetList(static value => value.GetInt32())
)
).ToList()
};
}
}

0 comments on commit ebc9b65

Please sign in to comment.