-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for builder base leagues/rankings (#140)
* Update NuGet packages * Update models * Add APIs for builder base leagues/rankings * Bump NuGet version to 8.8.0-rc1
- Loading branch information
1 parent
169f690
commit c7169ad
Showing
21 changed files
with
278 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
namespace ClashOfClans.Models | ||
{ | ||
public class BuilderBaseLeague | ||
{ | ||
private int? _id; | ||
|
||
public int Id { get => _id ?? default; set => _id = value; } | ||
|
||
public string Name { get; set; } = default!; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
using System.Collections.Generic; | ||
|
||
namespace ClashOfClans.Models | ||
{ | ||
public class BuilderBaseLeagueList : List<BuilderBaseLeague> | ||
{ | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
namespace ClashOfClans.Models | ||
{ | ||
public class ClanBuilderBaseRanking : Identity | ||
{ | ||
private int? _members; | ||
private int? _clanLevel; | ||
private int? _rank; | ||
private int? _previousRank; | ||
private int? _clanBuilderBasePoints; | ||
private int? _clanVersusPoints; | ||
|
||
public Location? Location { get; set; } | ||
|
||
public int Members { get => _members ?? default; set => _members = value; } | ||
|
||
public int ClanLevel { get => _clanLevel ?? default; set => _clanLevel = value; } | ||
|
||
public int Rank { get => _rank ?? default; set => _rank = value; } | ||
|
||
public int PreviousRank { get => _previousRank ?? default; set => _previousRank = value; } | ||
|
||
public int ClanBuilderBasePoints { get => _clanBuilderBasePoints ?? default; set => _clanBuilderBasePoints = value; } | ||
|
||
public int ClanVersusPoints { get => _clanVersusPoints ?? default; set => _clanVersusPoints = value; } | ||
|
||
public UrlContainer BadgeUrls { get; set; } = default!; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
using System.Collections.Generic; | ||
|
||
namespace ClashOfClans.Models | ||
{ | ||
public class ClanBuilderBaseRankingList : List<ClanBuilderBaseRanking> | ||
{ | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
namespace ClashOfClans.Models | ||
{ | ||
public class PlayerBuilderBaseRanking : Identity | ||
{ | ||
private int? _expLevel; | ||
private int? _rank; | ||
private int? _previousRank; | ||
private int? _builderBaseTrophies; | ||
private int? _versusTrophies; | ||
private int? _versusBattleWins; | ||
|
||
public int ExpLevel { get => _expLevel ?? default; set => _expLevel = value; } | ||
|
||
public int Rank { get => _rank ?? default; set => _rank = value; } | ||
|
||
public int PreviousRank { get => _previousRank ?? default; set => _previousRank = value; } | ||
|
||
public int BuilderBaseTrophies { get => _builderBaseTrophies ?? default; set => _builderBaseTrophies = value; } | ||
|
||
public int VersusTrophies { get => _versusTrophies ?? default; set => _versusTrophies = value; } | ||
|
||
public int VersusBattleWins { get => _versusBattleWins ?? default; set => _versusBattleWins = value; } | ||
|
||
public PlayerRankingClan? Clan { get; set; } | ||
|
||
public BuilderBaseLeague BuilderBaseLeague { get; set; } = default!; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
using System.Collections.Generic; | ||
|
||
namespace ClashOfClans.Models | ||
{ | ||
public class PlayerBuilderBaseRankingList : List<PlayerBuilderBaseRanking> | ||
{ | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.