Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package ski.com.skiscannr.models;
- import java.util.ArrayList;
- import java.util.List;
- public class Example {
- private String sessionKey;
- private Query query;
- private String status;
- private List<Itinerary> itineraries = new ArrayList<Itinerary>();
- private List<Leg> legs = new ArrayList<Leg>();
- private List<Segment> segments = new ArrayList<Segment>();
- private List<Carrier> carriers = new ArrayList<Carrier>();
- private List<Agent> agents = new ArrayList<Agent>();
- private List<Place> places = new ArrayList<Place>();
- private List<Currency> currencies = new ArrayList<Currency>();
- /**
- *
- * @return
- * The sessionKey
- */
- public String getSessionKey() {
- return sessionKey;
- }
- /**
- *
- * @param sessionKey
- * The SessionKey
- */
- public void setSessionKey(String sessionKey) {
- this.sessionKey = sessionKey;
- }
- /**
- *
- * @return
- * The query
- */
- public Query getQuery() {
- return query;
- }
- /**
- *
- * @param query
- * The Query
- */
- public void setQuery(Query query) {
- this.query = query;
- }
- /**
- *
- * @return
- * The status
- */
- public String getStatus() {
- return status;
- }
- /**
- *
- * @param status
- * The Status
- */
- public void setStatus(String status) {
- this.status = status;
- }
- /**
- *
- * @return
- * The itineraries
- */
- public List<Itinerary> getItineraries() {
- return itineraries;
- }
- /**
- *
- * @param itineraries
- * The Itineraries
- */
- public void setItineraries(List<Itinerary> itineraries) {
- this.itineraries = itineraries;
- }
- /**
- *
- * @return
- * The legs
- */
- public List<Leg> getLegs() {
- return legs;
- }
- /**
- *
- * @param legs
- * The Legs
- */
- public void setLegs(List<Leg> legs) {
- this.legs = legs;
- }
- /**
- *
- * @return
- * The segments
- */
- public List<Segment> getSegments() {
- return segments;
- }
- /**
- *
- * @param segments
- * The Segments
- */
- public void setSegments(List<Segment> segments) {
- this.segments = segments;
- }
- /**
- *
- * @return
- * The carriers
- */
- public List<Carrier> getCarriers() {
- return carriers;
- }
- /**
- *
- * @param carriers
- * The Carriers
- */
- public void setCarriers(List<Carrier> carriers) {
- this.carriers = carriers;
- }
- /**
- *
- * @return
- * The agents
- */
- public List<Agent> getAgents() {
- return agents;
- }
- /**
- *
- * @param agents
- * The Agents
- */
- public void setAgents(List<Agent> agents) {
- this.agents = agents;
- }
- /**
- *
- * @return
- * The places
- */
- public List<Place> getPlaces() {
- return places;
- }
- /**
- *
- * @param places
- * The Places
- */
- public void setPlaces(List<Place> places) {
- this.places = places;
- }
- /**
- *
- * @return
- * The currencies
- */
- public List<Currency> getCurrencies() {
- return currencies;
- }
- /**
- *
- * @param currencies
- * The Currencies
- */
- public void setCurrencies(List<Currency> currencies) {
- this.currencies = currencies;
- }
- }
- -----------------------------------------------------------------
- package ski.com.skiscannr.models;
- public class Agent {
- private Integer id;
- private String name;
- private String imageUrl;
- private String status;
- private Boolean optimisedForMobile;
- private String type;
- private String bookingNumber;
- /**
- *
- * @return
- * The id
- */
- public Integer getId() {
- return id;
- }
- /**
- *
- * @param id
- * The Id
- */
- public void setId(Integer id) {
- this.id = id;
- }
- /**
- *
- * @return
- * The name
- */
- public String getName() {
- return name;
- }
- /**
- *
- * @param name
- * The Name
- */
- public void setName(String name) {
- this.name = name;
- }
- /**
- *
- * @return
- * The imageUrl
- */
- public String getImageUrl() {
- return imageUrl;
- }
- /**
- *
- * @param imageUrl
- * The ImageUrl
- */
- public void setImageUrl(String imageUrl) {
- this.imageUrl = imageUrl;
- }
- /**
- *
- * @return
- * The status
- */
- public String getStatus() {
- return status;
- }
- /**
- *
- * @param status
- * The Status
- */
- public void setStatus(String status) {
- this.status = status;
- }
- /**
- *
- * @return
- * The optimisedForMobile
- */
- public Boolean getOptimisedForMobile() {
- return optimisedForMobile;
- }
- /**
- *
- * @param optimisedForMobile
- * The OptimisedForMobile
- */
- public void setOptimisedForMobile(Boolean optimisedForMobile) {
- this.optimisedForMobile = optimisedForMobile;
- }
- /**
- *
- * @return
- * The type
- */
- public String getType() {
- return type;
- }
- /**
- *
- * @param type
- * The Type
- */
- public void setType(String type) {
- this.type = type;
- }
- /**
- *
- * @return
- * The bookingNumber
- */
- public String getBookingNumber() {
- return bookingNumber;
- }
- /**
- *
- * @param bookingNumber
- * The BookingNumber
- */
- public void setBookingNumber(String bookingNumber) {
- this.bookingNumber = bookingNumber;
- }
- }
- ------------------------------------------------------------
- package ski.com.skiscannr.models;
- public class BookingDetailsLink {
- private String uri;
- private String body;
- private String method;
- /**
- *
- * @return
- * The uri
- */
- public String getUri() {
- return uri;
- }
- /**
- *
- * @param uri
- * The Uri
- */
- public void setUri(String uri) {
- this.uri = uri;
- }
- /**
- *
- * @return
- * The body
- */
- public String getBody() {
- return body;
- }
- /**
- *
- * @param body
- * The Body
- */
- public void setBody(String body) {
- this.body = body;
- }
- /**
- *
- * @return
- * The method
- */
- public String getMethod() {
- return method;
- }
- /**
- *
- * @param method
- * The Method
- */
- public void setMethod(String method) {
- this.method = method;
- }
- }
- ---------------------------------------------------
- package ski.com.skiscannr.models;
- public class Carrier {
- private Integer id;
- private String code;
- private String name;
- private String imageUrl;
- private String displayCode;
- /**
- *
- * @return
- * The id
- */
- public Integer getId() {
- return id;
- }
- /**
- *
- * @param id
- * The Id
- */
- public void setId(Integer id) {
- this.id = id;
- }
- /**
- *
- * @return
- * The code
- */
- public String getCode() {
- return code;
- }
- /**
- *
- * @param code
- * The Code
- */
- public void setCode(String code) {
- this.code = code;
- }
- /**
- *
- * @return
- * The name
- */
- public String getName() {
- return name;
- }
- /**
- *
- * @param name
- * The Name
- */
- public void setName(String name) {
- this.name = name;
- }
- /**
- *
- * @return
- * The imageUrl
- */
- public String getImageUrl() {
- return imageUrl;
- }
- /**
- *
- * @param imageUrl
- * The ImageUrl
- */
- public void setImageUrl(String imageUrl) {
- this.imageUrl = imageUrl;
- }
- /**
- *
- * @return
- * The displayCode
- */
- public String getDisplayCode() {
- return displayCode;
- }
- /**
- *
- * @param displayCode
- * The DisplayCode
- */
- public void setDisplayCode(String displayCode) {
- this.displayCode = displayCode;
- }
- }
- -----------------------------------------------------------------
- package ski.com.skiscannr.models;
- public class FlightNumber {
- private String flightNumber;
- private Integer carrierId;
- /**
- *
- * @return
- * The flightNumber
- */
- public String getFlightNumber() {
- return flightNumber;
- }
- /**
- *
- * @param flightNumber
- * The FlightNumber
- */
- public void setFlightNumber(String flightNumber) {
- this.flightNumber = flightNumber;
- }
- /**
- *
- * @return
- * The carrierId
- */
- public Integer getCarrierId() {
- return carrierId;
- }
- /**
- *
- * @param carrierId
- * The CarrierId
- */
- public void setCarrierId(Integer carrierId) {
- this.carrierId = carrierId;
- }
- }
- -------------------------------------------------------------------
- package ski.com.skiscannr.models;
- import java.util.ArrayList;
- import java.util.List;
- public class Itinerary {
- private String outboundLegId;
- private String inboundLegId;
- private List<PricingOption> pricingOptions = new ArrayList<PricingOption>();
- private BookingDetailsLink bookingDetailsLink;
- /**
- *
- * @return
- * The outboundLegId
- */
- public String getOutboundLegId() {
- return outboundLegId;
- }
- /**
- *
- * @param outboundLegId
- * The OutboundLegId
- */
- public void setOutboundLegId(String outboundLegId) {
- this.outboundLegId = outboundLegId;
- }
- /**
- *
- * @return
- * The inboundLegId
- */
- public String getInboundLegId() {
- return inboundLegId;
- }
- /**
- *
- * @param inboundLegId
- * The InboundLegId
- */
- public void setInboundLegId(String inboundLegId) {
- this.inboundLegId = inboundLegId;
- }
- /**
- *
- * @return
- * The pricingOptions
- */
- public List<PricingOption> getPricingOptions() {
- return pricingOptions;
- }
- /**
- *
- * @param pricingOptions
- * The PricingOptions
- */
- public void setPricingOptions(List<PricingOption> pricingOptions) {
- this.pricingOptions = pricingOptions;
- }
- /**
- *
- * @return
- * The bookingDetailsLink
- */
- public BookingDetailsLink getBookingDetailsLink() {
- return bookingDetailsLink;
- }
- /**
- *
- * @param bookingDetailsLink
- * The BookingDetailsLink
- */
- public void setBookingDetailsLink(BookingDetailsLink bookingDetailsLink) {
- this.bookingDetailsLink = bookingDetailsLink;
- }
- }
- -----------------------------------------------------------
- package ski.com.skiscannr.models;
- import java.util.ArrayList;
- import java.util.List;
- public class Leg {
- private String id;
- private List<Integer> segmentIds = new ArrayList<Integer>();
- private Integer originStation;
- private Integer destinationStation;
- private String departure;
- private String arrival;
- private Integer duration;
- private String journeyMode;
- private List<Object> stops = new ArrayList<Object>();
- private List<Integer> carriers = new ArrayList<Integer>();
- private List<Integer> operatingCarriers = new ArrayList<Integer>();
- private String directionality;
- private List<FlightNumber> flightNumbers = new ArrayList<FlightNumber>();
- /**
- *
- * @return
- * The id
- */
- public String getId() {
- return id;
- }
- /**
- *
- * @param id
- * The Id
- */
- public void setId(String id) {
- this.id = id;
- }
- /**
- *
- * @return
- * The segmentIds
- */
- public List<Integer> getSegmentIds() {
- return segmentIds;
- }
- /**
- *
- * @param segmentIds
- * The SegmentIds
- */
- public void setSegmentIds(List<Integer> segmentIds) {
- this.segmentIds = segmentIds;
- }
- /**
- *
- * @return
- * The originStation
- */
- public Integer getOriginStation() {
- return originStation;
- }
- /**
- *
- * @param originStation
- * The OriginStation
- */
- public void setOriginStation(Integer originStation) {
- this.originStation = originStation;
- }
- /**
- *
- * @return
- * The destinationStation
- */
- public Integer getDestinationStation() {
- return destinationStation;
- }
- /**
- *
- * @param destinationStation
- * The DestinationStation
- */
- public void setDestinationStation(Integer destinationStation) {
- this.destinationStation = destinationStation;
- }
- /**
- *
- * @return
- * The departure
- */
- public String getDeparture() {
- return departure;
- }
- /**
- *
- * @param departure
- * The Departure
- */
- public void setDeparture(String departure) {
- this.departure = departure;
- }
- /**
- *
- * @return
- * The arrival
- */
- public String getArrival() {
- return arrival;
- }
- /**
- *
- * @param arrival
- * The Arrival
- */
- public void setArrival(String arrival) {
- this.arrival = arrival;
- }
- /**
- *
- * @return
- * The duration
- */
- public Integer getDuration() {
- return duration;
- }
- /**
- *
- * @param duration
- * The Duration
- */
- public void setDuration(Integer duration) {
- this.duration = duration;
- }
- /**
- *
- * @return
- * The journeyMode
- */
- public String getJourneyMode() {
- return journeyMode;
- }
- /**
- *
- * @param journeyMode
- * The JourneyMode
- */
- public void setJourneyMode(String journeyMode) {
- this.journeyMode = journeyMode;
- }
- /**
- *
- * @return
- * The stops
- */
- public List<Object> getStops() {
- return stops;
- }
- /**
- *
- * @param stops
- * The Stops
- */
- public void setStops(List<Object> stops) {
- this.stops = stops;
- }
- /**
- *
- * @return
- * The carriers
- */
- public List<Integer> getCarriers() {
- return carriers;
- }
- /**
- *
- * @param carriers
- * The Carriers
- */
- public void setCarriers(List<Integer> carriers) {
- this.carriers = carriers;
- }
- /**
- *
- * @return
- * The operatingCarriers
- */
- public List<Integer> getOperatingCarriers() {
- return operatingCarriers;
- }
- /**
- *
- * @param operatingCarriers
- * The OperatingCarriers
- */
- public void setOperatingCarriers(List<Integer> operatingCarriers) {
- this.operatingCarriers = operatingCarriers;
- }
- /**
- *
- * @return
- * The directionality
- */
- public String getDirectionality() {
- return directionality;
- }
- /**
- *
- * @param directionality
- * The Directionality
- */
- public void setDirectionality(String directionality) {
- this.directionality = directionality;
- }
- /**
- *
- * @return
- * The flightNumbers
- */
- public List<FlightNumber> getFlightNumbers() {
- return flightNumbers;
- }
- /**
- *
- * @param flightNumbers
- * The FlightNumbers
- */
- public void setFlightNumbers(List<FlightNumber> flightNumbers) {
- this.flightNumbers = flightNumbers;
- }
- }
- ------------------------------------------------
- package ski.com.skiscannr.models;
- public class Place {
- private Integer id;
- private Integer parentId;
- private String code;
- private String type;
- private String name;
- /**
- *
- * @return
- * The id
- */
- public Integer getId() {
- return id;
- }
- /**
- *
- * @param id
- * The Id
- */
- public void setId(Integer id) {
- this.id = id;
- }
- /**
- *
- * @return
- * The parentId
- */
- public Integer getParentId() {
- return parentId;
- }
- /**
- *
- * @param parentId
- * The ParentId
- */
- public void setParentId(Integer parentId) {
- this.parentId = parentId;
- }
- /**
- *
- * @return
- * The code
- */
- public String getCode() {
- return code;
- }
- /**
- *
- * @param code
- * The Code
- */
- public void setCode(String code) {
- this.code = code;
- }
- /**
- *
- * @return
- * The type
- */
- public String getType() {
- return type;
- }
- /**
- *
- * @param type
- * The Type
- */
- public void setType(String type) {
- this.type = type;
- }
- /**
- *
- * @return
- * The name
- */
- public String getName() {
- return name;
- }
- /**
- *
- * @param name
- * The Name
- */
- public void setName(String name) {
- this.name = name;
- }
- }
- ---------------------------------------------------------
- package ski.com.skiscannr.models;
- import java.util.ArrayList;
- import java.util.List;
- public class PricingOption {
- private List<Integer> agents = new ArrayList<Integer>();
- private Integer quoteAgeInMinutes;
- private Integer price;
- private String deeplinkUrl;
- /**
- *
- * @return
- * The agents
- */
- public List<Integer> getAgents() {
- return agents;
- }
- /**
- *
- * @param agents
- * The Agents
- */
- public void setAgents(List<Integer> agents) {
- this.agents = agents;
- }
- /**
- *
- * @return
- * The quoteAgeInMinutes
- */
- public Integer getQuoteAgeInMinutes() {
- return quoteAgeInMinutes;
- }
- /**
- *
- * @param quoteAgeInMinutes
- * The QuoteAgeInMinutes
- */
- public void setQuoteAgeInMinutes(Integer quoteAgeInMinutes) {
- this.quoteAgeInMinutes = quoteAgeInMinutes;
- }
- /**
- *
- * @return
- * The price
- */
- public Integer getPrice() {
- return price;
- }
- /**
- *
- * @param price
- * The Price
- */
- public void setPrice(Integer price) {
- this.price = price;
- }
- /**
- *
- * @return
- * The deeplinkUrl
- */
- public String getDeeplinkUrl() {
- return deeplinkUrl;
- }
- /**
- *
- * @param deeplinkUrl
- * The DeeplinkUrl
- */
- public void setDeeplinkUrl(String deeplinkUrl) {
- this.deeplinkUrl = deeplinkUrl;
- }
- }
- -----------------------------------------------
- package ski.com.skiscannr.models;
- public class Query {
- private String country;
- private String currency;
- private String locale;
- private Integer adults;
- private Integer children;
- private Integer infants;
- private String originPlace;
- private String destinationPlace;
- private String outboundDate;
- private String inboundDate;
- private String locationSchema;
- private String cabinClass;
- private Boolean groupPricing;
- /**
- *
- * @return
- * The country
- */
- public String getCountry() {
- return country;
- }
- /**
- *
- * @param country
- * The Country
- */
- public void setCountry(String country) {
- this.country = country;
- }
- /**
- *
- * @return
- * The currency
- */
- public String getCurrency() {
- return currency;
- }
- /**
- *
- * @param currency
- * The Currency
- */
- public void setCurrency(String currency) {
- this.currency = currency;
- }
- /**
- *
- * @return
- * The locale
- */
- public String getLocale() {
- return locale;
- }
- /**
- *
- * @param locale
- * The Locale
- */
- public void setLocale(String locale) {
- this.locale = locale;
- }
- /**
- *
- * @return
- * The adults
- */
- public Integer getAdults() {
- return adults;
- }
- /**
- *
- * @param adults
- * The Adults
- */
- public void setAdults(Integer adults) {
- this.adults = adults;
- }
- /**
- *
- * @return
- * The children
- */
- public Integer getChildren() {
- return children;
- }
- /**
- *
- * @param children
- * The Children
- */
- public void setChildren(Integer children) {
- this.children = children;
- }
- /**
- *
- * @return
- * The infants
- */
- public Integer getInfants() {
- return infants;
- }
- /**
- *
- * @param infants
- * The Infants
- */
- public void setInfants(Integer infants) {
- this.infants = infants;
- }
- /**
- *
- * @return
- * The originPlace
- */
- public String getOriginPlace() {
- return originPlace;
- }
- /**
- *
- * @param originPlace
- * The OriginPlace
- */
- public void setOriginPlace(String originPlace) {
- this.originPlace = originPlace;
- }
- /**
- *
- * @return
- * The destinationPlace
- */
- public String getDestinationPlace() {
- return destinationPlace;
- }
- /**
- *
- * @param destinationPlace
- * The DestinationPlace
- */
- public void setDestinationPlace(String destinationPlace) {
- this.destinationPlace = destinationPlace;
- }
- /**
- *
- * @return
- * The outboundDate
- */
- public String getOutboundDate() {
- return outboundDate;
- }
- /**
- *
- * @param outboundDate
- * The OutboundDate
- */
- public void setOutboundDate(String outboundDate) {
- this.outboundDate = outboundDate;
- }
- /**
- *
- * @return
- * The inboundDate
- */
- public String getInboundDate() {
- return inboundDate;
- }
- /**
- *
- * @param inboundDate
- * The InboundDate
- */
- public void setInboundDate(String inboundDate) {
- this.inboundDate = inboundDate;
- }
- /**
- *
- * @return
- * The locationSchema
- */
- public String getLocationSchema() {
- return locationSchema;
- }
- /**
- *
- * @param locationSchema
- * The LocationSchema
- */
- public void setLocationSchema(String locationSchema) {
- this.locationSchema = locationSchema;
- }
- /**
- *
- * @return
- * The cabinClass
- */
- public String getCabinClass() {
- return cabinClass;
- }
- /**
- *
- * @param cabinClass
- * The CabinClass
- */
- public void setCabinClass(String cabinClass) {
- this.cabinClass = cabinClass;
- }
- /**
- *
- * @return
- * The groupPricing
- */
- public Boolean getGroupPricing() {
- return groupPricing;
- }
- /**
- *
- * @param groupPricing
- * The GroupPricing
- */
- public void setGroupPricing(Boolean groupPricing) {
- this.groupPricing = groupPricing;
- }
- }
- -------------------------------------------------
- package ski.com.skiscannr.models;
- public class Segment {
- private Integer id;
- private Integer originStation;
- private Integer destinationStation;
- private String departureDateTime;
- private String arrivalDateTime;
- private Integer carrier;
- private Integer operatingCarrier;
- private Integer duration;
- private String flightNumber;
- private String journeyMode;
- private String directionality;
- /**
- *
- * @return
- * The id
- */
- public Integer getId() {
- return id;
- }
- /**
- *
- * @param id
- * The Id
- */
- public void setId(Integer id) {
- this.id = id;
- }
- /**
- *
- * @return
- * The originStation
- */
- public Integer getOriginStation() {
- return originStation;
- }
- /**
- *
- * @param originStation
- * The OriginStation
- */
- public void setOriginStation(Integer originStation) {
- this.originStation = originStation;
- }
- /**
- *
- * @return
- * The destinationStation
- */
- public Integer getDestinationStation() {
- return destinationStation;
- }
- /**
- *
- * @param destinationStation
- * The DestinationStation
- */
- public void setDestinationStation(Integer destinationStation) {
- this.destinationStation = destinationStation;
- }
- /**
- *
- * @return
- * The departureDateTime
- */
- public String getDepartureDateTime() {
- return departureDateTime;
- }
- /**
- *
- * @param departureDateTime
- * The DepartureDateTime
- */
- public void setDepartureDateTime(String departureDateTime) {
- this.departureDateTime = departureDateTime;
- }
- /**
- *
- * @return
- * The arrivalDateTime
- */
- public String getArrivalDateTime() {
- return arrivalDateTime;
- }
- /**
- *
- * @param arrivalDateTime
- * The ArrivalDateTime
- */
- public void setArrivalDateTime(String arrivalDateTime) {
- this.arrivalDateTime = arrivalDateTime;
- }
- /**
- *
- * @return
- * The carrier
- */
- public Integer getCarrier() {
- return carrier;
- }
- /**
- *
- * @param carrier
- * The Carrier
- */
- public void setCarrier(Integer carrier) {
- this.carrier = carrier;
- }
- /**
- *
- * @return
- * The operatingCarrier
- */
- public Integer getOperatingCarrier() {
- return operatingCarrier;
- }
- /**
- *
- * @param operatingCarrier
- * The OperatingCarrier
- */
- public void setOperatingCarrier(Integer operatingCarrier) {
- this.operatingCarrier = operatingCarrier;
- }
- /**
- *
- * @return
- * The duration
- */
- public Integer getDuration() {
- return duration;
- }
- /**
- *
- * @param duration
- * The Duration
- */
- public void setDuration(Integer duration) {
- this.duration = duration;
- }
- /**
- *
- * @return
- * The flightNumber
- */
- public String getFlightNumber() {
- return flightNumber;
- }
- /**
- *
- * @param flightNumber
- * The FlightNumber
- */
- public void setFlightNumber(String flightNumber) {
- this.flightNumber = flightNumber;
- }
- /**
- *
- * @return
- * The journeyMode
- */
- public String getJourneyMode() {
- return journeyMode;
- }
- /**
- *
- * @param journeyMode
- * The JourneyMode
- */
- public void setJourneyMode(String journeyMode) {
- this.journeyMode = journeyMode;
- }
- /**
- *
- * @return
- * The directionality
- */
- public String getDirectionality() {
- return directionality;
- }
- /**
- *
- * @param directionality
- * The Directionality
- */
- public void setDirectionality(String directionality) {
- this.directionality = directionality;
- }
- }
Add Comment
Please, Sign In to add comment