Skip to content

Commit

Permalink
Merge pull request #26 from corielljacob/add-fc-rank-and-icon
Browse files Browse the repository at this point in the history
Add properties for FC rank and icon
  • Loading branch information
Koenari authored Oct 19, 2024
2 parents ce00458 + 9f91c9f commit a08e083
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,18 @@ public class FreeCompanyMembersEntryDefinition : PagedEntryDefinition
[JsonProperty("RANK_ICON")]
public DefinitionsPack RankIcon { get; set; }

/// <summary>
/// Free company rank
/// </summary>
[JsonProperty("FC_RANK")]
public DefinitionsPack FreeCompanyRank { get; set; }

/// <summary>
/// FC rank icon
/// </summary>
[JsonProperty("FC_RANK_ICON")]
public DefinitionsPack FreeCompanyRankIcon { get; set; }

/// <summary>
/// Homeworld
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,16 @@ public FreeCompanyMembersEntry(HtmlNode rootNode, FreeCompanyMembersEntryDefinit
/// </summary>
public Uri? RankIcon => ParseImageSource(this.definition.RankIcon);

/// <summary>
/// Rank with character's Free Company
/// </summary>
public string FreeCompanyRank => Parse(this.definition.FreeCompanyRank);

/// <summary>
/// Icon representing <see cref="FreeCompanyRank"/>
/// </summary>
public Uri? FreeCompanyRankIcon => ParseImageSource(this.definition.FreeCompanyRankIcon);

/// <summary>
/// Home world
/// </summary>
Expand Down

0 comments on commit a08e083

Please sign in to comment.