示例#1
0
 public FlightEndpoint(FlightTicket ticket, IReadOnlyList <FlightLocation> locations)
 {
     _ticket    = ticket;
     _locations = locations;
 }
示例#2
0
 internal FlightEndpoint(Protocol.FlightEndpoint flightEndpoint)
 {
     _ticket    = new FlightTicket(flightEndpoint.Ticket);
     _locations = flightEndpoint.Location.Select(x => new FlightLocation(x)).ToList();
 }