Created
May 10, 2017 13:23
-
-
Save varqasim/14c6f1ee82fb93c69c2df6c29c0dbe76 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace VDBCore | |
{ | |
public class Baggage | |
{ | |
private string id; | |
private Passenger passenger; | |
private bool suspicious; | |
private List<Flight> flights; | |
public Baggage(Passenger passenger, List<Flight> flights, Boolean suspicious = false) | |
{ | |
this.id = Guid.NewGuid().ToString(); | |
this.passenger = passenger; | |
this.suspicious = suspicious; | |
this.flights = flights; | |
} | |
/// <summary> | |
/// Sets baggage suspicious state as either True (suspicious) or False (clear/non-suspicious) | |
/// </summary> | |
/// <param name="suspicious"></param> | |
public void SetBaggageSuspiciounsy(bool suspicious) | |
{ | |
this.suspicious = suspicious; | |
} | |
public override string ToString() | |
{ | |
return string.Format("Baggage Tag: {0} Suspicious: {1}", id.Substring(0, 6), suspicious); | |
} | |
public string ID | |
{ | |
get { return id; } | |
set { id = value; } | |
} | |
public bool Suspicious | |
{ | |
get { return suspicious; } | |
set { suspicious = value; } | |
} | |
public List<Flight> Flights | |
{ | |
get { return flights; } | |
set { flights = value; } | |
} | |
public Passenger Passenger | |
{ | |
get { return passenger; } | |
set { passenger = value; } | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment