-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Additional refactoring and updates to projects using client
- Loading branch information
1 parent
21cd7ac
commit ce5447b
Showing
55 changed files
with
841 additions
and
725 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
namespace Meadow.Cloud.Client.ApiTokens; | ||
|
||
public interface IApiTokenClient | ||
{ | ||
} | ||
|
||
public class ApiTokenClient : IApiTokenClient | ||
{ | ||
} |
9 changes: 9 additions & 0 deletions
9
Source/v2/Meadow.Cloud.Client/Collections/CollectionClient.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
namespace Meadow.Cloud.Client.Collections; | ||
|
||
public interface ICollectionClient | ||
{ | ||
} | ||
|
||
public class CollectionClient : ICollectionClient | ||
{ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
namespace Meadow.Cloud.Client.Commands; | ||
|
||
public interface ICommandClient | ||
{ | ||
} | ||
|
||
public class CommandClient : ICommandClient | ||
{ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
namespace Meadow.Cloud.Client.Devices; | ||
|
||
public interface IDeviceClient | ||
{ | ||
} | ||
|
||
public class DeviceClient : IDeviceClient | ||
{ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 6 additions & 16 deletions
22
Source/v2/Meadow.Cloud.Client/Firmware/GetFirmwareVersionResponse.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,16 @@ | ||
using System.Text.Json.Serialization; | ||
namespace Meadow.Cloud.Client.Firmware; | ||
|
||
namespace Meadow.Cloud.Client.Firmware; | ||
|
||
public class GetFirmwareVersionResponse | ||
public class GetFirmwareVersionResponse(string version, string minCLIVersion, string downloadUrl, string networkDownloadUrl) | ||
{ | ||
public GetFirmwareVersionResponse(string version, string minCLIVersion, string downloadUrl, string networkDownloadUrl) | ||
{ | ||
Version = version; | ||
MinCLIVersion = minCLIVersion; | ||
DownloadUrl = downloadUrl; | ||
NetworkDownloadUrl = networkDownloadUrl; | ||
} | ||
|
||
[JsonPropertyName("version")] | ||
public string Version { get; set; } | ||
public string Version { get; set; } = version; | ||
|
||
[JsonPropertyName("minCLIVersion")] | ||
public string MinCLIVersion { get; set; } | ||
public string MinCLIVersion { get; set; } = minCLIVersion; | ||
|
||
[JsonPropertyName("downloadUrl")] | ||
public string DownloadUrl { get; set; } | ||
public string DownloadUrl { get; set; } = downloadUrl; | ||
|
||
[JsonPropertyName("networkDownloadUrl")] | ||
public string NetworkDownloadUrl { get; set; } | ||
public string NetworkDownloadUrl { get; set; } = networkDownloadUrl; | ||
} |
16 changes: 4 additions & 12 deletions
16
Source/v2/Meadow.Cloud.Client/Firmware/GetFirmwareVersionsResponse.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,10 @@ | ||
using System.Text.Json.Serialization; | ||
namespace Meadow.Cloud.Client.Firmware; | ||
|
||
namespace Meadow.Cloud.Client.Firmware; | ||
|
||
public class GetFirmwareVersionsResponse | ||
public class GetFirmwareVersionsResponse(string version, DateTimeOffset lastModifiedAt) | ||
{ | ||
public GetFirmwareVersionsResponse(string version, DateTimeOffset lastModifiedAt) | ||
{ | ||
Version = version; | ||
LastModifiedAt = lastModifiedAt; | ||
} | ||
|
||
[JsonPropertyName("version")] | ||
public string Version { get; set; } | ||
public string Version { get; set; } = version; | ||
|
||
[JsonPropertyName("lastModifiedAt")] | ||
public DateTimeOffset LastModifiedAt { get; set; } | ||
public DateTimeOffset LastModifiedAt { get; set; } = lastModifiedAt; | ||
} |
Oops, something went wrong.