/// <summary> /// Initializes a new instance of the <see cref="AlienLoginResult" /> class. /// </summary> /// <param name="Cred">Cred (required).</param> /// <param name="Solution"> (required).</param> /// <param name="Hdr">Hdr (required).</param> /// <param name="User">User (required).</param> /// <param name="CopyEmailSuffix"> (required).</param> public AlienLoginResult(SessionCredentialRecord Cred = null, string Solution = null, ResponseHeaderRecord Hdr = null, DisplayRecord User = null, string CopyEmailSuffix = null) { // to ensure "Cred" is required (not null) if (Cred == null) { throw new InvalidDataException("Cred is a required property for AlienLoginResult and cannot be null"); } else { this.Cred = Cred; } // to ensure "Solution" is required (not null) if (Solution == null) { throw new InvalidDataException("Solution is a required property for AlienLoginResult and cannot be null"); } else { this.Solution = Solution; } // to ensure "Hdr" is required (not null) if (Hdr == null) { throw new InvalidDataException("Hdr is a required property for AlienLoginResult and cannot be null"); } else { this.Hdr = Hdr; } // to ensure "User" is required (not null) if (User == null) { throw new InvalidDataException("User is a required property for AlienLoginResult and cannot be null"); } else { this.User = User; } // to ensure "CopyEmailSuffix" is required (not null) if (CopyEmailSuffix == null) { throw new InvalidDataException("CopyEmailSuffix is a required property for AlienLoginResult and cannot be null"); } else { this.CopyEmailSuffix = CopyEmailSuffix; } }
/// <summary> /// Initializes a new instance of the <see cref="LoginResult" /> class. /// </summary> /// <param name="Cred">Cred (required).</param> /// <param name="WelcomeChatKey"> (required).</param> /// <param name="Landing">Landing (required).</param> /// <param name="Solution"> (required).</param> /// <param name="FirstLogin">first login or not. (required).</param> /// <param name="RestrictionFlag">Contact restrict or not (required).</param> /// <param name="LandingPage"> (required).</param> /// <param name="Hdr">Hdr (required).</param> /// <param name="User">User (required).</param> /// <param name="CopyEmailSuffix"> (required).</param> /// <param name="TaskZoneFlag"> (required).</param> public LoginResult(SessionCredentialRecord Cred = null, string WelcomeChatKey = null, Record Landing = null, string Solution = null, bool?FirstLogin = null, int?RestrictionFlag = null, string LandingPage = null, ResponseHeaderRecord Hdr = null, UserObjectRecord User = null, string CopyEmailSuffix = null, bool?TaskZoneFlag = null) { // to ensure "Cred" is required (not null) if (Cred == null) { throw new InvalidDataException("Cred is a required property for LoginResult and cannot be null"); } else { this.Cred = Cred; } // to ensure "WelcomeChatKey" is required (not null) if (WelcomeChatKey == null) { throw new InvalidDataException("WelcomeChatKey is a required property for LoginResult and cannot be null"); } else { this.WelcomeChatKey = WelcomeChatKey; } // to ensure "Landing" is required (not null) if (Landing == null) { throw new InvalidDataException("Landing is a required property for LoginResult and cannot be null"); } else { this.Landing = Landing; } // to ensure "Solution" is required (not null) if (Solution == null) { throw new InvalidDataException("Solution is a required property for LoginResult and cannot be null"); } else { this.Solution = Solution; } // to ensure "FirstLogin" is required (not null) if (FirstLogin == null) { throw new InvalidDataException("FirstLogin is a required property for LoginResult and cannot be null"); } else { this.FirstLogin = FirstLogin; } // to ensure "RestrictionFlag" is required (not null) if (RestrictionFlag == null) { throw new InvalidDataException("RestrictionFlag is a required property for LoginResult and cannot be null"); } else { this.RestrictionFlag = RestrictionFlag; } // to ensure "LandingPage" is required (not null) if (LandingPage == null) { throw new InvalidDataException("LandingPage is a required property for LoginResult and cannot be null"); } else { this.LandingPage = LandingPage; } // to ensure "Hdr" is required (not null) if (Hdr == null) { throw new InvalidDataException("Hdr is a required property for LoginResult and cannot be null"); } else { this.Hdr = Hdr; } // to ensure "User" is required (not null) if (User == null) { throw new InvalidDataException("User is a required property for LoginResult and cannot be null"); } else { this.User = User; } // to ensure "CopyEmailSuffix" is required (not null) if (CopyEmailSuffix == null) { throw new InvalidDataException("CopyEmailSuffix is a required property for LoginResult and cannot be null"); } else { this.CopyEmailSuffix = CopyEmailSuffix; } // to ensure "TaskZoneFlag" is required (not null) if (TaskZoneFlag == null) { throw new InvalidDataException("TaskZoneFlag is a required property for LoginResult and cannot be null"); } else { this.TaskZoneFlag = TaskZoneFlag; } }