447 lines
19 KiB
C#
447 lines
19 KiB
C#
//------------------------------------------------------------------------------
|
|
// <auto-generated>
|
|
// This code was generated by a tool.
|
|
// Runtime Version:4.0.30319.42000
|
|
//
|
|
// Changes to this file may cause incorrect behavior and will be lost if
|
|
// the code is regenerated.
|
|
// </auto-generated>
|
|
//------------------------------------------------------------------------------
|
|
|
|
namespace Plattform.AirlineService {
|
|
using System.Runtime.Serialization;
|
|
using System;
|
|
|
|
|
|
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")]
|
|
[System.Runtime.Serialization.DataContractAttribute(Name="Flight", Namespace="http://schemas.datacontract.org/2004/07/AirlineServer.Models")]
|
|
[System.SerializableAttribute()]
|
|
public partial class Flight : object, System.Runtime.Serialization.IExtensibleDataObject, System.ComponentModel.INotifyPropertyChanged {
|
|
|
|
[System.NonSerializedAttribute()]
|
|
private System.Runtime.Serialization.ExtensionDataObject extensionDataField;
|
|
|
|
[System.Runtime.Serialization.OptionalFieldAttribute()]
|
|
private Plattform.AirlineService.Airline AirlineField;
|
|
|
|
[System.Runtime.Serialization.OptionalFieldAttribute()]
|
|
private Plattform.AirlineService.Airport DestinationField;
|
|
|
|
[System.Runtime.Serialization.OptionalFieldAttribute()]
|
|
private float DurationField;
|
|
|
|
[System.Runtime.Serialization.OptionalFieldAttribute()]
|
|
private int FlightIDField;
|
|
|
|
[System.Runtime.Serialization.OptionalFieldAttribute()]
|
|
private string NameField;
|
|
|
|
[System.Runtime.Serialization.OptionalFieldAttribute()]
|
|
private Plattform.AirlineService.Airport OriginField;
|
|
|
|
[System.Runtime.Serialization.OptionalFieldAttribute()]
|
|
private System.DateTime StartTimeField;
|
|
|
|
[global::System.ComponentModel.BrowsableAttribute(false)]
|
|
public System.Runtime.Serialization.ExtensionDataObject ExtensionData {
|
|
get {
|
|
return this.extensionDataField;
|
|
}
|
|
set {
|
|
this.extensionDataField = value;
|
|
}
|
|
}
|
|
|
|
[System.Runtime.Serialization.DataMemberAttribute()]
|
|
public Plattform.AirlineService.Airline Airline {
|
|
get {
|
|
return this.AirlineField;
|
|
}
|
|
set {
|
|
if ((object.ReferenceEquals(this.AirlineField, value) != true)) {
|
|
this.AirlineField = value;
|
|
this.RaisePropertyChanged("Airline");
|
|
}
|
|
}
|
|
}
|
|
|
|
[System.Runtime.Serialization.DataMemberAttribute()]
|
|
public Plattform.AirlineService.Airport Destination {
|
|
get {
|
|
return this.DestinationField;
|
|
}
|
|
set {
|
|
if ((object.ReferenceEquals(this.DestinationField, value) != true)) {
|
|
this.DestinationField = value;
|
|
this.RaisePropertyChanged("Destination");
|
|
}
|
|
}
|
|
}
|
|
|
|
[System.Runtime.Serialization.DataMemberAttribute()]
|
|
public float Duration {
|
|
get {
|
|
return this.DurationField;
|
|
}
|
|
set {
|
|
if ((this.DurationField.Equals(value) != true)) {
|
|
this.DurationField = value;
|
|
this.RaisePropertyChanged("Duration");
|
|
}
|
|
}
|
|
}
|
|
|
|
[System.Runtime.Serialization.DataMemberAttribute()]
|
|
public int FlightID {
|
|
get {
|
|
return this.FlightIDField;
|
|
}
|
|
set {
|
|
if ((this.FlightIDField.Equals(value) != true)) {
|
|
this.FlightIDField = value;
|
|
this.RaisePropertyChanged("FlightID");
|
|
}
|
|
}
|
|
}
|
|
|
|
[System.Runtime.Serialization.DataMemberAttribute()]
|
|
public string Name {
|
|
get {
|
|
return this.NameField;
|
|
}
|
|
set {
|
|
if ((object.ReferenceEquals(this.NameField, value) != true)) {
|
|
this.NameField = value;
|
|
this.RaisePropertyChanged("Name");
|
|
}
|
|
}
|
|
}
|
|
|
|
[System.Runtime.Serialization.DataMemberAttribute()]
|
|
public Plattform.AirlineService.Airport Origin {
|
|
get {
|
|
return this.OriginField;
|
|
}
|
|
set {
|
|
if ((object.ReferenceEquals(this.OriginField, value) != true)) {
|
|
this.OriginField = value;
|
|
this.RaisePropertyChanged("Origin");
|
|
}
|
|
}
|
|
}
|
|
|
|
[System.Runtime.Serialization.DataMemberAttribute()]
|
|
public System.DateTime StartTime {
|
|
get {
|
|
return this.StartTimeField;
|
|
}
|
|
set {
|
|
if ((this.StartTimeField.Equals(value) != true)) {
|
|
this.StartTimeField = value;
|
|
this.RaisePropertyChanged("StartTime");
|
|
}
|
|
}
|
|
}
|
|
|
|
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
|
|
|
|
protected void RaisePropertyChanged(string propertyName) {
|
|
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
|
|
if ((propertyChanged != null)) {
|
|
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
|
|
}
|
|
}
|
|
}
|
|
|
|
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")]
|
|
[System.Runtime.Serialization.DataContractAttribute(Name="Airline", Namespace="http://schemas.datacontract.org/2004/07/AirlineServer.Models")]
|
|
[System.SerializableAttribute()]
|
|
public partial class Airline : object, System.Runtime.Serialization.IExtensibleDataObject, System.ComponentModel.INotifyPropertyChanged {
|
|
|
|
[System.NonSerializedAttribute()]
|
|
private System.Runtime.Serialization.ExtensionDataObject extensionDataField;
|
|
|
|
[System.Runtime.Serialization.OptionalFieldAttribute()]
|
|
private int AirlineIDField;
|
|
|
|
[System.Runtime.Serialization.OptionalFieldAttribute()]
|
|
private string NameField;
|
|
|
|
[global::System.ComponentModel.BrowsableAttribute(false)]
|
|
public System.Runtime.Serialization.ExtensionDataObject ExtensionData {
|
|
get {
|
|
return this.extensionDataField;
|
|
}
|
|
set {
|
|
this.extensionDataField = value;
|
|
}
|
|
}
|
|
|
|
[System.Runtime.Serialization.DataMemberAttribute()]
|
|
public int AirlineID {
|
|
get {
|
|
return this.AirlineIDField;
|
|
}
|
|
set {
|
|
if ((this.AirlineIDField.Equals(value) != true)) {
|
|
this.AirlineIDField = value;
|
|
this.RaisePropertyChanged("AirlineID");
|
|
}
|
|
}
|
|
}
|
|
|
|
[System.Runtime.Serialization.DataMemberAttribute()]
|
|
public string Name {
|
|
get {
|
|
return this.NameField;
|
|
}
|
|
set {
|
|
if ((object.ReferenceEquals(this.NameField, value) != true)) {
|
|
this.NameField = value;
|
|
this.RaisePropertyChanged("Name");
|
|
}
|
|
}
|
|
}
|
|
|
|
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
|
|
|
|
protected void RaisePropertyChanged(string propertyName) {
|
|
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
|
|
if ((propertyChanged != null)) {
|
|
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
|
|
}
|
|
}
|
|
}
|
|
|
|
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")]
|
|
[System.Runtime.Serialization.DataContractAttribute(Name="Airport", Namespace="http://schemas.datacontract.org/2004/07/AirlineServer.Models")]
|
|
[System.SerializableAttribute()]
|
|
public partial class Airport : object, System.Runtime.Serialization.IExtensibleDataObject, System.ComponentModel.INotifyPropertyChanged {
|
|
|
|
[System.NonSerializedAttribute()]
|
|
private System.Runtime.Serialization.ExtensionDataObject extensionDataField;
|
|
|
|
[System.Runtime.Serialization.OptionalFieldAttribute()]
|
|
private Plattform.AirlineService.City CityField;
|
|
|
|
[System.Runtime.Serialization.OptionalFieldAttribute()]
|
|
private string NameField;
|
|
|
|
[System.Runtime.Serialization.OptionalFieldAttribute()]
|
|
private string ShortNameField;
|
|
|
|
[global::System.ComponentModel.BrowsableAttribute(false)]
|
|
public System.Runtime.Serialization.ExtensionDataObject ExtensionData {
|
|
get {
|
|
return this.extensionDataField;
|
|
}
|
|
set {
|
|
this.extensionDataField = value;
|
|
}
|
|
}
|
|
|
|
[System.Runtime.Serialization.DataMemberAttribute()]
|
|
public Plattform.AirlineService.City City {
|
|
get {
|
|
return this.CityField;
|
|
}
|
|
set {
|
|
if ((object.ReferenceEquals(this.CityField, value) != true)) {
|
|
this.CityField = value;
|
|
this.RaisePropertyChanged("City");
|
|
}
|
|
}
|
|
}
|
|
|
|
[System.Runtime.Serialization.DataMemberAttribute()]
|
|
public string Name {
|
|
get {
|
|
return this.NameField;
|
|
}
|
|
set {
|
|
if ((object.ReferenceEquals(this.NameField, value) != true)) {
|
|
this.NameField = value;
|
|
this.RaisePropertyChanged("Name");
|
|
}
|
|
}
|
|
}
|
|
|
|
[System.Runtime.Serialization.DataMemberAttribute()]
|
|
public string ShortName {
|
|
get {
|
|
return this.ShortNameField;
|
|
}
|
|
set {
|
|
if ((object.ReferenceEquals(this.ShortNameField, value) != true)) {
|
|
this.ShortNameField = value;
|
|
this.RaisePropertyChanged("ShortName");
|
|
}
|
|
}
|
|
}
|
|
|
|
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
|
|
|
|
protected void RaisePropertyChanged(string propertyName) {
|
|
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
|
|
if ((propertyChanged != null)) {
|
|
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
|
|
}
|
|
}
|
|
}
|
|
|
|
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")]
|
|
[System.Runtime.Serialization.DataContractAttribute(Name="City", Namespace="http://schemas.datacontract.org/2004/07/AirlineServer.Models")]
|
|
[System.SerializableAttribute()]
|
|
public partial class City : object, System.Runtime.Serialization.IExtensibleDataObject, System.ComponentModel.INotifyPropertyChanged {
|
|
|
|
[System.NonSerializedAttribute()]
|
|
private System.Runtime.Serialization.ExtensionDataObject extensionDataField;
|
|
|
|
[System.Runtime.Serialization.OptionalFieldAttribute()]
|
|
private int CityIDField;
|
|
|
|
[System.Runtime.Serialization.OptionalFieldAttribute()]
|
|
private string NameField;
|
|
|
|
[System.Runtime.Serialization.OptionalFieldAttribute()]
|
|
private int ZipCodeField;
|
|
|
|
[global::System.ComponentModel.BrowsableAttribute(false)]
|
|
public System.Runtime.Serialization.ExtensionDataObject ExtensionData {
|
|
get {
|
|
return this.extensionDataField;
|
|
}
|
|
set {
|
|
this.extensionDataField = value;
|
|
}
|
|
}
|
|
|
|
[System.Runtime.Serialization.DataMemberAttribute()]
|
|
public int CityID {
|
|
get {
|
|
return this.CityIDField;
|
|
}
|
|
set {
|
|
if ((this.CityIDField.Equals(value) != true)) {
|
|
this.CityIDField = value;
|
|
this.RaisePropertyChanged("CityID");
|
|
}
|
|
}
|
|
}
|
|
|
|
[System.Runtime.Serialization.DataMemberAttribute()]
|
|
public string Name {
|
|
get {
|
|
return this.NameField;
|
|
}
|
|
set {
|
|
if ((object.ReferenceEquals(this.NameField, value) != true)) {
|
|
this.NameField = value;
|
|
this.RaisePropertyChanged("Name");
|
|
}
|
|
}
|
|
}
|
|
|
|
[System.Runtime.Serialization.DataMemberAttribute()]
|
|
public int ZipCode {
|
|
get {
|
|
return this.ZipCodeField;
|
|
}
|
|
set {
|
|
if ((this.ZipCodeField.Equals(value) != true)) {
|
|
this.ZipCodeField = value;
|
|
this.RaisePropertyChanged("ZipCode");
|
|
}
|
|
}
|
|
}
|
|
|
|
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
|
|
|
|
protected void RaisePropertyChanged(string propertyName) {
|
|
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
|
|
if ((propertyChanged != null)) {
|
|
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
|
|
}
|
|
}
|
|
}
|
|
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
|
|
[System.ServiceModel.ServiceContractAttribute(ConfigurationName="AirlineService.IAirlineService")]
|
|
public interface IAirlineService {
|
|
|
|
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IAirlineService/GetFlights", ReplyAction="http://tempuri.org/IAirlineService/GetFlightsResponse")]
|
|
System.Collections.Generic.Dictionary<string, Plattform.AirlineService.Flight[]> GetFlights(System.DateTime startTime, System.DateTime endTime, string destination, int numberOfSeats);
|
|
|
|
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IAirlineService/GetFlights", ReplyAction="http://tempuri.org/IAirlineService/GetFlightsResponse")]
|
|
System.Threading.Tasks.Task<System.Collections.Generic.Dictionary<string, Plattform.AirlineService.Flight[]>> GetFlightsAsync(System.DateTime startTime, System.DateTime endTime, string destination, int numberOfSeats);
|
|
|
|
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IAirlineService/BookFlight", ReplyAction="http://tempuri.org/IAirlineService/BookFlightResponse")]
|
|
Plattform.AirlineService.Flight BookFlight(Plattform.AirlineService.Flight flight, int numberOfSeats);
|
|
|
|
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IAirlineService/BookFlight", ReplyAction="http://tempuri.org/IAirlineService/BookFlightResponse")]
|
|
System.Threading.Tasks.Task<Plattform.AirlineService.Flight> BookFlightAsync(Plattform.AirlineService.Flight flight, int numberOfSeats);
|
|
|
|
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IAirlineService/CancelFlight", ReplyAction="http://tempuri.org/IAirlineService/CancelFlightResponse")]
|
|
Plattform.AirlineService.Flight CancelFlight(Plattform.AirlineService.Flight flight, int numberOfSeats);
|
|
|
|
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IAirlineService/CancelFlight", ReplyAction="http://tempuri.org/IAirlineService/CancelFlightResponse")]
|
|
System.Threading.Tasks.Task<Plattform.AirlineService.Flight> CancelFlightAsync(Plattform.AirlineService.Flight flight, int numberOfSeats);
|
|
}
|
|
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
|
|
public interface IAirlineServiceChannel : Plattform.AirlineService.IAirlineService, System.ServiceModel.IClientChannel {
|
|
}
|
|
|
|
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
|
|
public partial class AirlineServiceClient : System.ServiceModel.ClientBase<Plattform.AirlineService.IAirlineService>, Plattform.AirlineService.IAirlineService {
|
|
|
|
public AirlineServiceClient() {
|
|
}
|
|
|
|
public AirlineServiceClient(string endpointConfigurationName) :
|
|
base(endpointConfigurationName) {
|
|
}
|
|
|
|
public AirlineServiceClient(string endpointConfigurationName, string remoteAddress) :
|
|
base(endpointConfigurationName, remoteAddress) {
|
|
}
|
|
|
|
public AirlineServiceClient(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) :
|
|
base(endpointConfigurationName, remoteAddress) {
|
|
}
|
|
|
|
public AirlineServiceClient(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) :
|
|
base(binding, remoteAddress) {
|
|
}
|
|
|
|
public System.Collections.Generic.Dictionary<string, Plattform.AirlineService.Flight[]> GetFlights(System.DateTime startTime, System.DateTime endTime, string destination, int numberOfSeats) {
|
|
return base.Channel.GetFlights(startTime, endTime, destination, numberOfSeats);
|
|
}
|
|
|
|
public System.Threading.Tasks.Task<System.Collections.Generic.Dictionary<string, Plattform.AirlineService.Flight[]>> GetFlightsAsync(System.DateTime startTime, System.DateTime endTime, string destination, int numberOfSeats) {
|
|
return base.Channel.GetFlightsAsync(startTime, endTime, destination, numberOfSeats);
|
|
}
|
|
|
|
public Plattform.AirlineService.Flight BookFlight(Plattform.AirlineService.Flight flight, int numberOfSeats) {
|
|
return base.Channel.BookFlight(flight, numberOfSeats);
|
|
}
|
|
|
|
public System.Threading.Tasks.Task<Plattform.AirlineService.Flight> BookFlightAsync(Plattform.AirlineService.Flight flight, int numberOfSeats) {
|
|
return base.Channel.BookFlightAsync(flight, numberOfSeats);
|
|
}
|
|
|
|
public Plattform.AirlineService.Flight CancelFlight(Plattform.AirlineService.Flight flight, int numberOfSeats) {
|
|
return base.Channel.CancelFlight(flight, numberOfSeats);
|
|
}
|
|
|
|
public System.Threading.Tasks.Task<Plattform.AirlineService.Flight> CancelFlightAsync(Plattform.AirlineService.Flight flight, int numberOfSeats) {
|
|
return base.Channel.CancelFlightAsync(flight, numberOfSeats);
|
|
}
|
|
}
|
|
}
|