Advertisement
Balkonskii

agent-request-model

Feb 12th, 2018
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 3.22 KB | None | 0 0
  1.     public class Agent
  2.     {
  3.         public string Name { get; set; }
  4.         public string City { get; set; }
  5.         public string Region { get; set; }
  6.         public string Phone { get; set; }
  7.         public string Email { get; set; }
  8.     }
  9.  
  10.     public class RelatedGroupRequest
  11.     {
  12.         public string Id { get; set; }
  13.         public string Name { get; set; }
  14.     }
  15.  
  16.     public class Airport
  17.     {
  18.         public string Code { get; set; }
  19.         public string CountryName { get; set; }
  20.         public string CityName { get; set; }
  21.         public string Iso { get; set; }
  22.         public string Iata { get; set; }
  23.     }
  24.  
  25.     public class Flight
  26.     {
  27.         public string Name { get; set; }
  28.         public string Number { get; set; }
  29.         public string FromCode { get { return Name.Substring(0, 3); } }
  30.         public string ToCode { get { return Name.Substring(3, 3); } }
  31.         public Airport From { get; set; }
  32.         public Airport To { get; set; }
  33.     }
  34.  
  35.     public class RouteSegment
  36.     {
  37.         public string Id { get; set; }
  38.         public Flight Flight { get; set; }
  39.         public DateTimeOffset? FromDate { get; set; }
  40.         public DateTimeOffset? ToDate { get; set; }
  41.         public string RBD { get; set; }
  42.     }
  43.  
  44.     public class AgentRequestRoute
  45.     {
  46.         public string BookingNumber { get; set; }
  47.         public int PaxCount { get; set; }
  48.         public List<RouteSegment> RouteSegments { get; set; }
  49.     }
  50.  
  51.     public enum OversizedBaggageSizeType
  52.     {
  53.         /// <summary>
  54.         ///  <= 203 cm
  55.         /// </summary>
  56.         Small,
  57.         /// <summary>
  58.         /// >= 204 cm
  59.         /// </summary>
  60.         Big
  61.     }
  62.  
  63.     public enum OversizedBaggageWeightType
  64.     {
  65.         /// <summary>
  66.         /// 0 - 23 kg
  67.         /// </summary>
  68.         Light,
  69.  
  70.         /// <summary>
  71.         /// 24 - 32 kg
  72.         /// </summary>
  73.         Medium,
  74.  
  75.         /// <summary>
  76.         /// 33 - 50 kg
  77.         /// </summary>
  78.         Heavy
  79.     }
  80.  
  81.     public class OversizedBaggageUnit
  82.     {
  83.         public int PlaceCount { get; set; }
  84.         public string BaggageType { get; set; }
  85.         public OversizedBaggageSizeType BaggageSizeType { get; set; }
  86.         public OversizedBaggageWeightType baggageWeightType { get; set; }
  87.         public string RouteSegmentId { get; set; }
  88.     }
  89.  
  90.     public class AgentRequestAdditionalInformation
  91.     {
  92.         public bool FlightToWorldCup { get; set; }
  93.         public string TripPurpose { get; set; }
  94.         public DateTimeOffset? AdditionalInfoDate { get; set; }
  95.         public bool AllowChangeTravelDates { get; set; }
  96.         public bool AllowSplitGroup { get; set; }
  97.         public bool AllowPrepay { get; set; }
  98.     }
  99.  
  100.     public class AgentRequest
  101.     {
  102.         public Agent Agent { get; set; }
  103.         public string RequestName { get; set; }
  104.         public List<RelatedAgentRequest> RelatedRequests { get; set; }
  105.         public bool IsUrgently { get; set; }
  106.         public AgentRequestRoute Route { get; set; }
  107.         public List<OversizedBaggageUnit> OversizedBaggage { get; set; }
  108.         public AgentRequestAdditionalInformation AdditionalInformation { get; set; }
  109.         public string Comment { get; set; }
  110.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement