Skip to content

Commit

Permalink
Fix Up "Wind Units" Documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrianJSClark committed Jul 3, 2024
1 parent ab435f7 commit 15da8f7
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 4 deletions.
5 changes: 5 additions & 0 deletions src/Aydsko.iRacingData/Common/Weather.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ public class Weather
[JsonIgnore]
public WindDirection WindDirection => (WindDirection)WindDir;

/// <summary>Wind units.</summary>
/// <remarks>
/// Maps to one of the <c>weather_wind_speed_units</c> lookup values retrieved
/// from the <see cref="IDataClient.GetLookupsAsync(CancellationToken)"/> call.
/// </remarks>
[JsonPropertyName("wind_units")]
public int WindUnits { get; set; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ public class CustomerLeagueSessionWeather
[JsonIgnore]
public WindDirection WindDirection => (WindDirection)WindDir;

/// <summary>Wind units.</summary>
/// <remarks>
/// Maps to one of the <c>weather_wind_speed_units</c> lookup values retrieved
/// from the <see cref="IDataClient.GetLookupsAsync(CancellationToken)"/> call.
/// </remarks>
[JsonPropertyName("wind_units")]
public int WindUnits { get; set; }

Expand Down
5 changes: 5 additions & 0 deletions src/Aydsko.iRacingData/Leagues/Weather.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ public class Weather
[JsonIgnore]
public WindDirection WindDirection => (WindDirection)WindDir;

/// <summary>Wind units.</summary>
/// <remarks>
/// Maps to one of the <c>weather_wind_speed_units</c> lookup values retrieved
/// from the <see cref="IDataClient.GetLookupsAsync(CancellationToken)"/> call.
/// </remarks>
[JsonPropertyName("wind_units")]
public int WindUnits { get; set; }

Expand Down
8 changes: 4 additions & 4 deletions src/Aydsko.iRacingData/Results/SessionResultsWeather.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,6 @@ public class SessionResultsWeather
public decimal MaximumCloudCoverPercentage { get; set; }

/// <summary>Temperature units used in these values.</summary>
/// <remarks>
/// Maps to one of the <c>weather_wind_speed_units</c> lookup values retrieved
/// from the <see cref="IDataClient.GetLookupsAsync(CancellationToken)"/> call.
/// </remarks>
[JsonPropertyName("temp_units")]
public int TemperatureUnits { get; set; }

Expand Down Expand Up @@ -84,6 +80,10 @@ public class SessionResultsWeather
public decimal PrecipitationMillimetres2HoursBeforeSession { get; set; }

/// <summary>Wind units.</summary>
/// <remarks>
/// Maps to one of the <c>weather_wind_speed_units</c> lookup values retrieved
/// from the <see cref="IDataClient.GetLookupsAsync(CancellationToken)"/> call.
/// </remarks>
[JsonPropertyName("wind_units")]
public int WindUnits { get; set; }

Expand Down
5 changes: 5 additions & 0 deletions src/Aydsko.iRacingData/Series/Weather.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ public class Weather
[JsonIgnore]
public WindDirection WindDirection => (WindDirection)WindDir;

/// <summary>Wind units.</summary>
/// <remarks>
/// Maps to one of the <c>weather_wind_speed_units</c> lookup values retrieved
/// from the <see cref="IDataClient.GetLookupsAsync(CancellationToken)"/> call.
/// </remarks>
[JsonPropertyName("wind_units")]
public int WindUnits { get; set; }

Expand Down
5 changes: 5 additions & 0 deletions src/Aydsko.iRacingData/Series/WeatherSummary.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ public class WeatherSummary
[JsonPropertyName("wind_low")]
public decimal WindLow { get; set; }

/// <summary>Wind units.</summary>
/// <remarks>
/// Maps to one of the <c>weather_wind_speed_units</c> lookup values retrieved
/// from the <see cref="IDataClient.GetLookupsAsync(CancellationToken)"/> call.
/// </remarks>
[JsonPropertyName("wind_units")]
public int WindUnits { get; set; }
}

0 comments on commit 15da8f7

Please sign in to comment.