Skip to content

Commit

Permalink
Resolve Warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrianJSClark committed Oct 12, 2022
1 parent 95f26d5 commit a03aee9
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion src/Aydsko.iRacingData/DataClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1715,7 +1715,7 @@ public async Task<DataResponse<RaceGuideResults>> GetRaceGuideAsync(DateTimeOffs

if (includeEndAfterFrom is not null)
{
queryParams.Add("include_end_after_from", includeEndAfterFrom.ToString().ToLowerInvariant());
queryParams.Add("include_end_after_from", includeEndAfterFrom.Value.ToString().ToLowerInvariant());
}

if (queryParams.Count > 0)
Expand Down
30 changes: 15 additions & 15 deletions src/Aydsko.iRacingData/Member/MemberAward.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,31 +12,31 @@ public class MemberAward
public int AwardId { get; set; }

[JsonPropertyName("description")]
public string Description { get; set; }
public string Description { get; set; } = default!;

[JsonPropertyName("pdf_url")]
public string PdfUrl { get; set; }
public string PdfUrl { get; set; } = default!;

[JsonPropertyName("name")]
public string Name { get; set; }
public string Name { get; set; } = default!;

[JsonPropertyName("group_name")]
public string GroupName { get; set; }
public string GroupName { get; set; } = default!;

[JsonPropertyName("icon_url_small")]
public string IconUrlSmall { get; set; }
public string IconUrlSmall { get; set; } = default!;

[JsonPropertyName("icon_url_large")]
public string IconUrlLarge { get; set; }
public string IconUrlLarge { get; set; } = default!;

[JsonPropertyName("icon_url_unawarded")]
public string IconUrlUnawarded { get; set; }
public string IconUrlUnawarded { get; set; } = default!;

[JsonPropertyName("icon_background_color")]
public string IconBackgroundColor { get; set; }
public string IconBackgroundColor { get; set; } = default!;

[JsonPropertyName("certificate_file_name")]
public string CertificateFileName { get; set; }
public string CertificateFileName { get; set; } = default!;

[JsonPropertyName("weight")]
public int Weight { get; set; }
Expand All @@ -51,16 +51,16 @@ public class MemberAward
public bool Achievement { get; set; }

[JsonPropertyName("award_date")]
public string AwardDate { get; set; }
public string AwardDate { get; set; } = default!;

[JsonPropertyName("display_date")]
public string DisplayDate { get; set; }
public string DisplayDate { get; set; } = default!;

[JsonPropertyName("subsession_id")]
public int SubsessionId { get; set; }

[JsonPropertyName("awarded_description")]
public string AwardedDescription { get; set; }
public string AwardedDescription { get; set; } = default!;

[JsonPropertyName("viewed")]
public bool Viewed { get; set; }
Expand All @@ -72,13 +72,13 @@ public class MemberAward
public int Progress { get; set; }

[JsonPropertyName("progress_label")]
public string ProgressLabel { get; set; }
public string ProgressLabel { get; set; } = default!;

[JsonPropertyName("progress_text")]
public string ProgressText { get; set; }
public string ProgressText { get; set; } = default!;

[JsonPropertyName("progress_text_label")]
public string ProgressTextLabel { get; set; }
public string ProgressTextLabel { get; set; } = default!;
}

[JsonSerializable(typeof(MemberAward[])), JsonSourceGenerationOptions(WriteIndented = true)]
Expand Down

0 comments on commit a03aee9

Please sign in to comment.