Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

AirlineCheckIn.cs 1.5 KB

You have to be logged in to leave a comment. Sign In
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
26
27
28
29
30
31
32
33
34
35
  1. namespace ChannelDataBot.Models
  2. {
  3. using Newtonsoft.Json;
  4. public class AirlineCheckIn
  5. {
  6. public AirlineCheckIn()
  7. {
  8. this.TemplateType = "airline_checkin";
  9. }
  10. [JsonProperty("template_type")]
  11. public string TemplateType { get; set; }
  12. [JsonProperty("intro_message")]
  13. public string IntroMessage { get; set; }
  14. [JsonProperty("locale")]
  15. public string Locale { get; set; }
  16. [JsonProperty("pnr_number")]
  17. public string PnrNumber { get; set; }
  18. [JsonProperty("flight_info")]
  19. public FlightInfo[] FlightInfo { get; set; }
  20. [JsonProperty("checkin_url")]
  21. public string CheckInUrl { get; set; }
  22. public override string ToString()
  23. {
  24. return $"{this.IntroMessage}. Confirmation Number: {this.PnrNumber}. Flight {this.FlightInfo[0].FlightNumber} from {this.FlightInfo[0].DepartureAirport.City} ({this.FlightInfo[0].DepartureAirport.AirportCode}) to {this.FlightInfo[0].ArrivalAirport.City} to ({this.FlightInfo[0].ArrivalAirport.AirportCode}) departing at {this.FlightInfo[0].FlightSchedule.DepartureTime} from gate {this.FlightInfo[0].DepartureAirport.Gate} at terminal {this.FlightInfo[0].DepartureAirport.Terminal} and arriving at {this.FlightInfo[0].FlightSchedule.ArrivalTime} to gate {this.FlightInfo[0].ArrivalAirport.Gate} at terminal {this.FlightInfo[0].ArrivalAirport.Terminal}. Boarding time is {this.FlightInfo[0].FlightSchedule.BoardingTime}. Check in @ {this.CheckInUrl}";
  25. }
  26. }
  27. }
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...