265 lines
10 KiB
C#
265 lines
10 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 float DurationField;
|
|
|
|
[System.Runtime.Serialization.OptionalFieldAttribute()]
|
|
private int FlightIDField;
|
|
|
|
[System.Runtime.Serialization.OptionalFieldAttribute()]
|
|
private string FromCityShortNameField;
|
|
|
|
[System.Runtime.Serialization.OptionalFieldAttribute()]
|
|
private string NameField;
|
|
|
|
[System.Runtime.Serialization.OptionalFieldAttribute()]
|
|
private System.DateTime StartTimeField;
|
|
|
|
[System.Runtime.Serialization.OptionalFieldAttribute()]
|
|
private string ToCityShortNameField;
|
|
|
|
[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 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 FromCityShortName {
|
|
get {
|
|
return this.FromCityShortNameField;
|
|
}
|
|
set {
|
|
if ((object.ReferenceEquals(this.FromCityShortNameField, value) != true)) {
|
|
this.FromCityShortNameField = value;
|
|
this.RaisePropertyChanged("FromCityShortName");
|
|
}
|
|
}
|
|
}
|
|
|
|
[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 System.DateTime StartTime {
|
|
get {
|
|
return this.StartTimeField;
|
|
}
|
|
set {
|
|
if ((this.StartTimeField.Equals(value) != true)) {
|
|
this.StartTimeField = value;
|
|
this.RaisePropertyChanged("StartTime");
|
|
}
|
|
}
|
|
}
|
|
|
|
[System.Runtime.Serialization.DataMemberAttribute()]
|
|
public string ToCityShortName {
|
|
get {
|
|
return this.ToCityShortNameField;
|
|
}
|
|
set {
|
|
if ((object.ReferenceEquals(this.ToCityShortNameField, value) != true)) {
|
|
this.ToCityShortNameField = value;
|
|
this.RaisePropertyChanged("ToCityShortName");
|
|
}
|
|
}
|
|
}
|
|
|
|
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.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/GetFreeFlights", ReplyAction="http://tempuri.org/IAirlineService/GetFreeFlightsResponse")]
|
|
Plattform.AirlineService.Flight[] GetFreeFlights();
|
|
|
|
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IAirlineService/GetFreeFlights", ReplyAction="http://tempuri.org/IAirlineService/GetFreeFlightsResponse")]
|
|
System.Threading.Tasks.Task<Plattform.AirlineService.Flight[]> GetFreeFlightsAsync();
|
|
}
|
|
|
|
[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 Plattform.AirlineService.Flight[] GetFreeFlights() {
|
|
return base.Channel.GetFreeFlights();
|
|
}
|
|
|
|
public System.Threading.Tasks.Task<Plattform.AirlineService.Flight[]> GetFreeFlightsAsync() {
|
|
return base.Channel.GetFreeFlightsAsync();
|
|
}
|
|
}
|
|
}
|