Example #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="LocationContact"/> class.
        /// </summary>
        /// <param name="locationContactType">Type of the location contact.</param>
        /// <param name="contactStaff">The contact staff.</param>
        /// <param name="effectiveDateRange">The effective date range.</param>
        /// <param name="statusIndicator">If set to <c>true</c> [status indicator].</param>
        /// <param name="alternativeContactIndicator">If set to <c>true</c> [alternative contact indicator].</param>
        protected internal LocationContact(
            LocationContactType locationContactType,
            Staff contactStaff,
            DateRange effectiveDateRange,
            bool statusIndicator,
            bool alternativeContactIndicator)
        {
            Check.IsNotNull(locationContactType, () => LocationContactType);
            Check.IsNotNull(contactStaff, () => ContactStaff);

            _locationContactType         = locationContactType;
            _contactStaff                = contactStaff;
            _effectiveDateRange          = effectiveDateRange;
            _statusIndicator             = statusIndicator;
            _alternativeContactIndicator = alternativeContactIndicator;
        }
Example #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="LocationContact"/> class.
        /// </summary>
        /// <param name="locationContactType">Type of the location contact.</param>
        /// <param name="contactStaff">The contact staff.</param>
        /// <param name="effectiveDateRange">The effective date range.</param>
        /// <param name="statusIndicator">If set to <c>true</c> [status indicator].</param>
        /// <param name="alternativeContactIndicator">If set to <c>true</c> [alternative contact indicator].</param>
        protected internal LocationContact(
            LocationContactType locationContactType, 
            Staff contactStaff, 
            DateRange effectiveDateRange, 
            bool statusIndicator, 
            bool alternativeContactIndicator)
        {
            Check.IsNotNull(locationContactType, () => LocationContactType);
            Check.IsNotNull(contactStaff, () => ContactStaff);

            _locationContactType = locationContactType;
            _contactStaff = contactStaff;
            _effectiveDateRange = effectiveDateRange;
            _statusIndicator = statusIndicator;
            _alternativeContactIndicator = alternativeContactIndicator;
        }
Example #3
0
 /// <summary>
 /// Assigns the type of the location contact.
 /// </summary>
 /// <param name="locationContactType">Type of the location contact.</param>
 /// <returns>A LocationContactBuilder.</returns>
 public LocationContactBuilder WithLocationContactType(LocationContactType locationContactType)
 {
     _locationContactType = locationContactType;
     return(this);
 }
 /// <summary>
 /// Assigns the type of the location contact.
 /// </summary>
 /// <param name="locationContactType">Type of the location contact.</param>
 /// <returns>A LocationContactBuilder.</returns>
 public LocationContactBuilder WithLocationContactType(LocationContactType locationContactType)
 {
     _locationContactType = locationContactType;
     return this;
 }