Skip to content

Commit

Permalink
Make the response properties nullable.
Browse files Browse the repository at this point in the history
  • Loading branch information
peymanr34 committed Mar 7, 2024
1 parent cc20851 commit 6b3f09d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1230,11 +1230,11 @@ namespace MovieCollection.TheMovieDatabase.Models
{
public Response() { }
[Newtonsoft.Json.JsonProperty("status_code")]
public int StatusCode { get; set; }
public int? StatusCode { get; set; }
[Newtonsoft.Json.JsonProperty("status_message")]
public string StatusMessage { get; set; }
[Newtonsoft.Json.JsonProperty("success")]
public bool Success { get; set; }
public bool? Success { get; set; }
}
public class Review
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,13 @@
public class Response
{
[JsonProperty("success")]
public bool Success { get; set; }
public bool? Success { get; set; }

/// <summary>
/// Gets or sets the tmdb status code (not an http status code).
/// </summary>
[JsonProperty("status_code")]
public int StatusCode { get; set; }
public int? StatusCode { get; set; }

[JsonProperty("status_message")]
public string StatusMessage { get; set; }
Expand Down

0 comments on commit 6b3f09d

Please sign in to comment.