Skip to content

Commit

Permalink
Merge pull request #9 from BellumGens/update-player-profile
Browse files Browse the repository at this point in the history
feat(player): updating models
  • Loading branch information
kdinev authored Jul 1, 2024
2 parents b66da27 + b0b7ba1 commit f414f68
Show file tree
Hide file tree
Showing 4 changed files with 74 additions and 64 deletions.
12 changes: 6 additions & 6 deletions StarCraft2Models/Player.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,46 +8,46 @@ public class Player
/// <value>
/// The player name.
/// </value>
public string Name { get; set; }
public string name { get; set; }

/// <summary>
/// Gets or sets the player profile URL.
/// </summary>
/// <value>
/// The player profile URL.
/// </value>
public string ProfileUrl { get; set; }
public string profileUrl { get; set; }

/// <summary>
/// Gets or sets the player avatar URL.
/// </summary>
/// <value>
/// The player avatar URL.
/// </value>
public string AvatarUrl { get; set; }
public string avatarUrl { get; set; }

/// <summary>
/// Gets or sets the player profile identifier.
/// </summary>
/// <value>
/// The player profile identifier.
/// </value>
public string ProfileId { get; set; }
public string profileId { get; set; }

/// <summary>
/// Gets or sets the player region identifier.
/// </summary>
/// <value>
/// The player region identifier.
/// </value>
public int RegionId { get; set; }
public int regionId { get; set; }

/// <summary>
/// Gets or sets the player realm identifier.
/// </summary>
/// <value>
/// The player realm identifier.
/// </value>
public int RealmId { get; set; }
public int realmId { get; set; }
}
}
57 changes: 1 addition & 56 deletions StarCraft2Models/PlayerProfile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,61 +2,6 @@
{
public class PlayerProfile
{
/// <summary>
/// Gets or sets the player profile identifier.
/// </summary>
/// <value>
/// The player profile identifier.
/// </value>
public string Id { get; set; }

/// <summary>
/// Gets or sets the player realm identifier.
/// </summary>
/// <value>
/// The player realm identifier.
/// </value>
public int Realm { get; set; }

/// <summary>
/// Gets or sets the player display name.
/// </summary>
/// <value>
/// The player display name.
/// </value>
public string DisplayName { get; set; }

/// <summary>
/// Gets or sets the name of the player clan.
/// </summary>
/// <value>
/// The name of the player clan.
/// </value>
public string ClanName { get; set; }

/// <summary>
/// Gets or sets the player clan tag.
/// </summary>
/// <value>
/// The player clan tag.
/// </value>
public string ClanTag { get; set; }

/// <summary>
/// Gets or sets the player profile path.
/// </summary>
/// <value>
/// The player profile path.
/// </value>
public string ProfilePath { get; set; }

/// <summary>
/// Gets or sets the player portrait.
/// </summary>
/// <value>
/// The player portrait.
/// </value>
public ProfilePortrait Portrait { get; set; }

public PlayerProfileSummary summary { get; set; }
}
}
65 changes: 65 additions & 0 deletions StarCraft2Models/PlayerProfileSummary.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
namespace StarCraft2Models
{
public class PlayerProfileSummary
{
/// <summary>
/// Gets or sets the player profile identifier.
/// </summary>
/// <value>
/// The player profile identifier.
/// </value>
public string id { get; set; }

/// <summary>
/// Gets or sets the player realm identifier.
/// </summary>
/// <value>
/// The player realm identifier.
/// </value>
public int realm { get; set; }

/// <summary>
/// Gets or sets the player display name.
/// </summary>
/// <value>
/// The player display name.
/// </value>
public string displayName { get; set; }

/// <summary>
/// Gets or sets the portrait url.
/// </summary>
/// <value>
/// The player portrait url.
/// </value>
public string portrait { get; set; }

/// <summary>
/// Gets or sets the player terran decal.
/// </summary>
/// <value>
/// The player terran decal.
/// </value>
public string decalTerran { get; set; }

/// <summary>
/// Gets or sets the player protoss decal.
/// </summary>
/// <value>
/// The player protoss decal.
/// </value>
public string decalProtoss { get; set; }

/// <summary>
/// Gets or sets the player zerg decal.
/// </summary>
/// <value>
/// The player zerg decal.
/// </value>
public string decalZerg { get; set; }

public int totalSwarmLevel { get; set; }

public int totalAchievementPoints { get; set; }
}
}
4 changes: 2 additions & 2 deletions StarCraft2Models/StarCraft2Models.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
<Company>Bellum Gens</Company>
<PackageProjectUrl>https://bellumgens.com</PackageProjectUrl>
<Copyright>2019-2022 Bellum Gens</Copyright>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.1.0</AssemblyVersion>
<Authors>Konstantin Dinev</Authors>
<Version>8.0.0</Version>
<Version>8.0.1</Version>
<PackageIcon>avatar_BG_blood.png</PackageIcon>
<Description>.NET models for StarCraft 2 battle.net API entities.</Description>
<PackageLicenseFile>LICENSE</PackageLicenseFile>
Expand Down

0 comments on commit f414f68

Please sign in to comment.