/// <summary> /// Initializes a new instance of the <see cref="Action" /> class. /// </summary> /// <param name="name">name.</param> /// <param name="user">user (required).</param> /// <param name="contentType">contentType (required).</param> /// <param name="objectPk">objectPk.</param> /// <param name="appLabel">appLabel.</param> /// <param name="modelName">modelName.</param> /// <param name="objectStr">objectStr.</param> public Action(string name = default(string), ProjectDetailOwnersData user = default(ProjectDetailOwnersData), int contentType = default(int), string objectPk = default(string), string appLabel = default(string), string modelName = default(string), string objectStr = default(string)) { // to ensure "user" is required (not null) if (user == null) { throw new InvalidDataException("user is a required property for Action and cannot be null"); } else { this.User = user; } // to ensure "contentType" is required (not null) if (contentType == null) { throw new InvalidDataException("contentType is a required property for Action and cannot be null"); } else { this.ContentType = contentType; } this.ObjectPk = objectPk; this.AppLabel = appLabel; this.ModelName = modelName; this.ObjectStr = objectStr; this.Name = name; this.ObjectPk = objectPk; this.AppLabel = appLabel; this.ModelName = modelName; this.ObjectStr = objectStr; }
/// <summary> /// Initializes a new instance of the <see cref="VerifyAuthTokenResponse" /> class. /// </summary> /// <param name="key">key (required).</param> /// <param name="userName">userName (required).</param> /// <param name="releaseVersion">releaseVersion (required).</param> /// <param name="user">user (required).</param> public VerifyAuthTokenResponse(string key = default(string), string userName = default(string), string releaseVersion = default(string), ProjectDetailOwnersData user = default(ProjectDetailOwnersData)) { // to ensure "key" is required (not null) if (key == null) { throw new InvalidDataException("key is a required property for VerifyAuthTokenResponse and cannot be null"); } else { this.Key = key; } // to ensure "userName" is required (not null) if (userName == null) { throw new InvalidDataException("userName is a required property for VerifyAuthTokenResponse and cannot be null"); } else { this.UserName = userName; } // to ensure "releaseVersion" is required (not null) if (releaseVersion == null) { throw new InvalidDataException("releaseVersion is a required property for VerifyAuthTokenResponse and cannot be null"); } else { this.ReleaseVersion = releaseVersion; } // to ensure "user" is required (not null) if (user == null) { throw new InvalidDataException("user is a required property for VerifyAuthTokenResponse and cannot be null"); } else { this.User = user; } }