From e0bce0ded7a4f42e6e366cacc98543de0a65646e Mon Sep 17 00:00:00 2001 From: Max Stoumen Date: Mon, 30 Oct 2023 16:43:39 -0700 Subject: [PATCH] bump nextlove generator --- .../csharp/src/Seam.Test/Client/SeamTests.cs | 11 +- output/csharp/src/Seam.Test/Seam.Test.csproj | 2 +- output/csharp/src/Seam/Api/AccessCodes.cs | 364 ++++++++- output/csharp/src/Seam/Api/ActionAttempts.cs | 77 ++ output/csharp/src/Seam/Api/ClientSessions.cs | 153 ++++ .../Api/ClimateSettingSchedulesThermostats.cs | 153 ++++ output/csharp/src/Seam/Api/ConnectWebviews.cs | 115 +++ .../csharp/src/Seam/Api/ConnectedAccounts.cs | 77 ++ output/csharp/src/Seam/Api/Devices.cs | 77 ++ output/csharp/src/Seam/Api/Events.cs | 77 ++ output/csharp/src/Seam/Api/Locks.cs | 77 ++ .../Seam/Api/NoiseThresholdsNoiseSensors.cs | 191 +++++ output/csharp/src/Seam/Api/Thermostats.cs | 77 ++ .../src/Seam/Api/UnmanagedAccessCodes.cs | 39 + .../csharp/src/Seam/Api/UnmanagedDevices.cs | 77 ++ output/csharp/src/Seam/Api/Webhooks.cs | 115 +++ output/csharp/src/Seam/Api/Workspaces.cs | 39 + output/csharp/src/Seam/Client/Seam.cs | 22 + .../Seam/Client/SeamRequestConfiguration.cs | 2 - output/csharp/src/Seam/Model/AccessCode.cs | 20 + .../csharp/src/Seam/Model/AcsAccessGroup.cs | 20 + output/csharp/src/Seam/Model/AcsSystem.cs | 27 +- output/csharp/src/Seam/Model/AcsUser.cs | 20 + output/csharp/src/Seam/Model/ActionAttempt.cs | 79 ++ output/csharp/src/Seam/Model/ClientSession.cs | 20 + .../src/Seam/Model/ClimateSettingSchedule.cs | 20 + .../csharp/src/Seam/Model/ConnectWebview.cs | 20 + .../csharp/src/Seam/Model/ConnectedAccount.cs | 39 + output/csharp/src/Seam/Model/Device.cs | 732 ++++++++++++++++++ output/csharp/src/Seam/Model/Event.cs | 20 + .../csharp/src/Seam/Model/NoiseThreshold.cs | 20 + output/csharp/src/Seam/Model/ServiceHealth.cs | 20 + .../csharp/src/Seam/Model/UnmanagedDevice.cs | 96 +++ output/csharp/src/Seam/Model/Webhook.cs | 20 + output/csharp/src/Seam/Model/Workspace.cs | 20 + package-lock.json | 8 +- package.json | 2 +- 37 files changed, 2927 insertions(+), 21 deletions(-) diff --git a/output/csharp/src/Seam.Test/Client/SeamTests.cs b/output/csharp/src/Seam.Test/Client/SeamTests.cs index e40c0e8..2815501 100644 --- a/output/csharp/src/Seam.Test/Client/SeamTests.cs +++ b/output/csharp/src/Seam.Test/Client/SeamTests.cs @@ -1,6 +1,7 @@ namespace Seam.Test; using Seam.Model; +using Seam.Client; public class UnitTest1 : SeamConnectTest { @@ -12,7 +13,7 @@ public void TestGetDeviceList() .First(d => d.DeviceType == Device.DeviceTypeEnum.AugustLock); Assert.NotNull(device); - Assert.Equal("Front Door", device.Properties.Name); + Assert.Equal("Fake August Lock 1", device.Properties.Name); } [Fact] @@ -23,7 +24,7 @@ public async void TestGetDeviceListAsync() ); Assert.NotNull(device); - Assert.Equal("Front Door", device.Properties.Name); + Assert.Equal("Fake August Lock 1", device.Properties.Name); } [Fact] @@ -80,4 +81,10 @@ public async void TestLockDoorAsync() Assert.IsType(action_attempt); Assert.Equal("LOCK_DOOR", (action_attempt as ActionAttemptPending)!.ActionType); } + + [Fact] + public void Test() + { + Assert.Throws(() => seam.AccessCodes.Get(accessCodeId: "nonexistent")); + } } diff --git a/output/csharp/src/Seam.Test/Seam.Test.csproj b/output/csharp/src/Seam.Test/Seam.Test.csproj index f7967bd..b9fdce8 100644 --- a/output/csharp/src/Seam.Test/Seam.Test.csproj +++ b/output/csharp/src/Seam.Test/Seam.Test.csproj @@ -1,7 +1,7 @@ - net7.0 + net6.0;net7.0 enable enable diff --git a/output/csharp/src/Seam/Api/AccessCodes.cs b/output/csharp/src/Seam/Api/AccessCodes.cs index 0d806b2..a58684d 100644 --- a/output/csharp/src/Seam/Api/AccessCodes.cs +++ b/output/csharp/src/Seam/Api/AccessCodes.cs @@ -1,4 +1,5 @@ using System.Runtime.Serialization; +using System.Text; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; @@ -34,7 +35,8 @@ public CreateRequest( string? commonCodeKey = default, bool? preferNativeScheduling = default, bool? useBackupAccessCodePool = default, - bool? allowExternalModification = default + bool? allowExternalModification = default, + bool? isExternalModificationAllowed = default ) { DeviceId = deviceId; @@ -48,6 +50,7 @@ public CreateRequest( PreferNativeScheduling = preferNativeScheduling; UseBackupAccessCodePool = useBackupAccessCodePool; AllowExternalModification = allowExternalModification; + IsExternalModificationAllowed = isExternalModificationAllowed; } [DataMember(Name = "device_id", IsRequired = true, EmitDefaultValue = false)] @@ -98,6 +101,32 @@ public CreateRequest( EmitDefaultValue = false )] public bool? AllowExternalModification { get; set; } + + [DataMember( + Name = "is_external_modification_allowed", + IsRequired = false, + EmitDefaultValue = false + )] + public bool? IsExternalModificationAllowed { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } [DataContract(Name = "createResponse_response")] @@ -113,6 +142,25 @@ public CreateResponse(AccessCode accessCode = default) [DataMember(Name = "access_code", IsRequired = false, EmitDefaultValue = false)] public AccessCode AccessCode { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } public AccessCode Create(CreateRequest request) @@ -135,7 +183,8 @@ public AccessCode Create( string? commonCodeKey = default, bool? preferNativeScheduling = default, bool? useBackupAccessCodePool = default, - bool? allowExternalModification = default + bool? allowExternalModification = default, + bool? isExternalModificationAllowed = default ) { return Create( @@ -150,7 +199,8 @@ public AccessCode Create( commonCodeKey: commonCodeKey, preferNativeScheduling: preferNativeScheduling, useBackupAccessCodePool: useBackupAccessCodePool, - allowExternalModification: allowExternalModification + allowExternalModification: allowExternalModification, + isExternalModificationAllowed: isExternalModificationAllowed ) ); } @@ -175,7 +225,8 @@ public async Task CreateAsync( string? commonCodeKey = default, bool? preferNativeScheduling = default, bool? useBackupAccessCodePool = default, - bool? allowExternalModification = default + bool? allowExternalModification = default, + bool? isExternalModificationAllowed = default ) { return ( @@ -191,7 +242,8 @@ await CreateAsync( commonCodeKey: commonCodeKey, preferNativeScheduling: preferNativeScheduling, useBackupAccessCodePool: useBackupAccessCodePool, - allowExternalModification: allowExternalModification + allowExternalModification: allowExternalModification, + isExternalModificationAllowed: isExternalModificationAllowed ) ) ); @@ -214,7 +266,8 @@ public CreateMultipleRequest( bool? attemptForOfflineDevice = default, bool? preferNativeScheduling = default, bool? useBackupAccessCodePool = default, - bool? allowExternalModification = default + bool? allowExternalModification = default, + bool? isExternalModificationAllowed = default ) { DeviceIds = deviceIds; @@ -227,6 +280,7 @@ public CreateMultipleRequest( PreferNativeScheduling = preferNativeScheduling; UseBackupAccessCodePool = useBackupAccessCodePool; AllowExternalModification = allowExternalModification; + IsExternalModificationAllowed = isExternalModificationAllowed; } [JsonConverter(typeof(StringEnumConverter))] @@ -288,6 +342,32 @@ public enum BehaviorWhenCodeCannotBeSharedEnum EmitDefaultValue = false )] public bool? AllowExternalModification { get; set; } + + [DataMember( + Name = "is_external_modification_allowed", + IsRequired = false, + EmitDefaultValue = false + )] + public bool? IsExternalModificationAllowed { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } [DataContract(Name = "createMultipleResponse_response")] @@ -303,6 +383,25 @@ public CreateMultipleResponse(List accessCodes = default) [DataMember(Name = "access_codes", IsRequired = false, EmitDefaultValue = false)] public List AccessCodes { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } public List CreateMultiple(CreateMultipleRequest request) @@ -325,7 +424,8 @@ public List CreateMultiple( bool? attemptForOfflineDevice = default, bool? preferNativeScheduling = default, bool? useBackupAccessCodePool = default, - bool? allowExternalModification = default + bool? allowExternalModification = default, + bool? isExternalModificationAllowed = default ) { return CreateMultiple( @@ -339,7 +439,8 @@ public List CreateMultiple( attemptForOfflineDevice: attemptForOfflineDevice, preferNativeScheduling: preferNativeScheduling, useBackupAccessCodePool: useBackupAccessCodePool, - allowExternalModification: allowExternalModification + allowExternalModification: allowExternalModification, + isExternalModificationAllowed: isExternalModificationAllowed ) ); } @@ -369,7 +470,8 @@ public async Task> CreateMultipleAsync( bool? attemptForOfflineDevice = default, bool? preferNativeScheduling = default, bool? useBackupAccessCodePool = default, - bool? allowExternalModification = default + bool? allowExternalModification = default, + bool? isExternalModificationAllowed = default ) { return ( @@ -384,7 +486,8 @@ await CreateMultipleAsync( attemptForOfflineDevice: attemptForOfflineDevice, preferNativeScheduling: preferNativeScheduling, useBackupAccessCodePool: useBackupAccessCodePool, - allowExternalModification: allowExternalModification + allowExternalModification: allowExternalModification, + isExternalModificationAllowed: isExternalModificationAllowed ) ) ); @@ -415,6 +518,25 @@ public DeleteRequest( [DataMember(Name = "sync", IsRequired = false, EmitDefaultValue = false)] public bool? Sync { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } [DataContract(Name = "deleteResponse_response")] @@ -430,6 +552,25 @@ public DeleteResponse(ActionAttempt actionAttempt = default) [DataMember(Name = "action_attempt", IsRequired = false, EmitDefaultValue = false)] public ActionAttempt ActionAttempt { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } public ActionAttempt Delete(DeleteRequest request) @@ -487,6 +628,25 @@ public GenerateCodeRequest(string deviceId = default) [DataMember(Name = "device_id", IsRequired = true, EmitDefaultValue = false)] public string DeviceId { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } [DataContract(Name = "generateCodeResponse_response")] @@ -502,6 +662,25 @@ public GenerateCodeResponse(AccessCode generatedCode = default) [DataMember(Name = "generated_code", IsRequired = false, EmitDefaultValue = false)] public AccessCode GeneratedCode { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } public AccessCode GenerateCode(GenerateCodeRequest request) @@ -562,6 +741,25 @@ public GetRequest( [DataMember(Name = "code", IsRequired = false, EmitDefaultValue = false)] public string? Code { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } [DataContract(Name = "getResponse_response")] @@ -577,6 +775,25 @@ public GetResponse(AccessCode accessCode = default) [DataMember(Name = "access_code", IsRequired = false, EmitDefaultValue = false)] public AccessCode AccessCode { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } public AccessCode Get(GetRequest request) @@ -642,6 +859,25 @@ public ListRequest( [DataMember(Name = "user_identifier_key", IsRequired = false, EmitDefaultValue = false)] public string? UserIdentifierKey { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } [DataContract(Name = "listResponse_response")] @@ -657,6 +893,25 @@ public ListResponse(List accessCodes = default) [DataMember(Name = "access_codes", IsRequired = false, EmitDefaultValue = false)] public List AccessCodes { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } public List List(ListRequest request) @@ -720,6 +975,25 @@ public PullBackupAccessCodeRequest(string accessCodeId = default) [DataMember(Name = "access_code_id", IsRequired = true, EmitDefaultValue = false)] public string AccessCodeId { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } [DataContract(Name = "pullBackupAccessCodeResponse_response")] @@ -735,6 +1009,25 @@ public PullBackupAccessCodeResponse(AccessCode backupAccessCode = default) [DataMember(Name = "backup_access_code", IsRequired = false, EmitDefaultValue = false)] public AccessCode BackupAccessCode { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } public AccessCode PullBackupAccessCode(PullBackupAccessCodeRequest request) @@ -795,6 +1088,7 @@ public UpdateRequest( bool? preferNativeScheduling = default, bool? useBackupAccessCodePool = default, bool? allowExternalModification = default, + bool? isExternalModificationAllowed = default, string accessCodeId = default, string? deviceId = default, UpdateRequest.TypeEnum? type = default, @@ -810,6 +1104,7 @@ public UpdateRequest( PreferNativeScheduling = preferNativeScheduling; UseBackupAccessCodePool = useBackupAccessCodePool; AllowExternalModification = allowExternalModification; + IsExternalModificationAllowed = isExternalModificationAllowed; AccessCodeId = accessCodeId; DeviceId = deviceId; Type = type; @@ -869,6 +1164,13 @@ public enum TypeEnum )] public bool? AllowExternalModification { get; set; } + [DataMember( + Name = "is_external_modification_allowed", + IsRequired = false, + EmitDefaultValue = false + )] + public bool? IsExternalModificationAllowed { get; set; } + [DataMember(Name = "access_code_id", IsRequired = true, EmitDefaultValue = false)] public string AccessCodeId { get; set; } @@ -880,6 +1182,25 @@ public enum TypeEnum [DataMember(Name = "is_managed", IsRequired = false, EmitDefaultValue = false)] public bool? IsManaged { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } [DataContract(Name = "updateResponse_response")] @@ -895,6 +1216,25 @@ public UpdateResponse(ActionAttempt actionAttempt = default) [DataMember(Name = "action_attempt", IsRequired = false, EmitDefaultValue = false)] public ActionAttempt ActionAttempt { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } public ActionAttempt Update(UpdateRequest request) @@ -916,6 +1256,7 @@ public ActionAttempt Update( bool? preferNativeScheduling = default, bool? useBackupAccessCodePool = default, bool? allowExternalModification = default, + bool? isExternalModificationAllowed = default, string accessCodeId = default, string? deviceId = default, UpdateRequest.TypeEnum? type = default, @@ -933,6 +1274,7 @@ public ActionAttempt Update( preferNativeScheduling: preferNativeScheduling, useBackupAccessCodePool: useBackupAccessCodePool, allowExternalModification: allowExternalModification, + isExternalModificationAllowed: isExternalModificationAllowed, accessCodeId: accessCodeId, deviceId: deviceId, type: type, @@ -960,6 +1302,7 @@ public async Task UpdateAsync( bool? preferNativeScheduling = default, bool? useBackupAccessCodePool = default, bool? allowExternalModification = default, + bool? isExternalModificationAllowed = default, string accessCodeId = default, string? deviceId = default, UpdateRequest.TypeEnum? type = default, @@ -978,6 +1321,7 @@ await UpdateAsync( preferNativeScheduling: preferNativeScheduling, useBackupAccessCodePool: useBackupAccessCodePool, allowExternalModification: allowExternalModification, + isExternalModificationAllowed: isExternalModificationAllowed, accessCodeId: accessCodeId, deviceId: deviceId, type: type, diff --git a/output/csharp/src/Seam/Api/ActionAttempts.cs b/output/csharp/src/Seam/Api/ActionAttempts.cs index 58fb0d5..6020cda 100644 --- a/output/csharp/src/Seam/Api/ActionAttempts.cs +++ b/output/csharp/src/Seam/Api/ActionAttempts.cs @@ -1,4 +1,5 @@ using System.Runtime.Serialization; +using System.Text; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; @@ -30,6 +31,25 @@ public GetRequest(string actionAttemptId = default) [DataMember(Name = "action_attempt_id", IsRequired = true, EmitDefaultValue = false)] public string ActionAttemptId { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } [DataContract(Name = "getResponse_response")] @@ -45,6 +65,25 @@ public GetResponse(ActionAttempt actionAttempt = default) [DataMember(Name = "action_attempt", IsRequired = false, EmitDefaultValue = false)] public ActionAttempt ActionAttempt { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } public ActionAttempt Get(GetRequest request) @@ -88,6 +127,25 @@ public ListRequest(List actionAttemptIds = default) [DataMember(Name = "action_attempt_ids", IsRequired = true, EmitDefaultValue = false)] public List ActionAttemptIds { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } [DataContract(Name = "listResponse_response")] @@ -103,6 +161,25 @@ public ListResponse(List actionAttempts = default) [DataMember(Name = "action_attempts", IsRequired = false, EmitDefaultValue = false)] public List ActionAttempts { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } public List List(ListRequest request) diff --git a/output/csharp/src/Seam/Api/ClientSessions.cs b/output/csharp/src/Seam/Api/ClientSessions.cs index b34f735..5dd8aa9 100644 --- a/output/csharp/src/Seam/Api/ClientSessions.cs +++ b/output/csharp/src/Seam/Api/ClientSessions.cs @@ -1,4 +1,5 @@ using System.Runtime.Serialization; +using System.Text; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; @@ -46,6 +47,25 @@ public CreateRequest( EmitDefaultValue = false )] public List? ConnectedAccountIds { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } [DataContract(Name = "createResponse_response")] @@ -61,6 +81,25 @@ public CreateResponse(ClientSession clientSession = default) [DataMember(Name = "client_session", IsRequired = false, EmitDefaultValue = false)] public ClientSession ClientSession { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } public ClientSession Create(CreateRequest request) @@ -135,6 +174,25 @@ public GetRequest( [DataMember(Name = "user_identifier_key", IsRequired = false, EmitDefaultValue = false)] public string? UserIdentifierKey { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } [DataContract(Name = "getResponse_response")] @@ -150,6 +208,25 @@ public GetResponse(ClientSession clientSession = default) [DataMember(Name = "client_session", IsRequired = false, EmitDefaultValue = false)] public ClientSession ClientSession { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } public ClientSession Get(GetRequest request) @@ -227,6 +304,25 @@ public GetOrCreateRequest( EmitDefaultValue = false )] public List? ConnectedAccountIds { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } [DataContract(Name = "getOrCreateResponse_response")] @@ -242,6 +338,25 @@ public GetOrCreateResponse(ClientSession clientSession = default) [DataMember(Name = "client_session", IsRequired = false, EmitDefaultValue = false)] public ClientSession ClientSession { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } public ClientSession GetOrCreate(GetOrCreateRequest request) @@ -333,6 +448,25 @@ public ListRequest( EmitDefaultValue = false )] public bool? WithoutUserIdentifierKey { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } [DataContract(Name = "listResponse_response")] @@ -348,6 +482,25 @@ public ListResponse(List clientSessions = default) [DataMember(Name = "client_sessions", IsRequired = false, EmitDefaultValue = false)] public List ClientSessions { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } public List List(ListRequest request) diff --git a/output/csharp/src/Seam/Api/ClimateSettingSchedulesThermostats.cs b/output/csharp/src/Seam/Api/ClimateSettingSchedulesThermostats.cs index 6b4280f..3c0360b 100644 --- a/output/csharp/src/Seam/Api/ClimateSettingSchedulesThermostats.cs +++ b/output/csharp/src/Seam/Api/ClimateSettingSchedulesThermostats.cs @@ -1,4 +1,5 @@ using System.Runtime.Serialization; +using System.Text; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; @@ -143,6 +144,25 @@ public enum HvacModeSettingEnum EmitDefaultValue = false )] public bool? ManualOverrideAllowed { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } [DataContract(Name = "createResponse_response")] @@ -162,6 +182,25 @@ public CreateResponse(ClimateSettingSchedule climateSettingSchedule = default) EmitDefaultValue = false )] public ClimateSettingSchedule ClimateSettingSchedule { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } public ClimateSettingSchedule Create(CreateRequest request) @@ -286,6 +325,25 @@ public GetRequest( [DataMember(Name = "device_id", IsRequired = false, EmitDefaultValue = false)] public string? DeviceId { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } [DataContract(Name = "getResponse_response")] @@ -305,6 +363,25 @@ public GetResponse(ClimateSettingSchedule climateSettingSchedule = default) EmitDefaultValue = false )] public ClimateSettingSchedule ClimateSettingSchedule { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } public ClimateSettingSchedule Get(GetRequest request) @@ -375,6 +452,25 @@ public ListRequest(string deviceId = default, string? userIdentifierKey = defaul [DataMember(Name = "user_identifier_key", IsRequired = false, EmitDefaultValue = false)] public string? UserIdentifierKey { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } [DataContract(Name = "listResponse_response")] @@ -394,6 +490,25 @@ public ListResponse(List climateSettingSchedules = defau EmitDefaultValue = false )] public List ClimateSettingSchedules { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } public List List(ListRequest request) @@ -569,6 +684,25 @@ public enum HvacModeSettingEnum EmitDefaultValue = false )] public bool? ManualOverrideAllowed { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } [DataContract(Name = "updateResponse_response")] @@ -588,6 +722,25 @@ public UpdateResponse(ClimateSettingSchedule climateSettingSchedule = default) EmitDefaultValue = false )] public ClimateSettingSchedule ClimateSettingSchedule { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } public ClimateSettingSchedule Update(UpdateRequest request) diff --git a/output/csharp/src/Seam/Api/ConnectWebviews.cs b/output/csharp/src/Seam/Api/ConnectWebviews.cs index dd43fdc..e611cc4 100644 --- a/output/csharp/src/Seam/Api/ConnectWebviews.cs +++ b/output/csharp/src/Seam/Api/ConnectWebviews.cs @@ -1,4 +1,5 @@ using System.Runtime.Serialization; +using System.Text; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; @@ -206,6 +207,25 @@ public enum ProviderCategoryEnum EmitDefaultValue = false )] public bool? WaitForDeviceCreation { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } [DataContract(Name = "createResponse_response")] @@ -221,6 +241,25 @@ public CreateResponse(ConnectWebview connectWebview = default) [DataMember(Name = "connect_webview", IsRequired = false, EmitDefaultValue = false)] public ConnectWebview ConnectWebview { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } public ConnectWebview Create(CreateRequest request) @@ -308,6 +347,25 @@ public GetRequest(string connectWebviewId = default) [DataMember(Name = "connect_webview_id", IsRequired = true, EmitDefaultValue = false)] public string ConnectWebviewId { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } [DataContract(Name = "getResponse_response")] @@ -323,6 +381,25 @@ public GetResponse(ConnectWebview connectWebview = default) [DataMember(Name = "connect_webview", IsRequired = false, EmitDefaultValue = false)] public ConnectWebview ConnectWebview { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } public ConnectWebview Get(GetRequest request) @@ -366,6 +443,25 @@ public ListRequest(string? userIdentifierKey = default) [DataMember(Name = "user_identifier_key", IsRequired = false, EmitDefaultValue = false)] public string? UserIdentifierKey { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } [DataContract(Name = "listResponse_response")] @@ -381,6 +477,25 @@ public ListResponse(List connectWebviews = default) [DataMember(Name = "connect_webviews", IsRequired = false, EmitDefaultValue = false)] public List ConnectWebviews { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } public List List(ListRequest request) diff --git a/output/csharp/src/Seam/Api/ConnectedAccounts.cs b/output/csharp/src/Seam/Api/ConnectedAccounts.cs index 88b3de0..dc43e4e 100644 --- a/output/csharp/src/Seam/Api/ConnectedAccounts.cs +++ b/output/csharp/src/Seam/Api/ConnectedAccounts.cs @@ -1,4 +1,5 @@ using System.Runtime.Serialization; +using System.Text; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; @@ -38,6 +39,25 @@ public GetRequest(string? connectedAccountId = default, string? email = default) [DataMember(Name = "email", IsRequired = false, EmitDefaultValue = false)] public string? Email { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } [DataContract(Name = "getResponse_response")] @@ -53,6 +73,25 @@ public GetResponse(ConnectedAccount connectedAccount = default) [DataMember(Name = "connected_account", IsRequired = false, EmitDefaultValue = false)] public ConnectedAccount ConnectedAccount { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } public ConnectedAccount Get(GetRequest request) @@ -93,6 +132,25 @@ public class ListRequest { [JsonConstructorAttribute] public ListRequest() { } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } [DataContract(Name = "listResponse_response")] @@ -108,6 +166,25 @@ public ListResponse(List connectedAccounts = default) [DataMember(Name = "connected_accounts", IsRequired = false, EmitDefaultValue = false)] public List ConnectedAccounts { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } public List List(ListRequest request) diff --git a/output/csharp/src/Seam/Api/Devices.cs b/output/csharp/src/Seam/Api/Devices.cs index 3b1f17a..2c49fb0 100644 --- a/output/csharp/src/Seam/Api/Devices.cs +++ b/output/csharp/src/Seam/Api/Devices.cs @@ -1,4 +1,5 @@ using System.Runtime.Serialization; +using System.Text; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; @@ -34,6 +35,25 @@ public GetRequest(string? deviceId = default, string? name = default) [DataMember(Name = "name", IsRequired = false, EmitDefaultValue = false)] public string? Name { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } [DataContract(Name = "getResponse_response")] @@ -49,6 +69,25 @@ public GetResponse(Device device = default) [DataMember(Name = "device", IsRequired = false, EmitDefaultValue = false)] public Device Device { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } public Device Get(GetRequest request) @@ -425,6 +464,25 @@ public enum ManufacturerEnum [DataMember(Name = "user_identifier_key", IsRequired = false, EmitDefaultValue = false)] public string? UserIdentifierKey { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } [DataContract(Name = "listResponse_response")] @@ -440,6 +498,25 @@ public ListResponse(List devices = default) [DataMember(Name = "devices", IsRequired = false, EmitDefaultValue = false)] public List Devices { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } public List List(ListRequest request) diff --git a/output/csharp/src/Seam/Api/Events.cs b/output/csharp/src/Seam/Api/Events.cs index 6354041..8289365 100644 --- a/output/csharp/src/Seam/Api/Events.cs +++ b/output/csharp/src/Seam/Api/Events.cs @@ -1,4 +1,5 @@ using System.Runtime.Serialization; +using System.Text; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; @@ -42,6 +43,25 @@ public GetRequest( [DataMember(Name = "device_id", IsRequired = false, EmitDefaultValue = false)] public string? DeviceId { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } [DataContract(Name = "getResponse_response")] @@ -57,6 +77,25 @@ public GetResponse(Event? event_ = default) [DataMember(Name = "event", IsRequired = false, EmitDefaultValue = false)] public Event? Event { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } public Event Get(GetRequest request) @@ -414,6 +453,25 @@ public enum EventTypesEnum EmitDefaultValue = false )] public string? ConnectedAccountId { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } [DataContract(Name = "listResponse_response")] @@ -429,6 +487,25 @@ public ListResponse(List? events = default) [DataMember(Name = "events", IsRequired = false, EmitDefaultValue = false)] public List? Events { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } public List List(ListRequest request) diff --git a/output/csharp/src/Seam/Api/Locks.cs b/output/csharp/src/Seam/Api/Locks.cs index 1f9f91d..ba6871c 100644 --- a/output/csharp/src/Seam/Api/Locks.cs +++ b/output/csharp/src/Seam/Api/Locks.cs @@ -1,4 +1,5 @@ using System.Runtime.Serialization; +using System.Text; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; @@ -34,6 +35,25 @@ public LockDoorRequest(string deviceId = default, bool? sync = default) [DataMember(Name = "sync", IsRequired = false, EmitDefaultValue = false)] public bool? Sync { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } [DataContract(Name = "lockDoorResponse_response")] @@ -49,6 +69,25 @@ public LockDoorResponse(ActionAttempt actionAttempt = default) [DataMember(Name = "action_attempt", IsRequired = false, EmitDefaultValue = false)] public ActionAttempt ActionAttempt { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } public ActionAttempt LockDoor(LockDoorRequest request) @@ -99,6 +138,25 @@ public UnlockDoorRequest(string deviceId = default, bool? sync = default) [DataMember(Name = "sync", IsRequired = false, EmitDefaultValue = false)] public bool? Sync { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } [DataContract(Name = "unlockDoorResponse_response")] @@ -114,6 +172,25 @@ public UnlockDoorResponse(ActionAttempt actionAttempt = default) [DataMember(Name = "action_attempt", IsRequired = false, EmitDefaultValue = false)] public ActionAttempt ActionAttempt { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } public ActionAttempt UnlockDoor(UnlockDoorRequest request) diff --git a/output/csharp/src/Seam/Api/NoiseThresholdsNoiseSensors.cs b/output/csharp/src/Seam/Api/NoiseThresholdsNoiseSensors.cs index 383a960..f564172 100644 --- a/output/csharp/src/Seam/Api/NoiseThresholdsNoiseSensors.cs +++ b/output/csharp/src/Seam/Api/NoiseThresholdsNoiseSensors.cs @@ -1,4 +1,5 @@ using System.Runtime.Serialization; +using System.Text; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; @@ -66,6 +67,25 @@ public CreateRequest( [DataMember(Name = "noise_threshold_nrs", IsRequired = false, EmitDefaultValue = false)] public float NoiseThresholdNrs { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } [DataContract(Name = "createResponse_response")] @@ -81,6 +101,25 @@ public CreateResponse(ActionAttempt actionAttempt = default) [DataMember(Name = "action_attempt", IsRequired = false, EmitDefaultValue = false)] public ActionAttempt ActionAttempt { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } public ActionAttempt Create(CreateRequest request) @@ -179,6 +218,25 @@ public DeleteRequest( [DataMember(Name = "sync", IsRequired = false, EmitDefaultValue = false)] public bool? Sync { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } [DataContract(Name = "deleteResponse_response")] @@ -194,6 +252,25 @@ public DeleteResponse(ActionAttempt actionAttempt = default) [DataMember(Name = "action_attempt", IsRequired = false, EmitDefaultValue = false)] public ActionAttempt ActionAttempt { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } public ActionAttempt Delete(DeleteRequest request) @@ -264,6 +341,25 @@ public GetRequest(string noiseThresholdId = default) [DataMember(Name = "noise_threshold_id", IsRequired = true, EmitDefaultValue = false)] public string NoiseThresholdId { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } [DataContract(Name = "getResponse_response")] @@ -279,6 +375,25 @@ public GetResponse(NoiseThreshold noiseThreshold = default) [DataMember(Name = "noise_threshold", IsRequired = false, EmitDefaultValue = false)] public NoiseThreshold NoiseThreshold { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } public NoiseThreshold Get(GetRequest request) @@ -327,6 +442,25 @@ public ListRequest(string deviceId = default) [DataMember(Name = "device_id", IsRequired = true, EmitDefaultValue = false)] public string DeviceId { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } [DataContract(Name = "listResponse_response")] @@ -342,6 +476,25 @@ public ListResponse(List noiseThresholds = default) [DataMember(Name = "noise_thresholds", IsRequired = false, EmitDefaultValue = false)] public List NoiseThresholds { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } public List List(ListRequest request) @@ -431,6 +584,25 @@ public UpdateRequest( [DataMember(Name = "noise_threshold_nrs", IsRequired = false, EmitDefaultValue = false)] public float NoiseThresholdNrs { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } [DataContract(Name = "updateResponse_response")] @@ -446,6 +618,25 @@ public UpdateResponse(ActionAttempt actionAttempt = default) [DataMember(Name = "action_attempt", IsRequired = false, EmitDefaultValue = false)] public ActionAttempt ActionAttempt { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } public ActionAttempt Update(UpdateRequest request) diff --git a/output/csharp/src/Seam/Api/Thermostats.cs b/output/csharp/src/Seam/Api/Thermostats.cs index 8a34bd2..31afa54 100644 --- a/output/csharp/src/Seam/Api/Thermostats.cs +++ b/output/csharp/src/Seam/Api/Thermostats.cs @@ -1,4 +1,5 @@ using System.Runtime.Serialization; +using System.Text; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; @@ -34,6 +35,25 @@ public GetRequest(string? deviceId = default, string? name = default) [DataMember(Name = "name", IsRequired = false, EmitDefaultValue = false)] public string? Name { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } [DataContract(Name = "getResponse_response")] @@ -49,6 +69,25 @@ public GetResponse(Device thermostat = default) [DataMember(Name = "thermostat", IsRequired = false, EmitDefaultValue = false)] public Device Thermostat { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } public Device Get(GetRequest request) @@ -427,6 +466,25 @@ public enum ManufacturerEnum [DataMember(Name = "user_identifier_key", IsRequired = false, EmitDefaultValue = false)] public string? UserIdentifierKey { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } [DataContract(Name = "listResponse_response")] @@ -442,6 +500,25 @@ public ListResponse(List thermostats = default) [DataMember(Name = "thermostats", IsRequired = false, EmitDefaultValue = false)] public List Thermostats { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } public List List(ListRequest request) diff --git a/output/csharp/src/Seam/Api/UnmanagedAccessCodes.cs b/output/csharp/src/Seam/Api/UnmanagedAccessCodes.cs index ead7804..7fc69f6 100644 --- a/output/csharp/src/Seam/Api/UnmanagedAccessCodes.cs +++ b/output/csharp/src/Seam/Api/UnmanagedAccessCodes.cs @@ -1,4 +1,5 @@ using System.Runtime.Serialization; +using System.Text; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; @@ -34,6 +35,25 @@ public DeleteRequest(string accessCodeId = default, bool? sync = default) [DataMember(Name = "sync", IsRequired = false, EmitDefaultValue = false)] public bool? Sync { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } [DataContract(Name = "deleteResponse_response")] @@ -49,6 +69,25 @@ public DeleteResponse(ActionAttempt actionAttempt = default) [DataMember(Name = "action_attempt", IsRequired = false, EmitDefaultValue = false)] public ActionAttempt ActionAttempt { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } public ActionAttempt Delete(DeleteRequest request) diff --git a/output/csharp/src/Seam/Api/UnmanagedDevices.cs b/output/csharp/src/Seam/Api/UnmanagedDevices.cs index 184118f..e35016b 100644 --- a/output/csharp/src/Seam/Api/UnmanagedDevices.cs +++ b/output/csharp/src/Seam/Api/UnmanagedDevices.cs @@ -1,4 +1,5 @@ using System.Runtime.Serialization; +using System.Text; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; @@ -34,6 +35,25 @@ public GetRequest(string? deviceId = default, string? name = default) [DataMember(Name = "name", IsRequired = false, EmitDefaultValue = false)] public string? Name { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } [DataContract(Name = "getResponse_response")] @@ -49,6 +69,25 @@ public GetResponse(UnmanagedDevice device = default) [DataMember(Name = "device", IsRequired = false, EmitDefaultValue = false)] public UnmanagedDevice Device { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } public UnmanagedDevice Get(GetRequest request) @@ -430,6 +469,25 @@ public enum ManufacturerEnum [DataMember(Name = "user_identifier_key", IsRequired = false, EmitDefaultValue = false)] public string? UserIdentifierKey { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } [DataContract(Name = "listResponse_response")] @@ -445,6 +503,25 @@ public ListResponse(List devices = default) [DataMember(Name = "devices", IsRequired = false, EmitDefaultValue = false)] public List Devices { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } public List List(ListRequest request) diff --git a/output/csharp/src/Seam/Api/Webhooks.cs b/output/csharp/src/Seam/Api/Webhooks.cs index 26583d0..4127f7b 100644 --- a/output/csharp/src/Seam/Api/Webhooks.cs +++ b/output/csharp/src/Seam/Api/Webhooks.cs @@ -1,4 +1,5 @@ using System.Runtime.Serialization; +using System.Text; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; @@ -34,6 +35,25 @@ public CreateRequest(string url = default, List? eventTypes = default) [DataMember(Name = "event_types", IsRequired = false, EmitDefaultValue = false)] public List? EventTypes { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } [DataContract(Name = "createResponse_response")] @@ -49,6 +69,25 @@ public CreateResponse(Webhook webhook = default) [DataMember(Name = "webhook", IsRequired = false, EmitDefaultValue = false)] public Webhook Webhook { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } public Webhook Create(CreateRequest request) @@ -93,6 +132,25 @@ public GetRequest(string webhookId = default) [DataMember(Name = "webhook_id", IsRequired = true, EmitDefaultValue = false)] public string WebhookId { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } [DataContract(Name = "getResponse_response")] @@ -108,6 +166,25 @@ public GetResponse(Webhook webhook = default) [DataMember(Name = "webhook", IsRequired = false, EmitDefaultValue = false)] public Webhook Webhook { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } public Webhook Get(GetRequest request) @@ -141,6 +218,25 @@ public class ListRequest { [JsonConstructorAttribute] public ListRequest() { } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } [DataContract(Name = "listResponse_response")] @@ -156,6 +252,25 @@ public ListResponse(List webhooks = default) [DataMember(Name = "webhooks", IsRequired = false, EmitDefaultValue = false)] public List Webhooks { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } public List List(ListRequest request) diff --git a/output/csharp/src/Seam/Api/Workspaces.cs b/output/csharp/src/Seam/Api/Workspaces.cs index aa5dafb..3d6b2dd 100644 --- a/output/csharp/src/Seam/Api/Workspaces.cs +++ b/output/csharp/src/Seam/Api/Workspaces.cs @@ -1,4 +1,5 @@ using System.Runtime.Serialization; +using System.Text; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; @@ -22,6 +23,25 @@ public class GetRequest { [JsonConstructorAttribute] public GetRequest() { } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } [DataContract(Name = "getResponse_response")] @@ -37,6 +57,25 @@ public GetResponse(Workspace? workspace = default) [DataMember(Name = "workspace", IsRequired = false, EmitDefaultValue = false)] public Workspace? Workspace { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } public Workspace Get(GetRequest request) diff --git a/output/csharp/src/Seam/Client/Seam.cs b/output/csharp/src/Seam/Client/Seam.cs index 4a21808..0712676 100644 --- a/output/csharp/src/Seam/Client/Seam.cs +++ b/output/csharp/src/Seam/Client/Seam.cs @@ -605,6 +605,17 @@ IReadableSeamRequestConfiguration configuration result.Cookies.Add(cookie); } } + + var exceptionFactory = SeamRequestConfiguration.DefaultExceptionFactory; + if (exceptionFactory != null) + { + var exception = exceptionFactory(request.Resource, result); + if (exception != null) + { + throw exception; + } + } + return result; } } @@ -717,6 +728,17 @@ private async Task> ExecAsync( result.Cookies.Add(cookie); } } + + var exceptionFactory = SeamRequestConfiguration.DefaultExceptionFactory; + if (exceptionFactory != null) + { + var exception = exceptionFactory(request.Resource, result); + if (exception != null) + { + throw exception; + } + } + return result; } } diff --git a/output/csharp/src/Seam/Client/SeamRequestConfiguration.cs b/output/csharp/src/Seam/Client/SeamRequestConfiguration.cs index ccc0d0d..ed60677 100644 --- a/output/csharp/src/Seam/Client/SeamRequestConfiguration.cs +++ b/output/csharp/src/Seam/Client/SeamRequestConfiguration.cs @@ -41,8 +41,6 @@ public class SeamRequestConfiguration : IReadableSeamRequestConfiguration /// public static readonly ExceptionFactory DefaultExceptionFactory = (methodName, response) => { - Console.WriteLine("LOLOLOLOL"); - var status = (int)response.StatusCode; if (status >= 400) { diff --git a/output/csharp/src/Seam/Model/AccessCode.cs b/output/csharp/src/Seam/Model/AccessCode.cs index 4e5659b..52e76d4 100644 --- a/output/csharp/src/Seam/Model/AccessCode.cs +++ b/output/csharp/src/Seam/Model/AccessCode.cs @@ -1,4 +1,5 @@ using System.Runtime.Serialization; +using System.Text; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; @@ -156,5 +157,24 @@ public enum StatusEnum EmitDefaultValue = false )] public bool IsExternalModificationAllowed { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } } diff --git a/output/csharp/src/Seam/Model/AcsAccessGroup.cs b/output/csharp/src/Seam/Model/AcsAccessGroup.cs index c11b2e4..c58e734 100644 --- a/output/csharp/src/Seam/Model/AcsAccessGroup.cs +++ b/output/csharp/src/Seam/Model/AcsAccessGroup.cs @@ -1,4 +1,5 @@ using System.Runtime.Serialization; +using System.Text; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; @@ -101,5 +102,24 @@ public enum ExternalTypeEnum [DataMember(Name = "created_at", IsRequired = true, EmitDefaultValue = false)] public string CreatedAt { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } } diff --git a/output/csharp/src/Seam/Model/AcsSystem.cs b/output/csharp/src/Seam/Model/AcsSystem.cs index 276b4f8..6cc1f61 100644 --- a/output/csharp/src/Seam/Model/AcsSystem.cs +++ b/output/csharp/src/Seam/Model/AcsSystem.cs @@ -1,4 +1,5 @@ using System.Runtime.Serialization; +using System.Text; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; @@ -19,7 +20,8 @@ public AcsSystem( AcsSystem.SystemTypeEnum systemType = default, string systemTypeDisplayName = default, string name = default, - string createdAt = default + string createdAt = default, + List connectedAccountIds = default ) { AcsSystemId = acsSystemId; @@ -29,6 +31,7 @@ public AcsSystem( SystemTypeDisplayName = systemTypeDisplayName; Name = name; CreatedAt = createdAt; + ConnectedAccountIds = connectedAccountIds; } [JsonConverter(typeof(StringEnumConverter))] @@ -75,5 +78,27 @@ public enum SystemTypeEnum [DataMember(Name = "created_at", IsRequired = true, EmitDefaultValue = false)] public string CreatedAt { get; set; } + + [DataMember(Name = "connected_account_ids", IsRequired = true, EmitDefaultValue = false)] + public List ConnectedAccountIds { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } } diff --git a/output/csharp/src/Seam/Model/AcsUser.cs b/output/csharp/src/Seam/Model/AcsUser.cs index de22de4..5e5c314 100644 --- a/output/csharp/src/Seam/Model/AcsUser.cs +++ b/output/csharp/src/Seam/Model/AcsUser.cs @@ -1,4 +1,5 @@ using System.Runtime.Serialization; +using System.Text; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; @@ -82,5 +83,24 @@ public enum ExternalTypeEnum [DataMember(Name = "phone_number", IsRequired = false, EmitDefaultValue = false)] public string? PhoneNumber { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } } diff --git a/output/csharp/src/Seam/Model/ActionAttempt.cs b/output/csharp/src/Seam/Model/ActionAttempt.cs index 6f617ac..4df472a 100644 --- a/output/csharp/src/Seam/Model/ActionAttempt.cs +++ b/output/csharp/src/Seam/Model/ActionAttempt.cs @@ -1,4 +1,5 @@ using System.Runtime.Serialization; +using System.Text; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; @@ -13,6 +14,8 @@ namespace Seam.Model public abstract class ActionAttempt { public abstract string Status { get; } + + public abstract override string ToString(); } [DataContract(Name = "seamModel_actionAttemptSuccess_model")] @@ -50,6 +53,25 @@ public ActionAttemptSuccess( [DataMember(Name = "error", IsRequired = false, EmitDefaultValue = false)] public string? Error { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } [DataContract(Name = "seamModel_actionAttemptPending_model")] @@ -87,6 +109,25 @@ public ActionAttemptPending( [DataMember(Name = "error", IsRequired = false, EmitDefaultValue = false)] public string? Error { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } [DataContract(Name = "seamModel_actionAttemptError_model")] @@ -124,6 +165,25 @@ public ActionAttemptError( [DataMember(Name = "error", IsRequired = true, EmitDefaultValue = false)] public ActionAttemptErrorError Error { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } [DataContract(Name = "seamModel_actionAttemptErrorError_model")] @@ -143,5 +203,24 @@ public ActionAttemptErrorError(string type = default, string message = default) [DataMember(Name = "message", IsRequired = true, EmitDefaultValue = false)] public string Message { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } } diff --git a/output/csharp/src/Seam/Model/ClientSession.cs b/output/csharp/src/Seam/Model/ClientSession.cs index ce04498..7b0aedb 100644 --- a/output/csharp/src/Seam/Model/ClientSession.cs +++ b/output/csharp/src/Seam/Model/ClientSession.cs @@ -1,4 +1,5 @@ using System.Runtime.Serialization; +using System.Text; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; @@ -56,5 +57,24 @@ public ClientSession( [DataMember(Name = "workspace_id", IsRequired = true, EmitDefaultValue = false)] public string WorkspaceId { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } } diff --git a/output/csharp/src/Seam/Model/ClimateSettingSchedule.cs b/output/csharp/src/Seam/Model/ClimateSettingSchedule.cs index d31ac91..b6acb97 100644 --- a/output/csharp/src/Seam/Model/ClimateSettingSchedule.cs +++ b/output/csharp/src/Seam/Model/ClimateSettingSchedule.cs @@ -1,4 +1,5 @@ using System.Runtime.Serialization; +using System.Text; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; @@ -142,5 +143,24 @@ public enum HvacModeSettingEnum [DataMember(Name = "manual_override_allowed", IsRequired = false, EmitDefaultValue = false)] public bool? ManualOverrideAllowed { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } } diff --git a/output/csharp/src/Seam/Model/ConnectWebview.cs b/output/csharp/src/Seam/Model/ConnectWebview.cs index d205a3e..8bc3954 100644 --- a/output/csharp/src/Seam/Model/ConnectWebview.cs +++ b/output/csharp/src/Seam/Model/ConnectWebview.cs @@ -1,4 +1,5 @@ using System.Runtime.Serialization; +using System.Text; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; @@ -102,5 +103,24 @@ public enum StatusEnum [DataMember(Name = "status", IsRequired = true, EmitDefaultValue = false)] public ConnectWebview.StatusEnum Status { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } } diff --git a/output/csharp/src/Seam/Model/ConnectedAccount.cs b/output/csharp/src/Seam/Model/ConnectedAccount.cs index 3ee1c97..c5f9b4d 100644 --- a/output/csharp/src/Seam/Model/ConnectedAccount.cs +++ b/output/csharp/src/Seam/Model/ConnectedAccount.cs @@ -1,4 +1,5 @@ using System.Runtime.Serialization; +using System.Text; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; @@ -60,6 +61,25 @@ public ConnectedAccount( [DataMember(Name = "custom_metadata", IsRequired = false, EmitDefaultValue = false)] public object? CustomMetadata { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } [DataContract(Name = "seamModel_connectedAccountUserIdentifier_model")] @@ -97,5 +117,24 @@ public ConnectedAccountUserIdentifier( [DataMember(Name = "exclusive", IsRequired = false, EmitDefaultValue = false)] public bool? Exclusive { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } } diff --git a/output/csharp/src/Seam/Model/Device.cs b/output/csharp/src/Seam/Model/Device.cs index 9f8c664..5cfac12 100644 --- a/output/csharp/src/Seam/Model/Device.cs +++ b/output/csharp/src/Seam/Model/Device.cs @@ -1,4 +1,5 @@ using System.Runtime.Serialization; +using System.Text; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; @@ -181,6 +182,25 @@ public enum CapabilitiesSupportedEnum [DataMember(Name = "is_managed", IsRequired = true, EmitDefaultValue = false)] public bool IsManaged { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } [DataContract(Name = "seamModel_deviceProperties_model")] @@ -200,6 +220,7 @@ public DeviceProperties( string? imageUrl = default, string? imageAltText = default, string? serialNumber = default, + bool? supportsAccessoryKeypad = default, DevicePropertiesAugustMetadata? augustMetadata = default, DevicePropertiesAvigilonAltaMetadata? avigilonAltaMetadata = default, DevicePropertiesSchlageMetadata? schlageMetadata = default, @@ -244,6 +265,7 @@ public DeviceProperties( ImageUrl = imageUrl; ImageAltText = imageAltText; SerialNumber = serialNumber; + SupportsAccessoryKeypad = supportsAccessoryKeypad; AugustMetadata = augustMetadata; AvigilonAltaMetadata = avigilonAltaMetadata; SchlageMetadata = schlageMetadata; @@ -308,6 +330,13 @@ public DeviceProperties( [DataMember(Name = "serial_number", IsRequired = false, EmitDefaultValue = false)] public string? SerialNumber { get; set; } + [DataMember( + Name = "supports_accessory_keypad", + IsRequired = false, + EmitDefaultValue = false + )] + public bool? SupportsAccessoryKeypad { get; set; } + [DataMember(Name = "august_metadata", IsRequired = false, EmitDefaultValue = false)] public DevicePropertiesAugustMetadata? AugustMetadata { get; set; } @@ -415,6 +444,25 @@ public DeviceProperties( [DataMember(Name = "door_open", IsRequired = false, EmitDefaultValue = false)] public bool? DoorOpen { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } [DataContract(Name = "seamModel_devicePropertiesModel_model")] @@ -441,6 +489,25 @@ public DevicePropertiesModel( EmitDefaultValue = false )] public string ManufacturerDisplayName { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } [DataContract(Name = "seamModel_devicePropertiesBattery_model")] @@ -479,6 +546,25 @@ public enum StatusEnum [DataMember(Name = "status", IsRequired = true, EmitDefaultValue = false)] public DevicePropertiesBattery.StatusEnum Status { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } [DataContract(Name = "seamModel_devicePropertiesAugustMetadata_model")] @@ -526,6 +612,25 @@ public DevicePropertiesAugustMetadata( [DataMember(Name = "house_id", IsRequired = false, EmitDefaultValue = false)] public string? HouseId { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } [DataContract(Name = "seamModel_devicePropertiesAvigilonAltaMetadata_model")] @@ -568,6 +673,25 @@ public DevicePropertiesAvigilonAltaMetadata( [DataMember(Name = "site_name", IsRequired = true, EmitDefaultValue = false)] public string SiteName { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } [DataContract(Name = "seamModel_devicePropertiesSchlageMetadata_model")] @@ -600,6 +724,25 @@ public DevicePropertiesSchlageMetadata( [DataMember(Name = "model", IsRequired = false, EmitDefaultValue = false)] public string? Model { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } [DataContract(Name = "seamModel_devicePropertiesSmartthingsMetadata_model")] @@ -632,6 +775,25 @@ public DevicePropertiesSmartthingsMetadata( [DataMember(Name = "location_id", IsRequired = false, EmitDefaultValue = false)] public string? LocationId { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } [DataContract(Name = "seamModel_devicePropertiesLocklyMetadata_model")] @@ -659,6 +821,25 @@ public DevicePropertiesLocklyMetadata( [DataMember(Name = "model", IsRequired = false, EmitDefaultValue = false)] public string? Model { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } [DataContract(Name = "seamModel_devicePropertiesNukiMetadata_model")] @@ -686,6 +867,25 @@ public DevicePropertiesNukiMetadata( [DataMember(Name = "keypad_battery_critical", IsRequired = false, EmitDefaultValue = false)] public bool? KeypadBatteryCritical { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } [DataContract(Name = "seamModel_devicePropertiesKwiksetMetadata_model")] @@ -713,6 +913,25 @@ public DevicePropertiesKwiksetMetadata( [DataMember(Name = "model_number", IsRequired = true, EmitDefaultValue = false)] public string ModelNumber { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } [DataContract(Name = "seamModel_devicePropertiesSaltoMetadata_model")] @@ -755,6 +974,25 @@ public DevicePropertiesSaltoMetadata( [DataMember(Name = "model", IsRequired = false, EmitDefaultValue = false)] public string? Model { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } [DataContract(Name = "seamModel_devicePropertiesGenieMetadata_model")] @@ -774,6 +1012,25 @@ public DevicePropertiesGenieMetadata(string deviceName = default, string doorNam [DataMember(Name = "door_name", IsRequired = true, EmitDefaultValue = false)] public string DoorName { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } [DataContract(Name = "seamModel_devicePropertiesBrivoMetadata_model")] @@ -789,6 +1046,25 @@ public DevicePropertiesBrivoMetadata(string deviceName = default) [DataMember(Name = "device_name", IsRequired = true, EmitDefaultValue = false)] public string DeviceName { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } [DataContract(Name = "seamModel_devicePropertiesIglooMetadata_model")] @@ -816,6 +1092,25 @@ public DevicePropertiesIglooMetadata( [DataMember(Name = "model", IsRequired = false, EmitDefaultValue = false)] public string? Model { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } [DataContract(Name = "seamModel_devicePropertiesNoiseawareMetadata_model")] @@ -863,6 +1158,25 @@ public enum DeviceModelEnum [DataMember(Name = "device_id", IsRequired = true, EmitDefaultValue = false)] public string DeviceId { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } [DataContract(Name = "seamModel_devicePropertiesMinutMetadata_model")] @@ -890,6 +1204,25 @@ public DevicePropertiesMinutMetadata( [DataMember(Name = "latest_sensor_values", IsRequired = true, EmitDefaultValue = false)] public DevicePropertiesMinutMetadataLatestSensorValues LatestSensorValues { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } [DataContract(Name = "seamModel_devicePropertiesMinutMetadataLatestSensorValues_model")] @@ -927,6 +1260,25 @@ public DevicePropertiesMinutMetadataLatestSensorValues( [DataMember(Name = "accelerometer_z", IsRequired = true, EmitDefaultValue = false)] public DevicePropertiesMinutMetadataLatestSensorValuesAccelerometerZ AccelerometerZ { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } [DataContract( @@ -951,6 +1303,25 @@ public DevicePropertiesMinutMetadataLatestSensorValuesTemperature( [DataMember(Name = "value", IsRequired = true, EmitDefaultValue = false)] public float Value { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } [DataContract(Name = "seamModel_devicePropertiesMinutMetadataLatestSensorValuesSound_model")] @@ -973,6 +1344,25 @@ public DevicePropertiesMinutMetadataLatestSensorValuesSound( [DataMember(Name = "value", IsRequired = true, EmitDefaultValue = false)] public float Value { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } [DataContract(Name = "seamModel_devicePropertiesMinutMetadataLatestSensorValuesHumidity_model")] @@ -995,6 +1385,25 @@ public DevicePropertiesMinutMetadataLatestSensorValuesHumidity( [DataMember(Name = "value", IsRequired = true, EmitDefaultValue = false)] public float Value { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } [DataContract(Name = "seamModel_devicePropertiesMinutMetadataLatestSensorValuesPressure_model")] @@ -1017,6 +1426,25 @@ public DevicePropertiesMinutMetadataLatestSensorValuesPressure( [DataMember(Name = "value", IsRequired = true, EmitDefaultValue = false)] public float Value { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } [DataContract( @@ -1041,6 +1469,25 @@ public DevicePropertiesMinutMetadataLatestSensorValuesAccelerometerZ( [DataMember(Name = "value", IsRequired = true, EmitDefaultValue = false)] public float Value { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } [DataContract(Name = "seamModel_devicePropertiesFourSuitesMetadata_model")] @@ -1068,6 +1515,25 @@ public DevicePropertiesFourSuitesMetadata( [DataMember(Name = "reclose_delay_in_seconds", IsRequired = true, EmitDefaultValue = false)] public float RecloseDelayInSeconds { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } [DataContract(Name = "seamModel_devicePropertiesTwoNMetadata_model")] @@ -1087,6 +1553,25 @@ public DevicePropertiesTwoNMetadata(float deviceId = default, string deviceName [DataMember(Name = "device_name", IsRequired = true, EmitDefaultValue = false)] public string DeviceName { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } [DataContract(Name = "seamModel_devicePropertiesControlbywebMetadata_model")] @@ -1114,6 +1599,25 @@ public DevicePropertiesControlbywebMetadata( [DataMember(Name = "relay_name", IsRequired = false, EmitDefaultValue = false)] public string? RelayName { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } [DataContract(Name = "seamModel_devicePropertiesTtlockMetadata_model")] @@ -1133,6 +1637,25 @@ public DevicePropertiesTtlockMetadata(float lockId = default, string lockAlias = [DataMember(Name = "lock_alias", IsRequired = true, EmitDefaultValue = false)] public string LockAlias { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } [DataContract(Name = "seamModel_devicePropertiesSeamBridgeMetadata_model")] @@ -1170,6 +1693,25 @@ public enum UnlockMethodEnum [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = false)] public string Name { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } [DataContract(Name = "seamModel_devicePropertiesIgloohomeMetadata_model")] @@ -1202,6 +1744,25 @@ public DevicePropertiesIgloohomeMetadata( [DataMember(Name = "bridge_name", IsRequired = true, EmitDefaultValue = false)] public string BridgeName { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } [DataContract(Name = "seamModel_devicePropertiesNestMetadata_model")] @@ -1229,6 +1790,25 @@ public DevicePropertiesNestMetadata( [DataMember(Name = "custom_name", IsRequired = true, EmitDefaultValue = false)] public string CustomName { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } [DataContract(Name = "seamModel_devicePropertiesEcobeeMetadata_model")] @@ -1251,6 +1831,25 @@ public DevicePropertiesEcobeeMetadata( [DataMember(Name = "device_name", IsRequired = true, EmitDefaultValue = false)] public string DeviceName { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } [DataContract(Name = "seamModel_devicePropertiesHubitatMetadata_model")] @@ -1278,6 +1877,25 @@ public DevicePropertiesHubitatMetadata( [DataMember(Name = "device_label", IsRequired = true, EmitDefaultValue = false)] public string DeviceLabel { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } [DataContract(Name = "seamModel_devicePropertiesDormakabaOracodeMetadata_model")] @@ -1315,6 +1933,25 @@ public DevicePropertiesDormakabaOracodeMetadata( [DataMember(Name = "site_name", IsRequired = true, EmitDefaultValue = false)] public string SiteName { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } [DataContract(Name = "seamModel_devicePropertiesWyzeMetadata_model")] @@ -1357,6 +1994,25 @@ public DevicePropertiesWyzeMetadata( [DataMember(Name = "device_info_model", IsRequired = true, EmitDefaultValue = false)] public string DeviceInfoModel { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } [DataContract(Name = "seamModel_devicePropertiesKeypadBattery_model")] @@ -1372,6 +2028,25 @@ public DevicePropertiesKeypadBattery(float level = default) [DataMember(Name = "level", IsRequired = true, EmitDefaultValue = false)] public float Level { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } [DataContract(Name = "seamModel_deviceLocation_model")] @@ -1391,6 +2066,25 @@ public DeviceLocation(string? locationName = default, string? timezone = default [DataMember(Name = "timezone", IsRequired = false, EmitDefaultValue = false)] public string? Timezone { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } [DataContract(Name = "seamModel_deviceErrors_model")] @@ -1410,6 +2104,25 @@ public DeviceErrors(string errorCode = default, string message = default) [DataMember(Name = "message", IsRequired = true, EmitDefaultValue = false)] public string Message { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } [DataContract(Name = "seamModel_deviceWarnings_model")] @@ -1429,5 +2142,24 @@ public DeviceWarnings(string warningCode = default, string message = default) [DataMember(Name = "message", IsRequired = true, EmitDefaultValue = false)] public string Message { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } } diff --git a/output/csharp/src/Seam/Model/Event.cs b/output/csharp/src/Seam/Model/Event.cs index 000ba6d..96ec399 100644 --- a/output/csharp/src/Seam/Model/Event.cs +++ b/output/csharp/src/Seam/Model/Event.cs @@ -1,4 +1,5 @@ using System.Runtime.Serialization; +using System.Text; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; @@ -46,5 +47,24 @@ public Event( [DataMember(Name = "occurred_at", IsRequired = true, EmitDefaultValue = false)] public string OccurredAt { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } } diff --git a/output/csharp/src/Seam/Model/NoiseThreshold.cs b/output/csharp/src/Seam/Model/NoiseThreshold.cs index 873fa01..6f6ca43 100644 --- a/output/csharp/src/Seam/Model/NoiseThreshold.cs +++ b/output/csharp/src/Seam/Model/NoiseThreshold.cs @@ -1,4 +1,5 @@ using System.Runtime.Serialization; +using System.Text; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; @@ -51,5 +52,24 @@ public NoiseThreshold( [DataMember(Name = "noise_threshold_decibels", IsRequired = true, EmitDefaultValue = false)] public float NoiseThresholdDecibels { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } } diff --git a/output/csharp/src/Seam/Model/ServiceHealth.cs b/output/csharp/src/Seam/Model/ServiceHealth.cs index 1f3e234..bc4adf8 100644 --- a/output/csharp/src/Seam/Model/ServiceHealth.cs +++ b/output/csharp/src/Seam/Model/ServiceHealth.cs @@ -1,4 +1,5 @@ using System.Runtime.Serialization; +using System.Text; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; @@ -44,5 +45,24 @@ public enum StatusEnum [DataMember(Name = "description", IsRequired = true, EmitDefaultValue = false)] public string Description { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } } diff --git a/output/csharp/src/Seam/Model/UnmanagedDevice.cs b/output/csharp/src/Seam/Model/UnmanagedDevice.cs index 8084969..4c28e3a 100644 --- a/output/csharp/src/Seam/Model/UnmanagedDevice.cs +++ b/output/csharp/src/Seam/Model/UnmanagedDevice.cs @@ -1,4 +1,5 @@ using System.Runtime.Serialization; +using System.Text; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; @@ -176,6 +177,25 @@ public enum CapabilitiesSupportedEnum [DataMember(Name = "properties", IsRequired = true, EmitDefaultValue = false)] public UnmanagedDeviceProperties Properties { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } [DataContract(Name = "seamModel_unmanagedDeviceErrors_model")] @@ -195,6 +215,25 @@ public UnmanagedDeviceErrors(string errorCode = default, string message = defaul [DataMember(Name = "message", IsRequired = true, EmitDefaultValue = false)] public string Message { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } [DataContract(Name = "seamModel_unmanagedDeviceWarnings_model")] @@ -214,6 +253,25 @@ public UnmanagedDeviceWarnings(string warningCode = default, string message = de [DataMember(Name = "message", IsRequired = true, EmitDefaultValue = false)] public string Message { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } [DataContract(Name = "seamModel_unmanagedDeviceProperties_model")] @@ -256,6 +314,25 @@ public UnmanagedDeviceProperties( [DataMember(Name = "model", IsRequired = true, EmitDefaultValue = false)] public UnmanagedDevicePropertiesModel Model { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } [DataContract(Name = "seamModel_unmanagedDevicePropertiesModel_model")] @@ -282,5 +359,24 @@ public UnmanagedDevicePropertiesModel( EmitDefaultValue = false )] public string ManufacturerDisplayName { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } } diff --git a/output/csharp/src/Seam/Model/Webhook.cs b/output/csharp/src/Seam/Model/Webhook.cs index 7a57e22..3638444 100644 --- a/output/csharp/src/Seam/Model/Webhook.cs +++ b/output/csharp/src/Seam/Model/Webhook.cs @@ -1,4 +1,5 @@ using System.Runtime.Serialization; +using System.Text; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; @@ -36,5 +37,24 @@ public Webhook( [DataMember(Name = "secret", IsRequired = false, EmitDefaultValue = false)] public string? Secret { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } } diff --git a/output/csharp/src/Seam/Model/Workspace.cs b/output/csharp/src/Seam/Model/Workspace.cs index ba514ac..2677ada 100644 --- a/output/csharp/src/Seam/Model/Workspace.cs +++ b/output/csharp/src/Seam/Model/Workspace.cs @@ -1,4 +1,5 @@ using System.Runtime.Serialization; +using System.Text; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; @@ -36,5 +37,24 @@ public Workspace( [DataMember(Name = "connect_partner_name", IsRequired = false, EmitDefaultValue = false)] public string? ConnectPartnerName { get; set; } + + public override string ToString() + { + JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null); + + StringWriter stringWriter = new StringWriter( + new StringBuilder(256), + System.Globalization.CultureInfo.InvariantCulture + ); + using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) + { + jsonTextWriter.IndentChar = ' '; + jsonTextWriter.Indentation = 2; + jsonTextWriter.Formatting = Formatting.Indented; + jsonSerializer.Serialize(jsonTextWriter, this, null); + } + + return stringWriter.ToString(); + } } } diff --git a/package-lock.json b/package-lock.json index 64bdf8e..ea52243 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "version": "0.4.0", "license": "SEE LICENSE IN LICENSE.txt", "devDependencies": { - "@seamapi/nextlove-sdk-generator": "^1.2.1", + "@seamapi/nextlove-sdk-generator": "^1.3.2", "@types/node": "^18.11.18", "ava": "^5.0.1", "axios": "^1.5.0", @@ -737,9 +737,9 @@ } }, "node_modules/@seamapi/nextlove-sdk-generator": { - "version": "1.2.1", - "resolved": "https://npm.pkg.github.com/download/@seamapi/nextlove-sdk-generator/1.2.1/f9208bed6989e23fbe5279aac7a73d9ca8dac165", - "integrity": "sha512-zzNBiPImTixfU16exPYADck0ZWCD/PmJKrXJ12WXFGJ2QwwMU/nGWUdko7pM2otEX2JLQXouWyHFqn3TkSaEiQ==", + "version": "1.3.2", + "resolved": "https://npm.pkg.github.com/download/@seamapi/nextlove-sdk-generator/1.3.2/3fa516d777924a0b365f6fab25eda173a29f672a", + "integrity": "sha512-nEtlHbmRtWljAcHnhvpjQu+nVYvlF97jp7WWMeQpGiYAGqKT9XlNSppEWvLhd/Y7R9yjeJqczpoNtfxvVYGnRQ==", "dev": true, "license": "SEE LICENSE IN LICENSE.txt", "dependencies": { diff --git a/package.json b/package.json index 01f90c0..c9cd156 100644 --- a/package.json +++ b/package.json @@ -75,6 +75,6 @@ "tsc-alias": "^1.8.2", "tsx": "^3.12.1", "typescript": "^5.1.0", - "@seamapi/nextlove-sdk-generator": "^1.2.1" + "@seamapi/nextlove-sdk-generator": "^1.3.2" } }