forked from ashishps1/awesome-low-level-design
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFlight.cs
More file actions
25 lines (23 loc) · 772 Bytes
/
Flight.cs
File metadata and controls
25 lines (23 loc) · 772 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
using System;
using System.Collections.Generic;
namespace AirlineManagementSystem
{
public class Flight
{
public string FlightNumber { get; }
public string Source { get; }
public string Destination { get; }
public DateTime DepartureTime { get; }
public DateTime ArrivalTime { get; }
public List<Seat> AvailableSeats { get; }
public Flight(string flightNumber, string source, string destination, DateTime departureTime, DateTime arrivalTime)
{
FlightNumber = flightNumber;
Source = source;
Destination = destination;
DepartureTime = departureTime;
ArrivalTime = arrivalTime;
AvailableSeats = new List<Seat>();
}
}
}