/// <summary> /// Initializes a new instance of the <see cref="Isa" /> class. /// </summary> /// <param name="pageType">Possible values - __requiresLogin__ or __loggedIn__. These two values determine what fields are returned in this response. If value is \"requiresLogin\", only \"oAuthLink\" is returned in the response. If value is \"loggedIn\", only isaId, partnerName, appName, devices and icons are returned..</param> /// <param name="isaId">isaId (Installed App Id).</param> /// <param name="endpointAppId">endpoint app id of the installed smart app.</param> /// <param name="partnerName">partner or brand name eg LIFX Inc..</param> /// <param name="appName">Connector name. eg Lifx (Connect).</param> /// <param name="icon">url of partner icon.</param> /// <param name="icon2x">url of partner icon in 2x dimensions.</param> /// <param name="icon3x">url of partner icon in 3x dimensions.</param> /// <param name="locationId">location of the installed smart app.</param> /// <param name="devices">devices.</param> /// <param name="oAuthLink">generated oAuth link for the user to login to partner server. This will only be returned when the user is not logged in..</param> /// <param name="viperAppLinks">viperAppLinks.</param> /// <param name="partnerSTConnection">connection status between partner and ST platform.</param> public Isa(string pageType = default(string), string isaId = default(string), string endpointAppId = default(string), string partnerName = default(string), string appName = default(string), string icon = default(string), string icon2x = default(string), string icon3x = default(string), string locationId = default(string), List <DeviceResults> devices = default(List <DeviceResults>), string oAuthLink = default(string), ViperAppLinks viperAppLinks = default(ViperAppLinks), PartnerSTConnectionEnum?partnerSTConnection = default(PartnerSTConnectionEnum?)) { this.PageType = pageType; this.IsaId = isaId; this.EndpointAppId = endpointAppId; this.PartnerName = partnerName; this.AppName = appName; this.Icon = icon; this.Icon2x = icon2x; this.Icon3x = icon3x; this.LocationId = locationId; this.Devices = devices; this.OAuthLink = oAuthLink; this.ViperAppLinks = viperAppLinks; this.PartnerSTConnection = partnerSTConnection; }
/// <summary> /// Initializes a new instance of the <see cref="PostEndpointApp" /> class. /// </summary> /// <param name="appName">The name of the SmartThings Schema App.</param> /// <param name="partnerName">The name of the partner/brand (required).</param> /// <param name="oAuthAuthorizationUrl">oAuth authorization url of the partner (required).</param> /// <param name="lambdaArn">lambda arn of the partner for US region (default).</param> /// <param name="lambdaArnEU">lambda arn of the partner for EU region.</param> /// <param name="lambdaArnAP">lambda arn of the partner for AP region.</param> /// <param name="lambdaArnCN">lambda arn of the partner for CN region.</param> /// <param name="icon">url of partner icon.</param> /// <param name="icon2x">url of partner icon in 2x dimensions.</param> /// <param name="icon3x">url of partner icon in 3x dimensions.</param> /// <param name="endpointAppId">SmartThings Schema App id for the partner.</param> /// <param name="oAuthClientId">Client id for the partner oAuth (required).</param> /// <param name="oAuthClientSecret">Client secret for the partner oAuth (required).</param> /// <param name="oAuthTokenUrl">oAuth token refresh url of the partner (required).</param> /// <param name="oAuthScope">oAuth scope for the partner. Example \"remote_control:all\" for Lifx.</param> /// <param name="userId">user id for the partner.</param> /// <param name="hostingType">Possible values - \"lambda\" or \"webhook\" (required).</param> /// <param name="schemaType">Possible values - \"alexa-schema\", \"st-schema\", \"google-schema\".</param> /// <param name="webhookUrl">webhook url for the partner.</param> /// <param name="certificationStatus">Possible values - \"\", \"cst\", \"wwst\", \"review\".</param> /// <param name="userEmail">Email for the partner.</param> /// <param name="viperAppLinks">viperAppLinks.</param> public PostEndpointApp(string appName = default(string), string partnerName = default(string), string oAuthAuthorizationUrl = default(string), string lambdaArn = default(string), string lambdaArnEU = default(string), string lambdaArnAP = default(string), string lambdaArnCN = default(string), string icon = default(string), string icon2x = default(string), string icon3x = default(string), string endpointAppId = default(string), string oAuthClientId = default(string), string oAuthClientSecret = default(string), string oAuthTokenUrl = default(string), string oAuthScope = default(string), string userId = default(string), string hostingType = default(string), string schemaType = default(string), string webhookUrl = default(string), string certificationStatus = default(string), string userEmail = default(string), ViperAppLinks viperAppLinks = default(ViperAppLinks)) { // to ensure "partnerName" is required (not null) if (partnerName == null) { throw new ArgumentNullException("partnerName is a required property for PostEndpointApp and cannot be null"); } this.PartnerName = partnerName; // to ensure "oAuthAuthorizationUrl" is required (not null) if (oAuthAuthorizationUrl == null) { throw new ArgumentNullException("oAuthAuthorizationUrl is a required property for PostEndpointApp and cannot be null"); } this.OAuthAuthorizationUrl = oAuthAuthorizationUrl; // to ensure "oAuthClientId" is required (not null) if (oAuthClientId == null) { throw new ArgumentNullException("oAuthClientId is a required property for PostEndpointApp and cannot be null"); } this.OAuthClientId = oAuthClientId; // to ensure "oAuthClientSecret" is required (not null) if (oAuthClientSecret == null) { throw new ArgumentNullException("oAuthClientSecret is a required property for PostEndpointApp and cannot be null"); } this.OAuthClientSecret = oAuthClientSecret; // to ensure "oAuthTokenUrl" is required (not null) if (oAuthTokenUrl == null) { throw new ArgumentNullException("oAuthTokenUrl is a required property for PostEndpointApp and cannot be null"); } this.OAuthTokenUrl = oAuthTokenUrl; // to ensure "hostingType" is required (not null) if (hostingType == null) { throw new ArgumentNullException("hostingType is a required property for PostEndpointApp and cannot be null"); } this.HostingType = hostingType; this.AppName = appName; this.LambdaArn = lambdaArn; this.LambdaArnEU = lambdaArnEU; this.LambdaArnAP = lambdaArnAP; this.LambdaArnCN = lambdaArnCN; this.Icon = icon; this.Icon2x = icon2x; this.Icon3x = icon3x; this.EndpointAppId = endpointAppId; this.OAuthScope = oAuthScope; this.UserId = userId; this.SchemaType = schemaType; this.WebhookUrl = webhookUrl; this.CertificationStatus = certificationStatus; this.UserEmail = userEmail; this.ViperAppLinks = viperAppLinks; }
/// <summary> /// Initializes a new instance of the <see cref="EndpointApp" /> class. /// </summary> /// <param name="appName">The name of the SmartThings Schema App.</param> /// <param name="partnerName">The name of the partner/brand.</param> /// <param name="oAuthAuthorizationUrl">oAuth authorization url of the partner.</param> /// <param name="lambdaArn">lambda arn of the partner for US region (default).</param> /// <param name="lambdaArnEU">lambda arn of the partner for EU region.</param> /// <param name="lambdaArnAP">lambda arn of the partner for AP region.</param> /// <param name="lambdaArnCN">lambda arn of the partner for CN region.</param> /// <param name="icon">url of partner icon.</param> /// <param name="icon2x">url of partner icon in 2x dimensions.</param> /// <param name="icon3x">url of partner icon in 3x dimensions.</param> /// <param name="endpointAppId">endpoint app id for the partner.</param> /// <param name="oAuthClientId">Client id for the partner oAuth.</param> /// <param name="oAuthClientSecret">Client secret for the partner oAuth.</param> /// <param name="oAuthTokenUrl">oAuth token refresh url of the partner.</param> /// <param name="oAuthScope">oAuth scope for the partner. Example \"remote_control:all\" for Lifx.</param> /// <param name="userId">user id for the partner.</param> /// <param name="hostingType">Possible values - \"lambda\" or \"webhook\".</param> /// <param name="schemaType">Possible values - \"alexa-schema\", \"st-schema\", \"google-schema\".</param> /// <param name="webhookUrl">webhook url for the partner.</param> /// <param name="certificationStatus">Possible values - \"\", \"cst\", \"wwst\", \"review\".</param> /// <param name="userEmail">Email for the partner.</param> /// <param name="viperAppLinks">viperAppLinks.</param> public EndpointApp(string appName = default(string), string partnerName = default(string), string oAuthAuthorizationUrl = default(string), string lambdaArn = default(string), string lambdaArnEU = default(string), string lambdaArnAP = default(string), string lambdaArnCN = default(string), string icon = default(string), string icon2x = default(string), string icon3x = default(string), string endpointAppId = default(string), string oAuthClientId = default(string), string oAuthClientSecret = default(string), string oAuthTokenUrl = default(string), string oAuthScope = default(string), string userId = default(string), string hostingType = default(string), string schemaType = default(string), string webhookUrl = default(string), string certificationStatus = default(string), string userEmail = default(string), ViperAppLinks viperAppLinks = default(ViperAppLinks)) { this.AppName = appName; this.PartnerName = partnerName; this.OAuthAuthorizationUrl = oAuthAuthorizationUrl; this.LambdaArn = lambdaArn; this.LambdaArnEU = lambdaArnEU; this.LambdaArnAP = lambdaArnAP; this.LambdaArnCN = lambdaArnCN; this.Icon = icon; this.Icon2x = icon2x; this.Icon3x = icon3x; this.EndpointAppId = endpointAppId; this.OAuthClientId = oAuthClientId; this.OAuthClientSecret = oAuthClientSecret; this.OAuthTokenUrl = oAuthTokenUrl; this.OAuthScope = oAuthScope; this.UserId = userId; this.HostingType = hostingType; this.SchemaType = schemaType; this.WebhookUrl = webhookUrl; this.CertificationStatus = certificationStatus; this.UserEmail = userEmail; this.ViperAppLinks = viperAppLinks; }