Skip to content

Commit

Permalink
align style
Browse files Browse the repository at this point in the history
  • Loading branch information
Riges committed Aug 24, 2024
1 parent 832b709 commit c4ce30f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
10 changes: 7 additions & 3 deletions src/Netatmo/Models/Client/DataResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@ namespace Netatmo.Models.Client;
public record DataResponse(
[property: JsonProperty("status")] string Status,
[property: JsonProperty("time_exec")] double? TimeExec,
[property: JsonProperty("time_server")]
Instant? TimeServer);
[property: JsonProperty("time_server")] Instant? TimeServer);

public record DataResponse<T>(string Status, double? TimeExec, Instant? TimeServer, [property: JsonProperty("body")] T Body) : DataResponse(Status, TimeExec, TimeServer);
public record DataResponse<T>(
string Status,
double? TimeExec,
Instant? TimeServer,
[property: JsonProperty("body")] T Body)
: DataResponse(Status, TimeExec, TimeServer);
6 changes: 2 additions & 4 deletions src/Netatmo/Models/Client/Token.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,5 @@ namespace Netatmo.Models.Client;

public record Token(
[property: JsonProperty("expires_in")] int ExpiresIn,
[property: JsonProperty("access_token")]
string AccessToken,
[property: JsonProperty("refresh_token")]
string RefreshToken);
[property: JsonProperty("access_token")] string AccessToken,
[property: JsonProperty("refresh_token")] string RefreshToken);
3 changes: 1 addition & 2 deletions src/Netatmo/Models/Client/User.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,5 @@
namespace Netatmo.Models.Client;

public record User(
[property: JsonProperty("administrative")]
Administrative Administrative,
[property: JsonProperty("administrative")] Administrative Administrative,
[property: JsonProperty("mail")] string Mail);

0 comments on commit c4ce30f

Please sign in to comment.