Guest User

Pojo Classes for skyscanner pricing response

a guest
Oct 2nd, 2016
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 28.51 KB | None | 0 0
  1.  
  2. package ski.com.skiscannr.models;
  3.  
  4. import java.util.ArrayList;
  5. import java.util.List;
  6.  
  7. public class Example {
  8.  
  9.     private String sessionKey;
  10.     private Query query;
  11.     private String status;
  12.     private List<Itinerary> itineraries = new ArrayList<Itinerary>();
  13.     private List<Leg> legs = new ArrayList<Leg>();
  14.     private List<Segment> segments = new ArrayList<Segment>();
  15.     private List<Carrier> carriers = new ArrayList<Carrier>();
  16.     private List<Agent> agents = new ArrayList<Agent>();
  17.     private List<Place> places = new ArrayList<Place>();
  18.     private List<Currency> currencies = new ArrayList<Currency>();
  19.  
  20.     /**
  21.      *
  22.      * @return
  23.      *     The sessionKey
  24.      */
  25.     public String getSessionKey() {
  26.         return sessionKey;
  27.     }
  28.  
  29.     /**
  30.      *
  31.      * @param sessionKey
  32.      *     The SessionKey
  33.      */
  34.     public void setSessionKey(String sessionKey) {
  35.         this.sessionKey = sessionKey;
  36.     }
  37.  
  38.     /**
  39.      *
  40.      * @return
  41.      *     The query
  42.      */
  43.     public Query getQuery() {
  44.         return query;
  45.     }
  46.  
  47.     /**
  48.      *
  49.      * @param query
  50.      *     The Query
  51.      */
  52.     public void setQuery(Query query) {
  53.         this.query = query;
  54.     }
  55.  
  56.     /**
  57.      *
  58.      * @return
  59.      *     The status
  60.      */
  61.     public String getStatus() {
  62.         return status;
  63.     }
  64.  
  65.     /**
  66.      *
  67.      * @param status
  68.      *     The Status
  69.      */
  70.     public void setStatus(String status) {
  71.         this.status = status;
  72.     }
  73.  
  74.     /**
  75.      *
  76.      * @return
  77.      *     The itineraries
  78.      */
  79.     public List<Itinerary> getItineraries() {
  80.         return itineraries;
  81.     }
  82.  
  83.     /**
  84.      *
  85.      * @param itineraries
  86.      *     The Itineraries
  87.      */
  88.     public void setItineraries(List<Itinerary> itineraries) {
  89.         this.itineraries = itineraries;
  90.     }
  91.  
  92.     /**
  93.      *
  94.      * @return
  95.      *     The legs
  96.      */
  97.     public List<Leg> getLegs() {
  98.         return legs;
  99.     }
  100.  
  101.     /**
  102.      *
  103.      * @param legs
  104.      *     The Legs
  105.      */
  106.     public void setLegs(List<Leg> legs) {
  107.         this.legs = legs;
  108.     }
  109.  
  110.     /**
  111.      *
  112.      * @return
  113.      *     The segments
  114.      */
  115.     public List<Segment> getSegments() {
  116.         return segments;
  117.     }
  118.  
  119.     /**
  120.      *
  121.      * @param segments
  122.      *     The Segments
  123.      */
  124.     public void setSegments(List<Segment> segments) {
  125.         this.segments = segments;
  126.     }
  127.  
  128.     /**
  129.      *
  130.      * @return
  131.      *     The carriers
  132.      */
  133.     public List<Carrier> getCarriers() {
  134.         return carriers;
  135.     }
  136.  
  137.     /**
  138.      *
  139.      * @param carriers
  140.      *     The Carriers
  141.      */
  142.     public void setCarriers(List<Carrier> carriers) {
  143.         this.carriers = carriers;
  144.     }
  145.  
  146.     /**
  147.      *
  148.      * @return
  149.      *     The agents
  150.      */
  151.     public List<Agent> getAgents() {
  152.         return agents;
  153.     }
  154.  
  155.     /**
  156.      *
  157.      * @param agents
  158.      *     The Agents
  159.      */
  160.     public void setAgents(List<Agent> agents) {
  161.         this.agents = agents;
  162.     }
  163.  
  164.     /**
  165.      *
  166.      * @return
  167.      *     The places
  168.      */
  169.     public List<Place> getPlaces() {
  170.         return places;
  171.     }
  172.  
  173.     /**
  174.      *
  175.      * @param places
  176.      *     The Places
  177.      */
  178.     public void setPlaces(List<Place> places) {
  179.         this.places = places;
  180.     }
  181.  
  182.     /**
  183.      *
  184.      * @return
  185.      *     The currencies
  186.      */
  187.     public List<Currency> getCurrencies() {
  188.         return currencies;
  189.     }
  190.  
  191.     /**
  192.      *
  193.      * @param currencies
  194.      *     The Currencies
  195.      */
  196.     public void setCurrencies(List<Currency> currencies) {
  197.         this.currencies = currencies;
  198.     }
  199.  
  200. }
  201.  
  202. -----------------------------------------------------------------
  203. package ski.com.skiscannr.models;
  204.  
  205. public class Agent {
  206.  
  207.     private Integer id;
  208.     private String name;
  209.     private String imageUrl;
  210.     private String status;
  211.     private Boolean optimisedForMobile;
  212.     private String type;
  213.     private String bookingNumber;
  214.  
  215.     /**
  216.      *
  217.      * @return
  218.      *     The id
  219.      */
  220.     public Integer getId() {
  221.         return id;
  222.     }
  223.  
  224.     /**
  225.      *
  226.      * @param id
  227.      *     The Id
  228.      */
  229.     public void setId(Integer id) {
  230.         this.id = id;
  231.     }
  232.  
  233.     /**
  234.      *
  235.      * @return
  236.      *     The name
  237.      */
  238.     public String getName() {
  239.         return name;
  240.     }
  241.  
  242.     /**
  243.      *
  244.      * @param name
  245.      *     The Name
  246.      */
  247.     public void setName(String name) {
  248.         this.name = name;
  249.     }
  250.  
  251.     /**
  252.      *
  253.      * @return
  254.      *     The imageUrl
  255.      */
  256.     public String getImageUrl() {
  257.         return imageUrl;
  258.     }
  259.  
  260.     /**
  261.      *
  262.      * @param imageUrl
  263.      *     The ImageUrl
  264.      */
  265.     public void setImageUrl(String imageUrl) {
  266.         this.imageUrl = imageUrl;
  267.     }
  268.  
  269.     /**
  270.      *
  271.      * @return
  272.      *     The status
  273.      */
  274.     public String getStatus() {
  275.         return status;
  276.     }
  277.  
  278.     /**
  279.      *
  280.      * @param status
  281.      *     The Status
  282.      */
  283.     public void setStatus(String status) {
  284.         this.status = status;
  285.     }
  286.  
  287.     /**
  288.      *
  289.      * @return
  290.      *     The optimisedForMobile
  291.      */
  292.     public Boolean getOptimisedForMobile() {
  293.         return optimisedForMobile;
  294.     }
  295.  
  296.     /**
  297.      *
  298.      * @param optimisedForMobile
  299.      *     The OptimisedForMobile
  300.      */
  301.     public void setOptimisedForMobile(Boolean optimisedForMobile) {
  302.         this.optimisedForMobile = optimisedForMobile;
  303.     }
  304.  
  305.     /**
  306.      *
  307.      * @return
  308.      *     The type
  309.      */
  310.     public String getType() {
  311.         return type;
  312.     }
  313.  
  314.     /**
  315.      *
  316.      * @param type
  317.      *     The Type
  318.      */
  319.     public void setType(String type) {
  320.         this.type = type;
  321.     }
  322.  
  323.     /**
  324.      *
  325.      * @return
  326.      *     The bookingNumber
  327.      */
  328.     public String getBookingNumber() {
  329.         return bookingNumber;
  330.     }
  331.  
  332.     /**
  333.      *
  334.      * @param bookingNumber
  335.      *     The BookingNumber
  336.      */
  337.     public void setBookingNumber(String bookingNumber) {
  338.         this.bookingNumber = bookingNumber;
  339.     }
  340.  
  341. }
  342.  
  343. ------------------------------------------------------------
  344.  
  345.  
  346. package ski.com.skiscannr.models;
  347.  
  348.  
  349. public class BookingDetailsLink {
  350.  
  351.     private String uri;
  352.     private String body;
  353.     private String method;
  354.  
  355.     /**
  356.      *
  357.      * @return
  358.      *     The uri
  359.      */
  360.     public String getUri() {
  361.         return uri;
  362.     }
  363.  
  364.     /**
  365.      *
  366.      * @param uri
  367.      *     The Uri
  368.      */
  369.     public void setUri(String uri) {
  370.         this.uri = uri;
  371.     }
  372.  
  373.     /**
  374.      *
  375.      * @return
  376.      *     The body
  377.      */
  378.     public String getBody() {
  379.         return body;
  380.     }
  381.  
  382.     /**
  383.      *
  384.      * @param body
  385.      *     The Body
  386.      */
  387.     public void setBody(String body) {
  388.         this.body = body;
  389.     }
  390.  
  391.     /**
  392.      *
  393.      * @return
  394.      *     The method
  395.      */
  396.     public String getMethod() {
  397.         return method;
  398.     }
  399.  
  400.     /**
  401.      *
  402.      * @param method
  403.      *     The Method
  404.      */
  405.     public void setMethod(String method) {
  406.         this.method = method;
  407.     }
  408.  
  409. }
  410.  
  411. ---------------------------------------------------
  412.  
  413.  
  414. package ski.com.skiscannr.models;
  415.  
  416.  
  417. public class Carrier {
  418.  
  419.     private Integer id;
  420.     private String code;
  421.     private String name;
  422.     private String imageUrl;
  423.     private String displayCode;
  424.  
  425.     /**
  426.      *
  427.      * @return
  428.      *     The id
  429.      */
  430.     public Integer getId() {
  431.         return id;
  432.     }
  433.  
  434.     /**
  435.      *
  436.      * @param id
  437.      *     The Id
  438.      */
  439.     public void setId(Integer id) {
  440.         this.id = id;
  441.     }
  442.  
  443.     /**
  444.      *
  445.      * @return
  446.      *     The code
  447.      */
  448.     public String getCode() {
  449.         return code;
  450.     }
  451.  
  452.     /**
  453.      *
  454.      * @param code
  455.      *     The Code
  456.      */
  457.     public void setCode(String code) {
  458.         this.code = code;
  459.     }
  460.  
  461.     /**
  462.      *
  463.      * @return
  464.      *     The name
  465.      */
  466.     public String getName() {
  467.         return name;
  468.     }
  469.  
  470.     /**
  471.      *
  472.      * @param name
  473.      *     The Name
  474.      */
  475.     public void setName(String name) {
  476.         this.name = name;
  477.     }
  478.  
  479.     /**
  480.      *
  481.      * @return
  482.      *     The imageUrl
  483.      */
  484.     public String getImageUrl() {
  485.         return imageUrl;
  486.     }
  487.  
  488.     /**
  489.      *
  490.      * @param imageUrl
  491.      *     The ImageUrl
  492.      */
  493.     public void setImageUrl(String imageUrl) {
  494.         this.imageUrl = imageUrl;
  495.     }
  496.  
  497.     /**
  498.      *
  499.      * @return
  500.      *     The displayCode
  501.      */
  502.     public String getDisplayCode() {
  503.         return displayCode;
  504.     }
  505.  
  506.     /**
  507.      *
  508.      * @param displayCode
  509.      *     The DisplayCode
  510.      */
  511.     public void setDisplayCode(String displayCode) {
  512.         this.displayCode = displayCode;
  513.     }
  514.  
  515. }
  516.  
  517. -----------------------------------------------------------------
  518.  
  519.  
  520. package ski.com.skiscannr.models;
  521.  
  522.  
  523. public class FlightNumber {
  524.  
  525.     private String flightNumber;
  526.     private Integer carrierId;
  527.  
  528.     /**
  529.      *
  530.      * @return
  531.      *     The flightNumber
  532.      */
  533.     public String getFlightNumber() {
  534.         return flightNumber;
  535.     }
  536.  
  537.     /**
  538.      *
  539.      * @param flightNumber
  540.      *     The FlightNumber
  541.      */
  542.     public void setFlightNumber(String flightNumber) {
  543.         this.flightNumber = flightNumber;
  544.     }
  545.  
  546.     /**
  547.      *
  548.      * @return
  549.      *     The carrierId
  550.      */
  551.     public Integer getCarrierId() {
  552.         return carrierId;
  553.     }
  554.  
  555.     /**
  556.      *
  557.      * @param carrierId
  558.      *     The CarrierId
  559.      */
  560.     public void setCarrierId(Integer carrierId) {
  561.         this.carrierId = carrierId;
  562.     }
  563.  
  564. }
  565.  
  566.  
  567. -------------------------------------------------------------------
  568.  
  569.  
  570. package ski.com.skiscannr.models;
  571.  
  572. import java.util.ArrayList;
  573. import java.util.List;
  574.  
  575. public class Itinerary {
  576.  
  577.     private String outboundLegId;
  578.     private String inboundLegId;
  579.     private List<PricingOption> pricingOptions = new ArrayList<PricingOption>();
  580.     private BookingDetailsLink bookingDetailsLink;
  581.  
  582.     /**
  583.      *
  584.      * @return
  585.      *     The outboundLegId
  586.      */
  587.     public String getOutboundLegId() {
  588.         return outboundLegId;
  589.     }
  590.  
  591.     /**
  592.      *
  593.      * @param outboundLegId
  594.      *     The OutboundLegId
  595.      */
  596.     public void setOutboundLegId(String outboundLegId) {
  597.         this.outboundLegId = outboundLegId;
  598.     }
  599.  
  600.     /**
  601.      *
  602.      * @return
  603.      *     The inboundLegId
  604.      */
  605.     public String getInboundLegId() {
  606.         return inboundLegId;
  607.     }
  608.  
  609.     /**
  610.      *
  611.      * @param inboundLegId
  612.      *     The InboundLegId
  613.      */
  614.     public void setInboundLegId(String inboundLegId) {
  615.         this.inboundLegId = inboundLegId;
  616.     }
  617.  
  618.     /**
  619.      *
  620.      * @return
  621.      *     The pricingOptions
  622.      */
  623.     public List<PricingOption> getPricingOptions() {
  624.         return pricingOptions;
  625.     }
  626.  
  627.     /**
  628.      *
  629.      * @param pricingOptions
  630.      *     The PricingOptions
  631.      */
  632.     public void setPricingOptions(List<PricingOption> pricingOptions) {
  633.         this.pricingOptions = pricingOptions;
  634.     }
  635.  
  636.     /**
  637.      *
  638.      * @return
  639.      *     The bookingDetailsLink
  640.      */
  641.     public BookingDetailsLink getBookingDetailsLink() {
  642.         return bookingDetailsLink;
  643.     }
  644.  
  645.     /**
  646.      *
  647.      * @param bookingDetailsLink
  648.      *     The BookingDetailsLink
  649.      */
  650.     public void setBookingDetailsLink(BookingDetailsLink bookingDetailsLink) {
  651.         this.bookingDetailsLink = bookingDetailsLink;
  652.     }
  653.  
  654. }
  655. -----------------------------------------------------------
  656.  
  657.  
  658. package ski.com.skiscannr.models;
  659.  
  660. import java.util.ArrayList;
  661. import java.util.List;
  662.  
  663. public class Leg {
  664.  
  665.     private String id;
  666.     private List<Integer> segmentIds = new ArrayList<Integer>();
  667.     private Integer originStation;
  668.     private Integer destinationStation;
  669.     private String departure;
  670.     private String arrival;
  671.     private Integer duration;
  672.     private String journeyMode;
  673.     private List<Object> stops = new ArrayList<Object>();
  674.     private List<Integer> carriers = new ArrayList<Integer>();
  675.     private List<Integer> operatingCarriers = new ArrayList<Integer>();
  676.     private String directionality;
  677.     private List<FlightNumber> flightNumbers = new ArrayList<FlightNumber>();
  678.  
  679.     /**
  680.      *
  681.      * @return
  682.      *     The id
  683.      */
  684.     public String getId() {
  685.         return id;
  686.     }
  687.  
  688.     /**
  689.      *
  690.      * @param id
  691.      *     The Id
  692.      */
  693.     public void setId(String id) {
  694.         this.id = id;
  695.     }
  696.  
  697.     /**
  698.      *
  699.      * @return
  700.      *     The segmentIds
  701.      */
  702.     public List<Integer> getSegmentIds() {
  703.         return segmentIds;
  704.     }
  705.  
  706.     /**
  707.      *
  708.      * @param segmentIds
  709.      *     The SegmentIds
  710.      */
  711.     public void setSegmentIds(List<Integer> segmentIds) {
  712.         this.segmentIds = segmentIds;
  713.     }
  714.  
  715.     /**
  716.      *
  717.      * @return
  718.      *     The originStation
  719.      */
  720.     public Integer getOriginStation() {
  721.         return originStation;
  722.     }
  723.  
  724.     /**
  725.      *
  726.      * @param originStation
  727.      *     The OriginStation
  728.      */
  729.     public void setOriginStation(Integer originStation) {
  730.         this.originStation = originStation;
  731.     }
  732.  
  733.     /**
  734.      *
  735.      * @return
  736.      *     The destinationStation
  737.      */
  738.     public Integer getDestinationStation() {
  739.         return destinationStation;
  740.     }
  741.  
  742.     /**
  743.      *
  744.      * @param destinationStation
  745.      *     The DestinationStation
  746.      */
  747.     public void setDestinationStation(Integer destinationStation) {
  748.         this.destinationStation = destinationStation;
  749.     }
  750.  
  751.     /**
  752.      *
  753.      * @return
  754.      *     The departure
  755.      */
  756.     public String getDeparture() {
  757.         return departure;
  758.     }
  759.  
  760.     /**
  761.      *
  762.      * @param departure
  763.      *     The Departure
  764.      */
  765.     public void setDeparture(String departure) {
  766.         this.departure = departure;
  767.     }
  768.  
  769.     /**
  770.      *
  771.      * @return
  772.      *     The arrival
  773.      */
  774.     public String getArrival() {
  775.         return arrival;
  776.     }
  777.  
  778.     /**
  779.      *
  780.      * @param arrival
  781.      *     The Arrival
  782.      */
  783.     public void setArrival(String arrival) {
  784.         this.arrival = arrival;
  785.     }
  786.  
  787.     /**
  788.      *
  789.      * @return
  790.      *     The duration
  791.      */
  792.     public Integer getDuration() {
  793.         return duration;
  794.     }
  795.  
  796.     /**
  797.      *
  798.      * @param duration
  799.      *     The Duration
  800.      */
  801.     public void setDuration(Integer duration) {
  802.         this.duration = duration;
  803.     }
  804.  
  805.     /**
  806.      *
  807.      * @return
  808.      *     The journeyMode
  809.      */
  810.     public String getJourneyMode() {
  811.         return journeyMode;
  812.     }
  813.  
  814.     /**
  815.      *
  816.      * @param journeyMode
  817.      *     The JourneyMode
  818.      */
  819.     public void setJourneyMode(String journeyMode) {
  820.         this.journeyMode = journeyMode;
  821.     }
  822.  
  823.     /**
  824.      *
  825.      * @return
  826.      *     The stops
  827.      */
  828.     public List<Object> getStops() {
  829.         return stops;
  830.     }
  831.  
  832.     /**
  833.      *
  834.      * @param stops
  835.      *     The Stops
  836.      */
  837.     public void setStops(List<Object> stops) {
  838.         this.stops = stops;
  839.     }
  840.  
  841.     /**
  842.      *
  843.      * @return
  844.      *     The carriers
  845.      */
  846.     public List<Integer> getCarriers() {
  847.         return carriers;
  848.     }
  849.  
  850.     /**
  851.      *
  852.      * @param carriers
  853.      *     The Carriers
  854.      */
  855.     public void setCarriers(List<Integer> carriers) {
  856.         this.carriers = carriers;
  857.     }
  858.  
  859.     /**
  860.      *
  861.      * @return
  862.      *     The operatingCarriers
  863.      */
  864.     public List<Integer> getOperatingCarriers() {
  865.         return operatingCarriers;
  866.     }
  867.  
  868.     /**
  869.      *
  870.      * @param operatingCarriers
  871.      *     The OperatingCarriers
  872.      */
  873.     public void setOperatingCarriers(List<Integer> operatingCarriers) {
  874.         this.operatingCarriers = operatingCarriers;
  875.     }
  876.  
  877.     /**
  878.      *
  879.      * @return
  880.      *     The directionality
  881.      */
  882.     public String getDirectionality() {
  883.         return directionality;
  884.     }
  885.  
  886.     /**
  887.      *
  888.      * @param directionality
  889.      *     The Directionality
  890.      */
  891.     public void setDirectionality(String directionality) {
  892.         this.directionality = directionality;
  893.     }
  894.  
  895.     /**
  896.      *
  897.      * @return
  898.      *     The flightNumbers
  899.      */
  900.     public List<FlightNumber> getFlightNumbers() {
  901.         return flightNumbers;
  902.     }
  903.  
  904.     /**
  905.      *
  906.      * @param flightNumbers
  907.      *     The FlightNumbers
  908.      */
  909.     public void setFlightNumbers(List<FlightNumber> flightNumbers) {
  910.         this.flightNumbers = flightNumbers;
  911.     }
  912.  
  913. }
  914.  
  915. ------------------------------------------------
  916.  
  917.  
  918. package ski.com.skiscannr.models;
  919.  
  920.  
  921. public class Place {
  922.  
  923.     private Integer id;
  924.     private Integer parentId;
  925.     private String code;
  926.     private String type;
  927.     private String name;
  928.  
  929.     /**
  930.      *
  931.      * @return
  932.      *     The id
  933.      */
  934.     public Integer getId() {
  935.         return id;
  936.     }
  937.  
  938.     /**
  939.      *
  940.      * @param id
  941.      *     The Id
  942.      */
  943.     public void setId(Integer id) {
  944.         this.id = id;
  945.     }
  946.  
  947.     /**
  948.      *
  949.      * @return
  950.      *     The parentId
  951.      */
  952.     public Integer getParentId() {
  953.         return parentId;
  954.     }
  955.  
  956.     /**
  957.      *
  958.      * @param parentId
  959.      *     The ParentId
  960.      */
  961.     public void setParentId(Integer parentId) {
  962.         this.parentId = parentId;
  963.     }
  964.  
  965.     /**
  966.      *
  967.      * @return
  968.      *     The code
  969.      */
  970.     public String getCode() {
  971.         return code;
  972.     }
  973.  
  974.     /**
  975.      *
  976.      * @param code
  977.      *     The Code
  978.      */
  979.     public void setCode(String code) {
  980.         this.code = code;
  981.     }
  982.  
  983.     /**
  984.      *
  985.      * @return
  986.      *     The type
  987.      */
  988.     public String getType() {
  989.         return type;
  990.     }
  991.  
  992.     /**
  993.      *
  994.      * @param type
  995.      *     The Type
  996.      */
  997.     public void setType(String type) {
  998.         this.type = type;
  999.     }
  1000.  
  1001.     /**
  1002.      *
  1003.      * @return
  1004.      *     The name
  1005.      */
  1006.     public String getName() {
  1007.         return name;
  1008.     }
  1009.  
  1010.     /**
  1011.      *
  1012.      * @param name
  1013.      *     The Name
  1014.      */
  1015.     public void setName(String name) {
  1016.         this.name = name;
  1017.     }
  1018.  
  1019. }
  1020.  
  1021. ---------------------------------------------------------
  1022.  
  1023.  
  1024. package ski.com.skiscannr.models;
  1025.  
  1026. import java.util.ArrayList;
  1027. import java.util.List;
  1028.  
  1029. public class PricingOption {
  1030.  
  1031.     private List<Integer> agents = new ArrayList<Integer>();
  1032.     private Integer quoteAgeInMinutes;
  1033.     private Integer price;
  1034.     private String deeplinkUrl;
  1035.  
  1036.     /**
  1037.      *
  1038.      * @return
  1039.      *     The agents
  1040.      */
  1041.     public List<Integer> getAgents() {
  1042.         return agents;
  1043.     }
  1044.  
  1045.     /**
  1046.      *
  1047.      * @param agents
  1048.      *     The Agents
  1049.      */
  1050.     public void setAgents(List<Integer> agents) {
  1051.         this.agents = agents;
  1052.     }
  1053.  
  1054.     /**
  1055.      *
  1056.      * @return
  1057.      *     The quoteAgeInMinutes
  1058.      */
  1059.     public Integer getQuoteAgeInMinutes() {
  1060.         return quoteAgeInMinutes;
  1061.     }
  1062.  
  1063.     /**
  1064.      *
  1065.      * @param quoteAgeInMinutes
  1066.      *     The QuoteAgeInMinutes
  1067.      */
  1068.     public void setQuoteAgeInMinutes(Integer quoteAgeInMinutes) {
  1069.         this.quoteAgeInMinutes = quoteAgeInMinutes;
  1070.     }
  1071.  
  1072.     /**
  1073.      *
  1074.      * @return
  1075.      *     The price
  1076.      */
  1077.     public Integer getPrice() {
  1078.         return price;
  1079.     }
  1080.  
  1081.     /**
  1082.      *
  1083.      * @param price
  1084.      *     The Price
  1085.      */
  1086.     public void setPrice(Integer price) {
  1087.         this.price = price;
  1088.     }
  1089.  
  1090.     /**
  1091.      *
  1092.      * @return
  1093.      *     The deeplinkUrl
  1094.      */
  1095.     public String getDeeplinkUrl() {
  1096.         return deeplinkUrl;
  1097.     }
  1098.  
  1099.     /**
  1100.      *
  1101.      * @param deeplinkUrl
  1102.      *     The DeeplinkUrl
  1103.      */
  1104.     public void setDeeplinkUrl(String deeplinkUrl) {
  1105.         this.deeplinkUrl = deeplinkUrl;
  1106.     }
  1107.  
  1108. }
  1109.  
  1110. -----------------------------------------------
  1111.  
  1112.  
  1113. package ski.com.skiscannr.models;
  1114.  
  1115.  
  1116. public class Query {
  1117.  
  1118.     private String country;
  1119.     private String currency;
  1120.     private String locale;
  1121.     private Integer adults;
  1122.     private Integer children;
  1123.     private Integer infants;
  1124.     private String originPlace;
  1125.     private String destinationPlace;
  1126.     private String outboundDate;
  1127.     private String inboundDate;
  1128.     private String locationSchema;
  1129.     private String cabinClass;
  1130.     private Boolean groupPricing;
  1131.  
  1132.     /**
  1133.      *
  1134.      * @return
  1135.      *     The country
  1136.      */
  1137.     public String getCountry() {
  1138.         return country;
  1139.     }
  1140.  
  1141.     /**
  1142.      *
  1143.      * @param country
  1144.      *     The Country
  1145.      */
  1146.     public void setCountry(String country) {
  1147.         this.country = country;
  1148.     }
  1149.  
  1150.     /**
  1151.      *
  1152.      * @return
  1153.      *     The currency
  1154.      */
  1155.     public String getCurrency() {
  1156.         return currency;
  1157.     }
  1158.  
  1159.     /**
  1160.      *
  1161.      * @param currency
  1162.      *     The Currency
  1163.      */
  1164.     public void setCurrency(String currency) {
  1165.         this.currency = currency;
  1166.     }
  1167.  
  1168.     /**
  1169.      *
  1170.      * @return
  1171.      *     The locale
  1172.      */
  1173.     public String getLocale() {
  1174.         return locale;
  1175.     }
  1176.  
  1177.     /**
  1178.      *
  1179.      * @param locale
  1180.      *     The Locale
  1181.      */
  1182.     public void setLocale(String locale) {
  1183.         this.locale = locale;
  1184.     }
  1185.  
  1186.     /**
  1187.      *
  1188.      * @return
  1189.      *     The adults
  1190.      */
  1191.     public Integer getAdults() {
  1192.         return adults;
  1193.     }
  1194.  
  1195.     /**
  1196.      *
  1197.      * @param adults
  1198.      *     The Adults
  1199.      */
  1200.     public void setAdults(Integer adults) {
  1201.         this.adults = adults;
  1202.     }
  1203.  
  1204.     /**
  1205.      *
  1206.      * @return
  1207.      *     The children
  1208.      */
  1209.     public Integer getChildren() {
  1210.         return children;
  1211.     }
  1212.  
  1213.     /**
  1214.      *
  1215.      * @param children
  1216.      *     The Children
  1217.      */
  1218.     public void setChildren(Integer children) {
  1219.         this.children = children;
  1220.     }
  1221.  
  1222.     /**
  1223.      *
  1224.      * @return
  1225.      *     The infants
  1226.      */
  1227.     public Integer getInfants() {
  1228.         return infants;
  1229.     }
  1230.  
  1231.     /**
  1232.      *
  1233.      * @param infants
  1234.      *     The Infants
  1235.      */
  1236.     public void setInfants(Integer infants) {
  1237.         this.infants = infants;
  1238.     }
  1239.  
  1240.     /**
  1241.      *
  1242.      * @return
  1243.      *     The originPlace
  1244.      */
  1245.     public String getOriginPlace() {
  1246.         return originPlace;
  1247.     }
  1248.  
  1249.     /**
  1250.      *
  1251.      * @param originPlace
  1252.      *     The OriginPlace
  1253.      */
  1254.     public void setOriginPlace(String originPlace) {
  1255.         this.originPlace = originPlace;
  1256.     }
  1257.  
  1258.     /**
  1259.      *
  1260.      * @return
  1261.      *     The destinationPlace
  1262.      */
  1263.     public String getDestinationPlace() {
  1264.         return destinationPlace;
  1265.     }
  1266.  
  1267.     /**
  1268.      *
  1269.      * @param destinationPlace
  1270.      *     The DestinationPlace
  1271.      */
  1272.     public void setDestinationPlace(String destinationPlace) {
  1273.         this.destinationPlace = destinationPlace;
  1274.     }
  1275.  
  1276.     /**
  1277.      *
  1278.      * @return
  1279.      *     The outboundDate
  1280.      */
  1281.     public String getOutboundDate() {
  1282.         return outboundDate;
  1283.     }
  1284.  
  1285.     /**
  1286.      *
  1287.      * @param outboundDate
  1288.      *     The OutboundDate
  1289.      */
  1290.     public void setOutboundDate(String outboundDate) {
  1291.         this.outboundDate = outboundDate;
  1292.     }
  1293.  
  1294.     /**
  1295.      *
  1296.      * @return
  1297.      *     The inboundDate
  1298.      */
  1299.     public String getInboundDate() {
  1300.         return inboundDate;
  1301.     }
  1302.  
  1303.     /**
  1304.      *
  1305.      * @param inboundDate
  1306.      *     The InboundDate
  1307.      */
  1308.     public void setInboundDate(String inboundDate) {
  1309.         this.inboundDate = inboundDate;
  1310.     }
  1311.  
  1312.     /**
  1313.      *
  1314.      * @return
  1315.      *     The locationSchema
  1316.      */
  1317.     public String getLocationSchema() {
  1318.         return locationSchema;
  1319.     }
  1320.  
  1321.     /**
  1322.      *
  1323.      * @param locationSchema
  1324.      *     The LocationSchema
  1325.      */
  1326.     public void setLocationSchema(String locationSchema) {
  1327.         this.locationSchema = locationSchema;
  1328.     }
  1329.  
  1330.     /**
  1331.      *
  1332.      * @return
  1333.      *     The cabinClass
  1334.      */
  1335.     public String getCabinClass() {
  1336.         return cabinClass;
  1337.     }
  1338.  
  1339.     /**
  1340.      *
  1341.      * @param cabinClass
  1342.      *     The CabinClass
  1343.      */
  1344.     public void setCabinClass(String cabinClass) {
  1345.         this.cabinClass = cabinClass;
  1346.     }
  1347.  
  1348.     /**
  1349.      *
  1350.      * @return
  1351.      *     The groupPricing
  1352.      */
  1353.     public Boolean getGroupPricing() {
  1354.         return groupPricing;
  1355.     }
  1356.  
  1357.     /**
  1358.      *
  1359.      * @param groupPricing
  1360.      *     The GroupPricing
  1361.      */
  1362.     public void setGroupPricing(Boolean groupPricing) {
  1363.         this.groupPricing = groupPricing;
  1364.     }
  1365.  
  1366. }
  1367.  
  1368. -------------------------------------------------
  1369.  
  1370.  
  1371. package ski.com.skiscannr.models;
  1372.  
  1373. public class Segment {
  1374.  
  1375.     private Integer id;
  1376.     private Integer originStation;
  1377.     private Integer destinationStation;
  1378.     private String departureDateTime;
  1379.     private String arrivalDateTime;
  1380.     private Integer carrier;
  1381.     private Integer operatingCarrier;
  1382.     private Integer duration;
  1383.     private String flightNumber;
  1384.     private String journeyMode;
  1385.     private String directionality;
  1386.  
  1387.     /**
  1388.      *
  1389.      * @return
  1390.      *     The id
  1391.      */
  1392.     public Integer getId() {
  1393.         return id;
  1394.     }
  1395.  
  1396.     /**
  1397.      *
  1398.      * @param id
  1399.      *     The Id
  1400.      */
  1401.     public void setId(Integer id) {
  1402.         this.id = id;
  1403.     }
  1404.  
  1405.     /**
  1406.      *
  1407.      * @return
  1408.      *     The originStation
  1409.      */
  1410.     public Integer getOriginStation() {
  1411.         return originStation;
  1412.     }
  1413.  
  1414.     /**
  1415.      *
  1416.      * @param originStation
  1417.      *     The OriginStation
  1418.      */
  1419.     public void setOriginStation(Integer originStation) {
  1420.         this.originStation = originStation;
  1421.     }
  1422.  
  1423.     /**
  1424.      *
  1425.      * @return
  1426.      *     The destinationStation
  1427.      */
  1428.     public Integer getDestinationStation() {
  1429.         return destinationStation;
  1430.     }
  1431.  
  1432.     /**
  1433.      *
  1434.      * @param destinationStation
  1435.      *     The DestinationStation
  1436.      */
  1437.     public void setDestinationStation(Integer destinationStation) {
  1438.         this.destinationStation = destinationStation;
  1439.     }
  1440.  
  1441.     /**
  1442.      *
  1443.      * @return
  1444.      *     The departureDateTime
  1445.      */
  1446.     public String getDepartureDateTime() {
  1447.         return departureDateTime;
  1448.     }
  1449.  
  1450.     /**
  1451.      *
  1452.      * @param departureDateTime
  1453.      *     The DepartureDateTime
  1454.      */
  1455.     public void setDepartureDateTime(String departureDateTime) {
  1456.         this.departureDateTime = departureDateTime;
  1457.     }
  1458.  
  1459.     /**
  1460.      *
  1461.      * @return
  1462.      *     The arrivalDateTime
  1463.      */
  1464.     public String getArrivalDateTime() {
  1465.         return arrivalDateTime;
  1466.     }
  1467.  
  1468.     /**
  1469.      *
  1470.      * @param arrivalDateTime
  1471.      *     The ArrivalDateTime
  1472.      */
  1473.     public void setArrivalDateTime(String arrivalDateTime) {
  1474.         this.arrivalDateTime = arrivalDateTime;
  1475.     }
  1476.  
  1477.     /**
  1478.      *
  1479.      * @return
  1480.      *     The carrier
  1481.      */
  1482.     public Integer getCarrier() {
  1483.         return carrier;
  1484.     }
  1485.  
  1486.     /**
  1487.      *
  1488.      * @param carrier
  1489.      *     The Carrier
  1490.      */
  1491.     public void setCarrier(Integer carrier) {
  1492.         this.carrier = carrier;
  1493.     }
  1494.  
  1495.     /**
  1496.      *
  1497.      * @return
  1498.      *     The operatingCarrier
  1499.      */
  1500.     public Integer getOperatingCarrier() {
  1501.         return operatingCarrier;
  1502.     }
  1503.  
  1504.     /**
  1505.      *
  1506.      * @param operatingCarrier
  1507.      *     The OperatingCarrier
  1508.      */
  1509.     public void setOperatingCarrier(Integer operatingCarrier) {
  1510.         this.operatingCarrier = operatingCarrier;
  1511.     }
  1512.  
  1513.     /**
  1514.      *
  1515.      * @return
  1516.      *     The duration
  1517.      */
  1518.     public Integer getDuration() {
  1519.         return duration;
  1520.     }
  1521.  
  1522.     /**
  1523.      *
  1524.      * @param duration
  1525.      *     The Duration
  1526.      */
  1527.     public void setDuration(Integer duration) {
  1528.         this.duration = duration;
  1529.     }
  1530.  
  1531.     /**
  1532.      *
  1533.      * @return
  1534.      *     The flightNumber
  1535.      */
  1536.     public String getFlightNumber() {
  1537.         return flightNumber;
  1538.     }
  1539.  
  1540.     /**
  1541.      *
  1542.      * @param flightNumber
  1543.      *     The FlightNumber
  1544.      */
  1545.     public void setFlightNumber(String flightNumber) {
  1546.         this.flightNumber = flightNumber;
  1547.     }
  1548.  
  1549.     /**
  1550.      *
  1551.      * @return
  1552.      *     The journeyMode
  1553.      */
  1554.     public String getJourneyMode() {
  1555.         return journeyMode;
  1556.     }
  1557.  
  1558.     /**
  1559.      *
  1560.      * @param journeyMode
  1561.      *     The JourneyMode
  1562.      */
  1563.     public void setJourneyMode(String journeyMode) {
  1564.         this.journeyMode = journeyMode;
  1565.     }
  1566.  
  1567.     /**
  1568.      *
  1569.      * @return
  1570.      *     The directionality
  1571.      */
  1572.     public String getDirectionality() {
  1573.         return directionality;
  1574.     }
  1575.  
  1576.     /**
  1577.      *
  1578.      * @param directionality
  1579.      *     The Directionality
  1580.      */
  1581.     public void setDirectionality(String directionality) {
  1582.         this.directionality = directionality;
  1583.     }
  1584.  
  1585. }
Add Comment
Please, Sign In to add comment