/// <summary>
 /// Initializes a new instance of the <see cref="SubscriptionRequest" /> class.
 /// </summary>
 /// <param name="sourceType">sourceType (required).</param>
 /// <param name="device">device.</param>
 /// <param name="capability">capability.</param>
 /// <param name="mode">mode.</param>
 /// <param name="deviceLifecycle">deviceLifecycle.</param>
 /// <param name="deviceHealth">deviceHealth.</param>
 /// <param name="securityArmState">securityArmState.</param>
 /// <param name="hubHealth">hubHealth.</param>
 /// <param name="sceneLifecycle">sceneLifecycle.</param>
 public SubscriptionRequest(SubscriptionSource sourceType = default(SubscriptionSource), DeviceSubscriptionDetail device = default(DeviceSubscriptionDetail), CapabilitySubscriptionDetail capability = default(CapabilitySubscriptionDetail), ModeSubscriptionDetail mode = default(ModeSubscriptionDetail), DeviceLifecycleDetail deviceLifecycle = default(DeviceLifecycleDetail), DeviceHealthDetail deviceHealth = default(DeviceHealthDetail), SecurityArmStateDetail securityArmState = default(SecurityArmStateDetail), HubHealthDetail hubHealth = default(HubHealthDetail), SceneLifecycleDetail sceneLifecycle = default(SceneLifecycleDetail))
 {
     this.SourceType       = sourceType;
     this.Device           = device;
     this.Capability       = capability;
     this.Mode             = mode;
     this.DeviceLifecycle  = deviceLifecycle;
     this.DeviceHealth     = deviceHealth;
     this.SecurityArmState = securityArmState;
     this.HubHealth        = hubHealth;
     this.SceneLifecycle   = sceneLifecycle;
 }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Subscription" /> class.
 /// </summary>
 /// <param name="id">The id of the subscription..</param>
 /// <param name="installedAppId">The id of the subscribing app..</param>
 /// <param name="sourceType">sourceType.</param>
 /// <param name="device">device.</param>
 /// <param name="capability">capability.</param>
 /// <param name="mode">mode.</param>
 /// <param name="deviceLifecycle">deviceLifecycle.</param>
 /// <param name="deviceHealth">deviceHealth.</param>
 /// <param name="securityArmState">securityArmState.</param>
 /// <param name="hubHealth">hubHealth.</param>
 /// <param name="sceneLifecycle">sceneLifecycle.</param>
 public Subscription(string id = default(string), string installedAppId = default(string), SubscriptionSource?sourceType = default(SubscriptionSource?), DeviceSubscriptionDetail device = default(DeviceSubscriptionDetail), CapabilitySubscriptionDetail capability = default(CapabilitySubscriptionDetail), ModeSubscriptionDetail mode = default(ModeSubscriptionDetail), DeviceLifecycleDetail deviceLifecycle = default(DeviceLifecycleDetail), DeviceHealthDetail deviceHealth = default(DeviceHealthDetail), SecurityArmStateDetail securityArmState = default(SecurityArmStateDetail), HubHealthDetail hubHealth = default(HubHealthDetail), SceneLifecycleDetail sceneLifecycle = default(SceneLifecycleDetail))
 {
     this.Id               = id;
     this.InstalledAppId   = installedAppId;
     this.SourceType       = sourceType;
     this.Device           = device;
     this.Capability       = capability;
     this.Mode             = mode;
     this.DeviceLifecycle  = deviceLifecycle;
     this.DeviceHealth     = deviceHealth;
     this.SecurityArmState = securityArmState;
     this.HubHealth        = hubHealth;
     this.SceneLifecycle   = sceneLifecycle;
 }