WebService

<back to all web services

ERAS2ClientNotificationRequest

import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class ERAS2ClientNotificationRequest
    {
        public String eras2_version = null;
        public String eras2_license = null;
        public String CallingOS = null;
        public String CallingOSArchitecture = null;
        public String LocalIP = null;
        public String CallingHost = null;
        public String CallingUser = null;
        public String CallingDomain = null;
        
        public String getEras2Version() { return eras2_version; }
        public ERAS2ClientNotificationRequest setEras2Version(String value) { this.eras2_version = value; return this; }
        public String getEras2License() { return eras2_license; }
        public ERAS2ClientNotificationRequest setEras2License(String value) { this.eras2_license = value; return this; }
        public String getCallingOS() { return CallingOS; }
        public ERAS2ClientNotificationRequest setCallingOS(String value) { this.CallingOS = value; return this; }
        public String getCallingOSArchitecture() { return CallingOSArchitecture; }
        public ERAS2ClientNotificationRequest setCallingOSArchitecture(String value) { this.CallingOSArchitecture = value; return this; }
        public String getLocalIP() { return LocalIP; }
        public ERAS2ClientNotificationRequest setLocalIP(String value) { this.LocalIP = value; return this; }
        public String getCallingHost() { return CallingHost; }
        public ERAS2ClientNotificationRequest setCallingHost(String value) { this.CallingHost = value; return this; }
        public String getCallingUser() { return CallingUser; }
        public ERAS2ClientNotificationRequest setCallingUser(String value) { this.CallingUser = value; return this; }
        public String getCallingDomain() { return CallingDomain; }
        public ERAS2ClientNotificationRequest setCallingDomain(String value) { this.CallingDomain = value; return this; }
    }

    public static class ERAS2ClientNotificationResponse
    {
        public ArrayList<ERAS2ClientNotification> notifications = null;
        
        public ArrayList<ERAS2ClientNotification> getNotifications() { return notifications; }
        public ERAS2ClientNotificationResponse setNotifications(ArrayList<ERAS2ClientNotification> value) { this.notifications = value; return this; }
    }

    public static class ERAS2ClientNotification
    {
        public Long noteID = null;
        public String infotext = null;
        public Date valid_from = null;
        public Date valid_to = null;
        public String valid_version = null;
        public String license = null;
        
        public Long getNoteID() { return noteID; }
        public ERAS2ClientNotification setNoteID(Long value) { this.noteID = value; return this; }
        public String getInfotext() { return infotext; }
        public ERAS2ClientNotification setInfotext(String value) { this.infotext = value; return this; }
        public Date getValidFrom() { return valid_from; }
        public ERAS2ClientNotification setValidFrom(Date value) { this.valid_from = value; return this; }
        public Date getValidTo() { return valid_to; }
        public ERAS2ClientNotification setValidTo(Date value) { this.valid_to = value; return this; }
        public String getValidVersion() { return valid_version; }
        public ERAS2ClientNotification setValidVersion(String value) { this.valid_version = value; return this; }
        public String getLicense() { return license; }
        public ERAS2ClientNotification setLicense(String value) { this.license = value; return this; }
    }

}

Java ERAS2ClientNotificationRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /jsv/reply/ERAS2ClientNotificationRequest HTTP/1.1 
Host: 52.142.207.43 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	eras2_version: String,
	eras2_license: String,
	CallingOS: String,
	CallingOSArchitecture: String,
	LocalIP: String,
	CallingHost: String,
	CallingUser: String,
	CallingDomain: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	notifications: 
	[
		{
			noteID: 0,
			infotext: String,
			valid_from: 0001-01-01,
			valid_to: 0001-01-01,
			valid_version: String,
			license: String
		}
	]
}