// // PerformerAvailability.cs // // Author: // Paul Schneider // // Copyright (c) 2015 GNU GPL // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . using System; using Yavsc.Model.RolesAndMembers; using Yavsc.Model.Skill; using System.Web.Security; using System.Web.Profile; using System.Collections.Generic; using Yavsc.Model; using System.ComponentModel; using System.ComponentModel.DataAnnotations; using System.Linq; using Yavsc.Model.Google.Api; using Yavsc.Model.WorkFlow; namespace Yavsc.Model.FrontOffice { /// /// Performer availability. /// public class PerformerAvailability : UserNameBase { /// /// Initializes a new instance of the class. /// /// Profile. /// User name. /// Date. /// If set to true available. public PerformerAvailability(PerformerProfile profile, string userName, DateTime date, bool available) { DateAvailable = available; PerformanceDate = date; UserName = userName; preformerProfile = profile; } PerformerProfile preformerProfile = null; /// /// Gets the profile. /// /// The profile. public PerformerProfile Profile { get { return preformerProfile; } } /// /// Gets or sets the performance date. /// /// The performance date. public DateTime PerformanceDate { get; set; } /// /// Gets or sets a value indicating whether this date available. /// /// true if date available; otherwise, false. public bool DateAvailable { get; set; } } }