Beispiel #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ContactLogInformation" /> class.
 /// </summary>
 /// <param name="type">type (required).</param>
 /// <param name="when">when.</param>
 /// <param name="who">who.</param>
 /// <param name="details">details.</param>
 public ContactLogInformation(TypeEnum type = default(TypeEnum), DateTime when = default(DateTime), Dictionary <string, Identifier> who = default(Dictionary <string, Identifier>), ContactLogInformationDetails details = default(ContactLogInformationDetails))
 {
     this.Type    = type;
     this.When    = when;
     this.Who     = who;
     this.Details = details;
 }
        /// <summary>
        /// Initializes a new instance of the <see cref="ContactLogInformation" /> class.
        /// </summary>
        /// <param name="type">type (required).</param>
        /// <param name="when">when.</param>
        /// <param name="who">who.</param>
        /// <param name="details">details.</param>
        public ContactLogInformation(TypeEnum type = default(TypeEnum), DateTime when = default(DateTime), Dictionary <string, Identifier> who = default(Dictionary <string, Identifier>), ContactLogInformationDetails details = default(ContactLogInformationDetails))
        {
            // to ensure "type" is required (not null)
            if (type == null)
            {
                throw new InvalidDataException("type is a required property for ContactLogInformation and cannot be null");
            }
            else
            {
                this.Type = type;
            }

            this.When    = when;
            this.Who     = who;
            this.Details = details;
        }