Skip to content

Commit

Permalink
hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
shehzad-kore committed May 12, 2023
1 parent bb472c6 commit 5215c95
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 25 deletions.
10 changes: 5 additions & 5 deletions OmniCore.sln
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion docs/EventNotificationConfig.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion docs/NotificationConfig.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

14 changes: 5 additions & 9 deletions src/OmniCore/Model/EventNotificationConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public partial class EventNotificationConfig : IEquatable<EventNotificationConfi
/// <param name="pubsubTopicName">PubsubTopicName: A Topic name. For example, &#x60;projects/myProject/topics/deviceEvents&#x60;..</param>
/// <param name="isGcpPubSub">Describe whether the topic is Gcp pubsub topic or Omni topic.</param>
/// <param name="subfolderMatches">SubfolderMatches: If the subfolder name matches this string exactly, this configuration will be used. The string must not include the leading &#39;/&#39; character. If empty, all strings are matched. This field is used only for telemetry events; subfolders are not supported for state changes..</param>
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;
Expand All @@ -56,8 +56,8 @@ public partial class EventNotificationConfig : IEquatable<EventNotificationConfi
/// Describe whether the topic is Gcp pubsub topic or Omni topic
/// </summary>
/// <value>Describe whether the topic is Gcp pubsub topic or Omni topic</value>
[DataMember(Name = "isGcpPubSub", EmitDefaultValue = false)]
public Bool IsGcpPubSub { get; set; }
[DataMember(Name = "isGcpPubSub", EmitDefaultValue = true)]
public bool IsGcpPubSub { get; set; }

/// <summary>
/// SubfolderMatches: If the subfolder name matches this string exactly, this configuration will be used. The string must not include the leading &#39;/&#39; character. If empty, all strings are matched. This field is used only for telemetry events; subfolders are not supported for state changes.
Expand Down Expand Up @@ -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 ||
Expand All @@ -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();
Expand Down
14 changes: 5 additions & 9 deletions src/OmniCore/Model/NotificationConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public partial class NotificationConfig : IEquatable<NotificationConfig>, IValid
/// </summary>
/// <param name="pubsubTopicName">PubsubTopicName: A Topic name. For example, &#x60;projects/myProject/topics/deviceEvents&#x60;..</param>
/// <param name="isGcpPubSub">Describe whether the topic is Gcp pubsub topic or Omni topic.</param>
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;
Expand All @@ -54,8 +54,8 @@ public partial class NotificationConfig : IEquatable<NotificationConfig>, IValid
/// Describe whether the topic is Gcp pubsub topic or Omni topic
/// </summary>
/// <value>Describe whether the topic is Gcp pubsub topic or Omni topic</value>
[DataMember(Name = "isGcpPubSub", EmitDefaultValue = false)]
public Bool IsGcpPubSub { get; set; }
[DataMember(Name = "isGcpPubSub", EmitDefaultValue = true)]
public bool IsGcpPubSub { get; set; }

/// <summary>
/// Returns the string presentation of the object
Expand Down Expand Up @@ -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)
);
}

Expand All @@ -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;
}
}
Expand Down

0 comments on commit 5215c95

Please sign in to comment.