/// <summary> /// Initializes a new instance of the <see cref="PointOfInterest"/> class. /// </summary> /// <param name="name">The name.</param> /// <param name="description">The description.</param> public PointOfInterest(long locationId, string description, BusinessHours businessHours, double timeToVosit, string userId) : this() { this.LocationId = locationId; this.Description = description; this.BusinessHours = businessHours; this.TimeTovisit = timeToVosit; this.UserId = userId; }
/// <summary> /// Initializes a new instance of the <see cref="PointOfInterest"/> class. /// </summary> /// <param name="locationId">The location identifier.</param> /// <param name="description">The description.</param> /// <param name="businessHours">The business hours.</param> /// <param name="timeToVosit">The time to vosit.</param> /// <param name="user">The user.</param> public PointOfInterest(long locationId, string description, BusinessHours businessHours, double timeToVosit, User user) : this(locationId, description, businessHours, timeToVosit, user.Id) { }