51 lines
1.2 KiB
C#
51 lines
1.2 KiB
C#
using bsmd.database;
|
|
using System;
|
|
using System.Runtime.Serialization;
|
|
using System.ServiceModel;
|
|
using System.ServiceModel.Web;
|
|
|
|
namespace bsmd.nsw.service
|
|
{
|
|
// NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "IService1" in both code and config file together.
|
|
[ServiceContract]
|
|
public interface IService
|
|
{
|
|
[
|
|
WebInvoke( //Method = "GET",
|
|
BodyStyle = WebMessageBodyStyle.Wrapped,
|
|
RequestFormat = WebMessageFormat.Json,
|
|
ResponseFormat = WebMessageFormat.Json)]
|
|
// ,UriTemplate = "pasttrack/{mmsi}/{mins}")]
|
|
[OperationContract]
|
|
NSWEntry[] NSWData(string poc, string from , string to);
|
|
|
|
}
|
|
|
|
[DataContract]
|
|
public class NSWEntry
|
|
{
|
|
|
|
[DataMember]
|
|
public string PoC;
|
|
|
|
[DataMember]
|
|
public DateTime ETA;
|
|
|
|
[DataMember]
|
|
public string IMO_ENI;
|
|
|
|
[DataMember]
|
|
public STAT STAT { get; set; }
|
|
|
|
[DataMember]
|
|
public NOA_NOD NOA_NOD { get; set; }
|
|
|
|
[DataMember]
|
|
public INFO INFO { get; set; }
|
|
|
|
[DataMember]
|
|
public AGNT AGNT { get; set; }
|
|
|
|
}
|
|
}
|