/// <summary> /// Initializes a new instance of the <see cref="BoardingJourneyCard" /> class. /// </summary> /// <param name="id">The id.</param> /// <param name="seat">The seat.</param> /// <param name="departureDate">The departure date.</param> /// <param name="arrivalDate">The arrival date.</param> /// <param name="client">The client.</param> /// <param name="transportProvider">The transport company.</param> protected BoardingJourneyCard(String id, String seat, DateTime departureDate, DateTime arrivalDate, BoardingJourneyCardOwner client, TransportProvider transportProvider) { this.id = id; this.seat = seat; this.departureDate = departureDate; this.arrivalDate = arrivalDate; this.owner = client; this.transportProvider = transportProvider; denied = false; valid = false; }
/// <summary> /// Initializes a new instance of the <see cref="BoardingJourneyCard" /> class. /// </summary> protected BoardingJourneyCard() { id = "000000"; transport = null; seat = ""; departureDate = DateTime.Now; arrivalDate = DateTime.Now; transportProvider = null; owner = null; denied = false; valid = false; }
/// <summary> /// Sets the client. /// Modify the boarding card owner /// </summary> /// <param name="client">The client.</param> /// <returns></returns> public BoardingJourneyCard SetClient(BoardingJourneyCardOwner client) { this.owner = client; return(this); }