/// <summary> /// Initializes a new instance of the <see cref="UserProfile" /> class. /// </summary> /// <param name="Name">Name.</param> /// <param name="State">The state of the user resource.</param> /// <param name="Version">The version of the group resource (required).</param> /// <param name="Expands">User information expansions.</param> public UserProfile(string Name = null, StateEnum?State = null, long?Version = null, UserExpands Expands = null) { this.Name = Name; this.State = State; this.Version = Version; this.Expands = Expands; }
/// <summary> /// Initializes a new instance of the <see cref="UserProfile" /> class. /// </summary> /// <param name="Name">Name.</param> /// <param name="State">The state of the user resource.</param> /// <param name="Version">The version of the group resource (required).</param> /// <param name="Expands">User information expansions.</param> public UserProfile(string Name = null, StateEnum?State = null, long?Version = null, UserExpands Expands = null) { // to ensure "Version" is required (not null) if (Version == null) { throw new InvalidDataException("Version is a required property for UserProfile and cannot be null"); } else { this.Version = Version; } this.Name = Name; this.State = State; this.Expands = Expands; }