com.github.debugthug.xo.Flight Maven / Gradle / Ivy
package com.github.debugthug.xo;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamAsAttribute;
import com.thoughtworks.xstream.annotations.XStreamImplicit;
@XStreamAlias("Flight")
public class Flight {
@XStreamAsAttribute
@XStreamAlias("Origin")
private String origin;
@XStreamAsAttribute
@XStreamAlias("Destination")
private String destination;
@XStreamAsAttribute
@XStreamAlias("FlightDate")
private Date flightDate;
@XStreamAsAttribute
@XStreamAlias("DepartureTimeFrom")
private String departureTimeFrom;
@XStreamAsAttribute
@XStreamAlias("DepartureTimeTo")
private String departureTimeTo;
// for onlineavailabilityRS::
@XStreamAsAttribute
@XStreamAlias("OrderNo")
private int orderNo;
@XStreamAsAttribute
@XStreamAlias("FlightNo")
private String flightNo;
@XStreamAsAttribute
@XStreamAlias("OriginName")
private String originName;
@XStreamAsAttribute
@XStreamAlias("DestinationName")
private String destinationName;
@XStreamAsAttribute
@XStreamAlias("OriginCityName")
private String originCityName;
@XStreamAsAttribute
@XStreamAlias("DestinationCityName")
private String destinationCityName;
@XStreamAsAttribute
@XStreamAlias("DepartureTerminal")
private String departureTerminal;
@XStreamAsAttribute
@XStreamAlias("ArrivalTerminal")
private String arrivalTerminal;
@XStreamAsAttribute
@XStreamAlias("DayChange")
private int dayChange;
@XStreamAsAttribute
@XStreamAlias("FlightDuration")
private int flightDuration;
@XStreamAsAttribute
@XStreamAlias("RBD")
private String rBD;
@XStreamAsAttribute
@XStreamAlias("LapDuration")
private int lapDuration;
@XStreamAsAttribute
@XStreamAlias("StopsCount")
private int stopsCount;
@XStreamAsAttribute
@XStreamAlias("StopDuration")
private int stopDuration;
@XStreamAsAttribute
@XStreamAlias("DepartureTime")
private String departureTime; // int
@XStreamAsAttribute
@XStreamAlias("ArrivalTime")
private String arrivalTime; // int
@XStreamAsAttribute
@XStreamAlias("SegmentStatus")
private String segmentStatus; // int
// FlighInfoRS::
@XStreamAsAttribute
@XStreamAlias("FlightNumber")
private String flightNumber;
@XStreamAsAttribute
@XStreamAlias("Frequency")
private int frequency;
@XStreamImplicit
@XStreamAlias("Segment")
private List segmentList = new ArrayList();
// getters & setter methods::
public List getSegmentList() {
return segmentList;
}
public void setSegmentList(List segmentList) {
this.segmentList = segmentList;
}
public String getOrigin() {
return origin;
}
public void setOrigin(String origin) {
this.origin = origin;
}
public String getDestination() {
return destination;
}
public void setDestination(String destination) {
this.destination = destination;
}
public Date getFlightDate() {
return flightDate;
}
public void setFlightDate(Date flightDate) {
this.flightDate = flightDate;
}
public String getDepartureTimeFrom() {
return departureTimeFrom;
}
public void setDepartureTimeFrom(String departureTimeFrom) {
this.departureTimeFrom = departureTimeFrom;
}
public String getDepartureTimeTo() {
return departureTimeTo;
}
public void setDepartureTimeTo(String departureTimeTo) {
this.departureTimeTo = departureTimeTo;
}
public int getOrderNo() {
return orderNo;
}
public void setOrderNo(int orderNo) {
this.orderNo = orderNo;
}
public String getFlightNo() {
return flightNo;
}
public void setFlightNo(String flightNo) {
this.flightNo = flightNo;
}
public String getOriginName() {
return originName;
}
public void setOriginName(String originName) {
this.originName = originName;
}
public String getDestinationName() {
return destinationName;
}
public void setDestinationName(String destinationName) {
this.destinationName = destinationName;
}
public String getOriginCityName() {
return originCityName;
}
public void setOriginCityName(String originCityName) {
this.originCityName = originCityName;
}
public String getDestinationCityName() {
return destinationCityName;
}
public void setDestinationCityName(String destinationCityName) {
this.destinationCityName = destinationCityName;
}
public String getDepartureTerminal() {
return departureTerminal;
}
public void setDepartureTerminal(String departureTerminal) {
this.departureTerminal = departureTerminal;
}
public String getArrivalTerminal() {
return arrivalTerminal;
}
public void setArrivalTerminal(String arrivalTerminal) {
this.arrivalTerminal = arrivalTerminal;
}
public int getDayChange() {
return dayChange;
}
public void setDayChange(int dayChange) {
this.dayChange = dayChange;
}
public int getFlightDuration() {
return flightDuration;
}
public void setFlightDuration(int flightDuration) {
this.flightDuration = flightDuration;
}
public String getrBD() {
return rBD;
}
public void setrBD(String rBD) {
this.rBD = rBD;
}
public int getLapDuration() {
return lapDuration;
}
public void setLapDuration(int lapDuration) {
this.lapDuration = lapDuration;
}
public int getStopsCount() {
return stopsCount;
}
public void setStopsCount(int stopsCount) {
this.stopsCount = stopsCount;
}
public int getStopDuration() {
return stopDuration;
}
public void setStopDuration(int stopDuration) {
this.stopDuration = stopDuration;
}
public String getDepartureTime() {
return departureTime;
}
public void setDepartureTime(String departureTime) {
this.departureTime = departureTime;
}
public String getArrivalTime() {
return arrivalTime;
}
public void setArrivalTime(String arrivalTime) {
this.arrivalTime = arrivalTime;
}
public String getSegmentStatus() {
return segmentStatus;
}
public void setSegmentStatus(String segmentStatus) {
this.segmentStatus = segmentStatus;
}
public String getFlightNumber() {
return flightNumber;
}
public void setFlightNumber(String flightNumber) {
this.flightNumber = flightNumber;
}
public int getFrequency() {
return frequency;
}
public void setFrequency(int frequency) {
this.frequency = frequency;
}
}