Ejemplo n.º 1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="PatientResponse" /> class.
        /// </summary>
        /// <param name="id">ID of the patient (required).</param>
        /// <param name="title">Title of the patient.</param>
        /// <param name="firstName">First name of the patient (required).</param>
        /// <param name="lastName">Last name of the patient (required).</param>
        /// <param name="gender">Gender of the patient (Supported values: Female, Male, Other, Unknown).</param>
        /// <param name="dateOfBirth">Date of birth of the patient (required).</param>
        /// <param name="latestSessionId">The id of the latest session.</param>
        /// <param name="latestSessionUpdate">Date of the latest session update.</param>
        /// <param name="sessions">Assigned sessions of the patient.</param>
        /// <param name="createdAt">Date of creation of the patient.</param>
        /// <param name="updatedAt">Date of modification of the patient.</param>
        /// <param name="links">links.</param>
        public PatientResponse(string id = default(string), string title = default(string), string firstName = default(string), string lastName = default(string), GenderEnum?gender = default(GenderEnum?), DateTime?dateOfBirth = default(DateTime?), string latestSessionId = default(string), DateTime?latestSessionUpdate = default(DateTime?), List <Session> sessions = default(List <Session>), DateTime createdAt = default(DateTime), DateTime updatedAt = default(DateTime), PatientLink links = default(PatientLink))
        {
            // to ensure "id" is required (not null)
            if (id == null)
            {
                throw new InvalidDataException("id is a required property for PatientResponse and cannot be null");
            }
            else
            {
                this.Id = id;
            }

            // to ensure "firstName" is required (not null)
            if (firstName == null)
            {
                throw new InvalidDataException("firstName is a required property for PatientResponse and cannot be null");
            }
            else
            {
                this.FirstName = firstName;
            }

            // to ensure "lastName" is required (not null)
            if (lastName == null)
            {
                throw new InvalidDataException("lastName is a required property for PatientResponse and cannot be null");
            }
            else
            {
                this.LastName = lastName;
            }

            // to ensure "dateOfBirth" is required (not null)
            if (dateOfBirth == null)
            {
                throw new InvalidDataException("dateOfBirth is a required property for PatientResponse and cannot be null");
            }
            else
            {
                this.DateOfBirth = dateOfBirth;
            }

            this.DateOfBirth         = dateOfBirth;
            this.LatestSessionUpdate = latestSessionUpdate;
            this.Title               = title;
            this.Gender              = gender;
            this.LatestSessionId     = latestSessionId;
            this.LatestSessionUpdate = latestSessionUpdate;
            this.Sessions            = sessions;
            this.CreatedAt           = createdAt;
            this.UpdatedAt           = updatedAt;
            this.Links               = links;
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="PatientResponseAllOf" /> class.
 /// </summary>
 /// <param name="links">links.</param>
 public PatientResponseAllOf(PatientLink links = default(PatientLink))
 {
     this.Links = links;
 }