2018-08-19 14:31:58 +02:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Runtime.Serialization;
|
|
|
|
|
using System.ServiceModel;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using AirlineServer.Models;
|
|
|
|
|
|
|
|
|
|
namespace AirlineServer
|
|
|
|
|
{
|
|
|
|
|
// NOTE: You can use the "Rename" command on the "Refactor" menu to change
|
|
|
|
|
// the interface name "IAirlineService" in both code and config file
|
|
|
|
|
// together.
|
|
|
|
|
[ServiceContract]
|
|
|
|
|
public interface IAirlineService
|
|
|
|
|
{
|
|
|
|
|
[OperationContract]
|
2018-08-28 20:46:56 +02:00
|
|
|
|
Dictionary<string, List<Flight>> GetFlights(DateTime startTime,
|
2018-08-19 14:31:58 +02:00
|
|
|
|
DateTime endTime,
|
|
|
|
|
string destination,
|
|
|
|
|
int numberOfSeats);
|
|
|
|
|
[OperationContract]
|
|
|
|
|
Flight BookFlight(Flight flight, int numberOfSeats);
|
2018-08-28 20:44:50 +02:00
|
|
|
|
[OperationContract]
|
2018-08-19 14:31:58 +02:00
|
|
|
|
Flight CancelFlight(Flight flight, int numberOfSeats);
|
|
|
|
|
}
|
|
|
|
|
}
|