From 5d99b4ef104fd8d0b07b2d2d8828b51a9b04430c Mon Sep 17 00:00:00 2001 From: Dan Jagnow Date: Sat, 25 Jul 2020 12:37:27 -0500 Subject: [PATCH] Converted double properties to float in several model classes --- .../Models/GameDataApi/Item/DescribedValue.cs | 2 +- .../ProfileApi/AccountProfile/Position.cs | 8 +++---- .../CharacterAchievements/Statistic.cs | 2 +- .../CharacterEquipment/AzeriteDetails.cs | 2 +- .../CharacterStatisticsSummary.cs | 24 +++++++++---------- .../CharacterStatistics/RatingStatistic.cs | 4 ++-- .../RatingStatisticWithoutValue.cs | 2 +- 7 files changed, 22 insertions(+), 22 deletions(-) diff --git a/src/ArgentPonyWarcraftClient/Models/GameDataApi/Item/DescribedValue.cs b/src/ArgentPonyWarcraftClient/Models/GameDataApi/Item/DescribedValue.cs index 539fa83a..fce41404 100644 --- a/src/ArgentPonyWarcraftClient/Models/GameDataApi/Item/DescribedValue.cs +++ b/src/ArgentPonyWarcraftClient/Models/GameDataApi/Item/DescribedValue.cs @@ -11,7 +11,7 @@ public class DescribedValue /// Gets the numerical value. /// [JsonPropertyName("value")] - public double Value { get; set; } + public float Value { get; set; } /// /// Gets a display string for the value. diff --git a/src/ArgentPonyWarcraftClient/Models/ProfileApi/AccountProfile/Position.cs b/src/ArgentPonyWarcraftClient/Models/ProfileApi/AccountProfile/Position.cs index 593663cb..eb1e4b93 100644 --- a/src/ArgentPonyWarcraftClient/Models/ProfileApi/AccountProfile/Position.cs +++ b/src/ArgentPonyWarcraftClient/Models/ProfileApi/AccountProfile/Position.cs @@ -23,24 +23,24 @@ public class Position /// Gets the x coordinate. /// [JsonPropertyName("x")] - public double X { get; set; } + public float X { get; set; } /// /// Gets the y coordinate. /// [JsonPropertyName("y")] - public double Y { get; set; } + public float Y { get; set; } /// /// Gets the z coordinate. /// [JsonPropertyName("z")] - public double Z { get; set; } + public float Z { get; set; } /// /// Gets the facing. /// [JsonPropertyName("facing")] - public double Facing { get; set; } + public float Facing { get; set; } } } diff --git a/src/ArgentPonyWarcraftClient/Models/ProfileApi/CharacterAchievements/Statistic.cs b/src/ArgentPonyWarcraftClient/Models/ProfileApi/CharacterAchievements/Statistic.cs index 962d78e2..a04e3cb9 100644 --- a/src/ArgentPonyWarcraftClient/Models/ProfileApi/CharacterAchievements/Statistic.cs +++ b/src/ArgentPonyWarcraftClient/Models/ProfileApi/CharacterAchievements/Statistic.cs @@ -30,7 +30,7 @@ public class Statistic /// Gets a quantity associated with the statistic. /// [JsonPropertyName("quantity")] - public double Quantity { get; set; } + public float Quantity { get; set; } /// /// Gets an optional description of the statistic. diff --git a/src/ArgentPonyWarcraftClient/Models/ProfileApi/CharacterEquipment/AzeriteDetails.cs b/src/ArgentPonyWarcraftClient/Models/ProfileApi/CharacterEquipment/AzeriteDetails.cs index 5d3c356a..77cc0098 100644 --- a/src/ArgentPonyWarcraftClient/Models/ProfileApi/CharacterEquipment/AzeriteDetails.cs +++ b/src/ArgentPonyWarcraftClient/Models/ProfileApi/CharacterEquipment/AzeriteDetails.cs @@ -23,7 +23,7 @@ public class AzeriteDetails /// Gets the percentage remaining to the next level. /// [JsonPropertyName("percentage_to_next_level")] - public double? PercentageToNextLevel { get; set; } + public float? PercentageToNextLevel { get; set; } /// /// Gets the selected azerite essences. diff --git a/src/ArgentPonyWarcraftClient/Models/ProfileApi/CharacterStatistics/CharacterStatisticsSummary.cs b/src/ArgentPonyWarcraftClient/Models/ProfileApi/CharacterStatistics/CharacterStatisticsSummary.cs index 64e3f4a4..19d995b2 100644 --- a/src/ArgentPonyWarcraftClient/Models/ProfileApi/CharacterStatistics/CharacterStatisticsSummary.cs +++ b/src/ArgentPonyWarcraftClient/Models/ProfileApi/CharacterStatistics/CharacterStatisticsSummary.cs @@ -95,25 +95,25 @@ public class CharacterStatisticsSummary /// Gets the character's versatility. /// [JsonPropertyName("versatility")] - public double Versatility { get; set; } + public float Versatility { get; set; } /// /// Gets the character's versatility damage done bonus. /// [JsonPropertyName("versatility_damage_done_bonus")] - public double VersatilityDamageDoneBonus { get; set; } + public float VersatilityDamageDoneBonus { get; set; } /// /// Gets the character's versatility healing done bonus. /// [JsonPropertyName("versatility_healing_done_bonus")] - public double VersatilityHealingDoneBonus { get; set; } + public float VersatilityHealingDoneBonus { get; set; } /// /// Gets the character's versatility damage taken bonus. /// [JsonPropertyName("versatility_damage_taken_bonus")] - public double VersatilityDamageTakenBonus { get; set; } + public float VersatilityDamageTakenBonus { get; set; } /// /// Gets the character's avoidance. @@ -131,49 +131,49 @@ public class CharacterStatisticsSummary /// Gets the character's main hand damage minimum. /// [JsonPropertyName("main_hand_damage_min")] - public double MainHandDamageMin { get; set; } + public float MainHandDamageMin { get; set; } /// /// Gets the character's main hand damage maximum. /// [JsonPropertyName("main_hand_damage_max")] - public double MainHandDamageMax { get; set; } + public float MainHandDamageMax { get; set; } /// /// Gets the character's main hand speed. /// [JsonPropertyName("main_hand_speed")] - public double MainHandSpeed { get; set; } + public float MainHandSpeed { get; set; } /// /// Gets the character's main hand DPS. /// [JsonPropertyName("main_hand_dps")] - public double MainHandDps { get; set; } + public float MainHandDps { get; set; } /// /// Gets the character's off hand damage minimum. /// [JsonPropertyName("off_hand_damage_min")] - public double OffHandDamageMin { get; set; } + public float OffHandDamageMin { get; set; } /// /// Gets the character's off hand damage maximum. /// [JsonPropertyName("off_hand_damage_max")] - public double OffHandDamageMax { get; set; } + public float OffHandDamageMax { get; set; } /// /// Gets the character's off hand speed. /// [JsonPropertyName("off_hand_speed")] - public double OffHandSpeed { get; set; } + public float OffHandSpeed { get; set; } /// /// Gets the character's off hand DPS. /// [JsonPropertyName("off_hand_dps")] - public double OffHandDps { get; set; } + public float OffHandDps { get; set; } /// /// Gets the character's spell power. diff --git a/src/ArgentPonyWarcraftClient/Models/ProfileApi/CharacterStatistics/RatingStatistic.cs b/src/ArgentPonyWarcraftClient/Models/ProfileApi/CharacterStatistics/RatingStatistic.cs index 4a5f5181..39e7bc61 100644 --- a/src/ArgentPonyWarcraftClient/Models/ProfileApi/CharacterStatistics/RatingStatistic.cs +++ b/src/ArgentPonyWarcraftClient/Models/ProfileApi/CharacterStatistics/RatingStatistic.cs @@ -17,12 +17,12 @@ public class RatingStatistic /// Gets the rating bonus. /// [JsonPropertyName("rating_bonus")] - public double RatingBonus { get; set; } + public float RatingBonus { get; set; } /// /// Gets the value. /// [JsonPropertyName("value")] - public double Value { get; set; } + public float Value { get; set; } } } diff --git a/src/ArgentPonyWarcraftClient/Models/ProfileApi/CharacterStatistics/RatingStatisticWithoutValue.cs b/src/ArgentPonyWarcraftClient/Models/ProfileApi/CharacterStatistics/RatingStatisticWithoutValue.cs index 888dbea5..60cb79ec 100644 --- a/src/ArgentPonyWarcraftClient/Models/ProfileApi/CharacterStatistics/RatingStatisticWithoutValue.cs +++ b/src/ArgentPonyWarcraftClient/Models/ProfileApi/CharacterStatistics/RatingStatisticWithoutValue.cs @@ -17,6 +17,6 @@ public class RatingStatisticWithoutValue /// Gets the rating bonus. /// [JsonPropertyName("rating_bonus")] - public double RatingBonus { get; set; } + public float RatingBonus { get; set; } } }