diff --git a/OmniCore.sln b/OmniCore.sln index 1417780..eed627f 100644 --- a/OmniCore.sln +++ b/OmniCore.sln @@ -2,7 +2,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio 14 VisualStudioVersion = 14.0.25420.1 MinimumVisualStudioVersion = 10.0.40219.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OmniCore", "src\OmniCore\OmniCore.csproj", "{D6F633DB-9FF1-4234-B597-C2706EFBAD1E}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OmniCore", "src\OmniCore\OmniCore.csproj", "{83F2333F-BB13-471F-A629-61AF47019436}" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OmniCore.Test", "src\OmniCore.Test\OmniCore.Test.csproj", "{19F1DEBC-DE5E-4517-8062-F000CD499087}" EndProject @@ -12,10 +12,10 @@ Global Release|Any CPU = Release|Any CPU EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution - {D6F633DB-9FF1-4234-B597-C2706EFBAD1E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {D6F633DB-9FF1-4234-B597-C2706EFBAD1E}.Debug|Any CPU.Build.0 = Debug|Any CPU - {D6F633DB-9FF1-4234-B597-C2706EFBAD1E}.Release|Any CPU.ActiveCfg = Release|Any CPU - {D6F633DB-9FF1-4234-B597-C2706EFBAD1E}.Release|Any CPU.Build.0 = Release|Any CPU + {83F2333F-BB13-471F-A629-61AF47019436}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {83F2333F-BB13-471F-A629-61AF47019436}.Debug|Any CPU.Build.0 = Debug|Any CPU + {83F2333F-BB13-471F-A629-61AF47019436}.Release|Any CPU.ActiveCfg = Release|Any CPU + {83F2333F-BB13-471F-A629-61AF47019436}.Release|Any CPU.Build.0 = Release|Any CPU {19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.Build.0 = Debug|Any CPU {19F1DEBC-DE5E-4517-8062-F000CD499087}.Release|Any CPU.ActiveCfg = Release|Any CPU diff --git a/docs/EventNotificationConfig.md b/docs/EventNotificationConfig.md index 44ba0da..bf197db 100644 --- a/docs/EventNotificationConfig.md +++ b/docs/EventNotificationConfig.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **PubsubTopicName** | **string** | PubsubTopicName: A Topic name. For example, `projects/myProject/topics/deviceEvents`. | [optional] -**IsGcpPubSub** | [**Bool**](Bool.md) | Describe whether the topic is Gcp pubsub topic or Omni topic | [optional] +**IsGcpPubSub** | **bool** | Describe whether the topic is Gcp pubsub topic or Omni topic | [optional] **SubfolderMatches** | **string** | SubfolderMatches: If the subfolder name matches this string exactly, this configuration will be used. The string must not include the leading '/' character. If empty, all strings are matched. This field is used only for telemetry events; subfolders are not supported for state changes. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/NotificationConfig.md b/docs/NotificationConfig.md index a9f0aa1..eb6a138 100644 --- a/docs/NotificationConfig.md +++ b/docs/NotificationConfig.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **PubsubTopicName** | **string** | PubsubTopicName: A Topic name. For example, `projects/myProject/topics/deviceEvents`. | [optional] -**IsGcpPubSub** | [**Bool**](Bool.md) | Describe whether the topic is Gcp pubsub topic or Omni topic | [optional] +**IsGcpPubSub** | **bool** | Describe whether the topic is Gcp pubsub topic or Omni topic | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/src/OmniCore/Model/EventNotificationConfig.cs b/src/OmniCore/Model/EventNotificationConfig.cs index 641a71d..335ae79 100644 --- a/src/OmniCore/Model/EventNotificationConfig.cs +++ b/src/OmniCore/Model/EventNotificationConfig.cs @@ -38,7 +38,7 @@ public partial class EventNotificationConfig : IEquatablePubsubTopicName: A Topic name. For example, `projects/myProject/topics/deviceEvents`.. /// Describe whether the topic is Gcp pubsub topic or Omni topic. /// SubfolderMatches: If the subfolder name matches this string exactly, this configuration will be used. The string must not include the leading '/' character. If empty, all strings are matched. This field is used only for telemetry events; subfolders are not supported for state changes.. - public EventNotificationConfig(string pubsubTopicName = default(string), Bool isGcpPubSub = default(Bool), string subfolderMatches = default(string)) + public EventNotificationConfig(string pubsubTopicName = default(string), bool isGcpPubSub = default(bool), string subfolderMatches = default(string)) { this.PubsubTopicName = pubsubTopicName; this.IsGcpPubSub = isGcpPubSub; @@ -56,8 +56,8 @@ public partial class EventNotificationConfig : IEquatable /// Describe whether the topic is Gcp pubsub topic or Omni topic - [DataMember(Name = "isGcpPubSub", EmitDefaultValue = false)] - public Bool IsGcpPubSub { get; set; } + [DataMember(Name = "isGcpPubSub", EmitDefaultValue = true)] + public bool IsGcpPubSub { get; set; } /// /// SubfolderMatches: If the subfolder name matches this string exactly, this configuration will be used. The string must not include the leading '/' character. If empty, all strings are matched. This field is used only for telemetry events; subfolders are not supported for state changes. @@ -119,8 +119,7 @@ public bool Equals(EventNotificationConfig input) ) && ( this.IsGcpPubSub == input.IsGcpPubSub || - (this.IsGcpPubSub != null && - this.IsGcpPubSub.Equals(input.IsGcpPubSub)) + this.IsGcpPubSub.Equals(input.IsGcpPubSub) ) && ( this.SubfolderMatches == input.SubfolderMatches || @@ -142,10 +141,7 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.PubsubTopicName.GetHashCode(); } - if (this.IsGcpPubSub != null) - { - hashCode = (hashCode * 59) + this.IsGcpPubSub.GetHashCode(); - } + hashCode = (hashCode * 59) + this.IsGcpPubSub.GetHashCode(); if (this.SubfolderMatches != null) { hashCode = (hashCode * 59) + this.SubfolderMatches.GetHashCode(); diff --git a/src/OmniCore/Model/NotificationConfig.cs b/src/OmniCore/Model/NotificationConfig.cs index 035bf54..1992e63 100644 --- a/src/OmniCore/Model/NotificationConfig.cs +++ b/src/OmniCore/Model/NotificationConfig.cs @@ -37,7 +37,7 @@ public partial class NotificationConfig : IEquatable, IValid /// /// PubsubTopicName: A Topic name. For example, `projects/myProject/topics/deviceEvents`.. /// Describe whether the topic is Gcp pubsub topic or Omni topic. - public NotificationConfig(string pubsubTopicName = default(string), Bool isGcpPubSub = default(Bool)) + public NotificationConfig(string pubsubTopicName = default(string), bool isGcpPubSub = default(bool)) { this.PubsubTopicName = pubsubTopicName; this.IsGcpPubSub = isGcpPubSub; @@ -54,8 +54,8 @@ public partial class NotificationConfig : IEquatable, IValid /// Describe whether the topic is Gcp pubsub topic or Omni topic /// /// Describe whether the topic is Gcp pubsub topic or Omni topic - [DataMember(Name = "isGcpPubSub", EmitDefaultValue = false)] - public Bool IsGcpPubSub { get; set; } + [DataMember(Name = "isGcpPubSub", EmitDefaultValue = true)] + public bool IsGcpPubSub { get; set; } /// /// Returns the string presentation of the object @@ -109,8 +109,7 @@ public bool Equals(NotificationConfig input) ) && ( this.IsGcpPubSub == input.IsGcpPubSub || - (this.IsGcpPubSub != null && - this.IsGcpPubSub.Equals(input.IsGcpPubSub)) + this.IsGcpPubSub.Equals(input.IsGcpPubSub) ); } @@ -127,10 +126,7 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.PubsubTopicName.GetHashCode(); } - if (this.IsGcpPubSub != null) - { - hashCode = (hashCode * 59) + this.IsGcpPubSub.GetHashCode(); - } + hashCode = (hashCode * 59) + this.IsGcpPubSub.GetHashCode(); return hashCode; } }