Exemple #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="SessionResponse" /> class.
        /// </summary>
        /// <param name="id">ID of the session (required).</param>
        /// <param name="externalId">External ID of the session, which is assigned to the session in a 3rd party application.</param>
        /// <param name="name">Name of the session.</param>
        /// <param name="notes">Notes of the session.</param>
        /// <param name="state">State of the session. (Supported values: OPEN, CLOSED, ORDERED, EXPORTED, SAVED).</param>
        /// <param name="patientId">Patient ID associated with the session.</param>
        /// <param name="patient">patient.</param>
        /// <param name="b2bOptic">b2bOptic.</param>
        /// <param name="createdAt">Date of creation of the session.</param>
        /// <param name="updatedAt">Date of modification of the session.</param>
        /// <param name="links">links.</param>
        public SessionResponse(string id = default(string), string externalId = default(string), string name = default(string), string notes = default(string), StateEnum?state = default(StateEnum?), string patientId = default(string), Patient patient = default(Patient), B2BOptic b2bOptic = default(B2BOptic), DateTime createdAt = default(DateTime), DateTime updatedAt = default(DateTime), SessionLink links = default(SessionLink))
        {
            // to ensure "id" is required (not null)
            if (id == null)
            {
                throw new InvalidDataException("id is a required property for SessionResponse and cannot be null");
            }
            else
            {
                this.Id = id;
            }

            this.ExternalId = externalId;
            this.Name       = name;
            this.Notes      = notes;
            this.State      = state;
            this.PatientId  = patientId;
            this.Patient    = patient;
            this.B2bOptic   = b2bOptic;
            this.CreatedAt  = createdAt;
            this.UpdatedAt  = updatedAt;
            this.Links      = links;
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="SessionResponseAllOf" /> class.
 /// </summary>
 /// <param name="links">links.</param>
 public SessionResponseAllOf(SessionLink links = default(SessionLink))
 {
     this.Links = links;
 }