Skip to content

Commit

Permalink
Merge pull request #154 from blizzard-net/double-to-float
Browse files Browse the repository at this point in the history
Converted double properties to float in several model classes
  • Loading branch information
danjagnow authored Jul 25, 2020
2 parents 64628ca + 5d99b4e commit c5e579b
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public class DescribedValue
/// Gets the numerical value.
/// </summary>
[JsonPropertyName("value")]
public double Value { get; set; }
public float Value { get; set; }

/// <summary>
/// Gets a display string for the value.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,24 +23,24 @@ public class Position
/// Gets the x coordinate.
/// </summary>
[JsonPropertyName("x")]
public double X { get; set; }
public float X { get; set; }

/// <summary>
/// Gets the y coordinate.
/// </summary>
[JsonPropertyName("y")]
public double Y { get; set; }
public float Y { get; set; }

/// <summary>
/// Gets the z coordinate.
/// </summary>
[JsonPropertyName("z")]
public double Z { get; set; }
public float Z { get; set; }

/// <summary>
/// Gets the facing.
/// </summary>
[JsonPropertyName("facing")]
public double Facing { get; set; }
public float Facing { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public class Statistic
/// Gets a quantity associated with the statistic.
/// </summary>
[JsonPropertyName("quantity")]
public double Quantity { get; set; }
public float Quantity { get; set; }

/// <summary>
/// Gets an optional description of the statistic.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public class AzeriteDetails
/// Gets the percentage remaining to the next level.
/// </summary>
[JsonPropertyName("percentage_to_next_level")]
public double? PercentageToNextLevel { get; set; }
public float? PercentageToNextLevel { get; set; }

/// <summary>
/// Gets the selected azerite essences.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,25 +95,25 @@ public class CharacterStatisticsSummary
/// Gets the character's versatility.
/// </summary>
[JsonPropertyName("versatility")]
public double Versatility { get; set; }
public float Versatility { get; set; }

/// <summary>
/// Gets the character's versatility damage done bonus.
/// </summary>
[JsonPropertyName("versatility_damage_done_bonus")]
public double VersatilityDamageDoneBonus { get; set; }
public float VersatilityDamageDoneBonus { get; set; }

/// <summary>
/// Gets the character's versatility healing done bonus.
/// </summary>
[JsonPropertyName("versatility_healing_done_bonus")]
public double VersatilityHealingDoneBonus { get; set; }
public float VersatilityHealingDoneBonus { get; set; }

/// <summary>
/// Gets the character's versatility damage taken bonus.
/// </summary>
[JsonPropertyName("versatility_damage_taken_bonus")]
public double VersatilityDamageTakenBonus { get; set; }
public float VersatilityDamageTakenBonus { get; set; }

/// <summary>
/// Gets the character's avoidance.
Expand All @@ -131,49 +131,49 @@ public class CharacterStatisticsSummary
/// Gets the character's main hand damage minimum.
/// </summary>
[JsonPropertyName("main_hand_damage_min")]
public double MainHandDamageMin { get; set; }
public float MainHandDamageMin { get; set; }

/// <summary>
/// Gets the character's main hand damage maximum.
/// </summary>
[JsonPropertyName("main_hand_damage_max")]
public double MainHandDamageMax { get; set; }
public float MainHandDamageMax { get; set; }

/// <summary>
/// Gets the character's main hand speed.
/// </summary>
[JsonPropertyName("main_hand_speed")]
public double MainHandSpeed { get; set; }
public float MainHandSpeed { get; set; }

/// <summary>
/// Gets the character's main hand DPS.
/// </summary>
[JsonPropertyName("main_hand_dps")]
public double MainHandDps { get; set; }
public float MainHandDps { get; set; }

/// <summary>
/// Gets the character's off hand damage minimum.
/// </summary>
[JsonPropertyName("off_hand_damage_min")]
public double OffHandDamageMin { get; set; }
public float OffHandDamageMin { get; set; }

/// <summary>
/// Gets the character's off hand damage maximum.
/// </summary>
[JsonPropertyName("off_hand_damage_max")]
public double OffHandDamageMax { get; set; }
public float OffHandDamageMax { get; set; }

/// <summary>
/// Gets the character's off hand speed.
/// </summary>
[JsonPropertyName("off_hand_speed")]
public double OffHandSpeed { get; set; }
public float OffHandSpeed { get; set; }

/// <summary>
/// Gets the character's off hand DPS.
/// </summary>
[JsonPropertyName("off_hand_dps")]
public double OffHandDps { get; set; }
public float OffHandDps { get; set; }

/// <summary>
/// Gets the character's spell power.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ public class RatingStatistic
/// Gets the rating bonus.
/// </summary>
[JsonPropertyName("rating_bonus")]
public double RatingBonus { get; set; }
public float RatingBonus { get; set; }

/// <summary>
/// Gets the value.
/// </summary>
[JsonPropertyName("value")]
public double Value { get; set; }
public float Value { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ public class RatingStatisticWithoutValue
/// Gets the rating bonus.
/// </summary>
[JsonPropertyName("rating_bonus")]
public double RatingBonus { get; set; }
public float RatingBonus { get; set; }
}
}

0 comments on commit c5e579b

Please sign in to comment.