Skip to content

Commit a08e083

Browse files
authored
Merge pull request #26 from corielljacob/add-fc-rank-and-icon
Add properties for FC rank and icon
2 parents ce00458 + 9f91c9f commit a08e083

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

NetStone/Definitions/Model/FreeCompany/FreeCompanyMembersEntryDefinition.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,18 @@ public class FreeCompanyMembersEntryDefinition : PagedEntryDefinition
3737
[JsonProperty("RANK_ICON")]
3838
public DefinitionsPack RankIcon { get; set; }
3939

40+
/// <summary>
41+
/// Free company rank
42+
/// </summary>
43+
[JsonProperty("FC_RANK")]
44+
public DefinitionsPack FreeCompanyRank { get; set; }
45+
46+
/// <summary>
47+
/// FC rank icon
48+
/// </summary>
49+
[JsonProperty("FC_RANK_ICON")]
50+
public DefinitionsPack FreeCompanyRankIcon { get; set; }
51+
4052
/// <summary>
4153
/// Homeworld
4254
/// </summary>

NetStone/Model/Parseables/FreeCompany/Members/FreeCompanyMembersEntry.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,16 @@ public FreeCompanyMembersEntry(HtmlNode rootNode, FreeCompanyMembersEntryDefinit
3737
/// </summary>
3838
public Uri? RankIcon => ParseImageSource(this.definition.RankIcon);
3939

40+
/// <summary>
41+
/// Rank with character's Free Company
42+
/// </summary>
43+
public string FreeCompanyRank => Parse(this.definition.FreeCompanyRank);
44+
45+
/// <summary>
46+
/// Icon representing <see cref="FreeCompanyRank"/>
47+
/// </summary>
48+
public Uri? FreeCompanyRankIcon => ParseImageSource(this.definition.FreeCompanyRankIcon);
49+
4050
/// <summary>
4151
/// Home world
4252
/// </summary>

0 commit comments

Comments
 (0)