Server

<back to all web services

GetAppointment

Requires Authentication
The following routes are available for this service:
GET/Appointment/{Guid}
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
import com.google.gson.annotations.*;
import com.google.gson.reflect.*;

public class dtos
{

    @DataContract
    public static class GetAppointment
    {
        @DataMember(Name="Guid")
        @SerializedName("Guid")
        public UUID guid = null;

        @DataMember(Name="AllAppointments")
        @SerializedName("AllAppointments")
        public Boolean allAppointments = null;
        
        public UUID getGuid() { return guid; }
        public GetAppointment setGuid(UUID value) { this.guid = value; return this; }
        public Boolean isAllAppointments() { return allAppointments; }
        public GetAppointment setAllAppointments(Boolean value) { this.allAppointments = value; return this; }
    }

    public static class GetAppointmentResponse
    {
        public Order order = null;
        public ArrayList<DeviceOrderState> backDeviceStates = null;
        public ResponseStatus responseStatus = null;
        
        public Order getOrder() { return order; }
        public GetAppointmentResponse setOrder(Order value) { this.order = value; return this; }
        public ArrayList<DeviceOrderState> getBackDeviceStates() { return backDeviceStates; }
        public GetAppointmentResponse setBackDeviceStates(ArrayList<DeviceOrderState> value) { this.backDeviceStates = value; return this; }
        public ResponseStatus getResponseStatus() { return responseStatus; }
        public GetAppointmentResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; }
    }

    public static class Order
    {
        @DataMember(Name="Guid")
        @SerializedName("Guid")
        public UUID guid = null;

        @DataMember(Name="Abrechnungseinheit")
        @SerializedName("Abrechnungseinheit")
        public Abrechnungseinheit abrechnungseinheit = null;

        @DataMember(Name="AuftragNummer")
        @SerializedName("AuftragNummer")
        public String number = null;

        @DataMember(Name="Bezeichnung")
        @SerializedName("Bezeichnung")
        public String label = null;

        @DataMember(Name="Anmerkung")
        @SerializedName("Anmerkung")
        public String note = null;

        @DataMember(Name="Termine")
        @SerializedName("Termine")
        public IList<Appointment> appointments = null;

        @DataMember(Name="AuftragZustand")
        @SerializedName("AuftragZustand")
        public OrderState orderState = null;
        
        public UUID getGuid() { return guid; }
        public Order setGuid(UUID value) { this.guid = value; return this; }
        public Abrechnungseinheit getAbrechnungseinheit() { return abrechnungseinheit; }
        public Order setAbrechnungseinheit(Abrechnungseinheit value) { this.abrechnungseinheit = value; return this; }
        public String getNumber() { return number; }
        public Order setNumber(String value) { this.number = value; return this; }
        public String getLabel() { return label; }
        public Order setLabel(String value) { this.label = value; return this; }
        public String getNote() { return note; }
        public Order setNote(String value) { this.note = value; return this; }
        public IList<Appointment> getAppointments() { return appointments; }
        public Order setAppointments(IList<Appointment> value) { this.appointments = value; return this; }
        public OrderState getOrderState() { return orderState; }
        public Order setOrderState(OrderState value) { this.orderState = value; return this; }
    }

    @DataContract
    public static class Abrechnungseinheit
    {
        @DataMember(Name="Guid")
        @SerializedName("Guid")
        public UUID guid = null;

        @DataMember(Name="Objektnummer")
        @SerializedName("Objektnummer")
        public String number = null;

        @DataMember(Name="Anmerkung")
        @SerializedName("Anmerkung")
        public String note = null;

        @DataMember(Name="Address")
        @SerializedName("Address")
        public Address address = null;
        
        public UUID getGuid() { return guid; }
        public Abrechnungseinheit setGuid(UUID value) { this.guid = value; return this; }
        public String getNumber() { return number; }
        public Abrechnungseinheit setNumber(String value) { this.number = value; return this; }
        public String getNote() { return note; }
        public Abrechnungseinheit setNote(String value) { this.note = value; return this; }
        public Address getAddress() { return address; }
        public Abrechnungseinheit setAddress(Address value) { this.address = value; return this; }
    }

    @DataContract
    public static class Address
    {
        @DataMember(Name="Guid")
        @SerializedName("Guid")
        public UUID guid = null;

        @DataMember(Name="Straße")
        @SerializedName("Straße")
        public String street = null;

        @DataMember(Name="Straße2")
        @SerializedName("Straße2")
        public String street2 = null;

        @DataMember(Name="Hausnummer")
        @SerializedName("Hausnummer")
        public String streetNumber = null;

        @DataMember(Name="Postleitzahl")
        @SerializedName("Postleitzahl")
        public String zipcode = null;

        @DataMember(Name="Ort")
        @SerializedName("Ort")
        public String city = null;

        @DataMember(Name="Postfach")
        @SerializedName("Postfach")
        public String mailbox = null;

        @DataMember(Name="Adresszusatz")
        @SerializedName("Adresszusatz")
        public String additional = null;

        @DataMember(Name="Breitengrad")
        @SerializedName("Breitengrad")
        public Double latitude = null;

        @DataMember(Name="Laengengrad")
        @SerializedName("Laengengrad")
        public Double longitude = null;
        
        public UUID getGuid() { return guid; }
        public Address setGuid(UUID value) { this.guid = value; return this; }
        public String getStreet() { return street; }
        public Address setStreet(String value) { this.street = value; return this; }
        public String getStreet2() { return street2; }
        public Address setStreet2(String value) { this.street2 = value; return this; }
        public String getStreetNumber() { return streetNumber; }
        public Address setStreetNumber(String value) { this.streetNumber = value; return this; }
        public String getZipcode() { return zipcode; }
        public Address setZipcode(String value) { this.zipcode = value; return this; }
        public String getCity() { return city; }
        public Address setCity(String value) { this.city = value; return this; }
        public String getMailbox() { return mailbox; }
        public Address setMailbox(String value) { this.mailbox = value; return this; }
        public String getAdditional() { return additional; }
        public Address setAdditional(String value) { this.additional = value; return this; }
        public Double getLatitude() { return latitude; }
        public Address setLatitude(Double value) { this.latitude = value; return this; }
        public Double getLongitude() { return longitude; }
        public Address setLongitude(Double value) { this.longitude = value; return this; }
    }

    @DataContract
    public static class Appointment
    {
        @DataMember(Name="Guid")
        @SerializedName("Guid")
        public UUID guid = null;

        @DataMember(Name="Von")
        @SerializedName("Von")
        public Date from = null;

        @DataMember(Name="Bis")
        @SerializedName("Bis")
        public Date to = null;

        @DataMember(Name="Monteure")
        @SerializedName("Monteure")
        public IList<AppointmentStoreUser> appointmentStoreUsers = null;

        @DataMember(Name="Nutzeinheiten")
        @SerializedName("Nutzeinheiten")
        public IList<AppointmentNutzeinheit> appointmentNutzeinheiten = null;
        
        public UUID getGuid() { return guid; }
        public Appointment setGuid(UUID value) { this.guid = value; return this; }
        public Date getFrom() { return from; }
        public Appointment setFrom(Date value) { this.from = value; return this; }
        public Date getTo() { return to; }
        public Appointment setTo(Date value) { this.to = value; return this; }
        public IList<AppointmentStoreUser> getAppointmentStoreUsers() { return appointmentStoreUsers; }
        public Appointment setAppointmentStoreUsers(IList<AppointmentStoreUser> value) { this.appointmentStoreUsers = value; return this; }
        public IList<AppointmentNutzeinheit> getAppointmentNutzeinheiten() { return appointmentNutzeinheiten; }
        public Appointment setAppointmentNutzeinheiten(IList<AppointmentNutzeinheit> value) { this.appointmentNutzeinheiten = value; return this; }
    }

    @DataContract
    public static class AppointmentStoreUser
    {
        @DataMember(Name="MonteurGuid")
        @SerializedName("MonteurGuid")
        public UUID storeUserId = null;
        
        public UUID getStoreUserId() { return storeUserId; }
        public AppointmentStoreUser setStoreUserId(UUID value) { this.storeUserId = value; return this; }
    }

    @DataContract
    public static class AppointmentNutzeinheit
    {
        @DataMember(Name="NutzeinheitGuid")
        @SerializedName("NutzeinheitGuid")
        public UUID nutzeinheitGuid = null;
        
        public UUID getNutzeinheitGuid() { return nutzeinheitGuid; }
        public AppointmentNutzeinheit setNutzeinheitGuid(UUID value) { this.nutzeinheitGuid = value; return this; }
    }

    @DataContract
    public static class OrderState
    {
        @DataMember(Name="LastModified")
        @SerializedName("LastModified")
        public Date lastModified = null;

        @DataMember(Name="AuftragArten")
        @SerializedName("AuftragArten")
        public IList<OrderKind> kinds = null;

        @DataMember(Name="Bearbeitungsstatus")
        @SerializedName("Bearbeitungsstatus")
        public ProcessState processState = null;

        @DataMember(Name="AbgeschlossenDatum")
        @SerializedName("AbgeschlossenDatum")
        public Date completedDate = null;
        
        public Date getLastModified() { return lastModified; }
        public OrderState setLastModified(Date value) { this.lastModified = value; return this; }
        public IList<OrderKind> getKinds() { return kinds; }
        public OrderState setKinds(IList<OrderKind> value) { this.kinds = value; return this; }
        public ProcessState getProcessState() { return processState; }
        public OrderState setProcessState(ProcessState value) { this.processState = value; return this; }
        public Date getCompletedDate() { return completedDate; }
        public OrderState setCompletedDate(Date value) { this.completedDate = value; return this; }
    }

    public static enum ProcessState
    {
        InProgress,
        Updating,
        Creating,
        Completed;
    }

    @DataContract
    public static class DeviceOrderState
    {
        @DataMember(Name="GeraeteGuid")
        @SerializedName("GeraeteGuid")
        public UUID deviceGuid = null;

        @DataMember(Name="AuftragGuid")
        @SerializedName("AuftragGuid")
        public UUID orderGuid = null;

        @DataMember(Name="AuftragArt")
        @SerializedName("AuftragArt")
        public DeviceOrderKind orderKind = null;

        @DataMember(Name="Bearbeitungsstatus")
        @SerializedName("Bearbeitungsstatus")
        public ProcessState processState = null;

        @DataMember(Name="AbgeschlossenDatum")
        @SerializedName("AbgeschlossenDatum")
        public Date completedDate = null;

        @DataMember(Name="AmwInfo")
        @SerializedName("AmwInfo")
        public String amwInfo = null;
        
        public UUID getDeviceGuid() { return deviceGuid; }
        public DeviceOrderState setDeviceGuid(UUID value) { this.deviceGuid = value; return this; }
        public UUID getOrderGuid() { return orderGuid; }
        public DeviceOrderState setOrderGuid(UUID value) { this.orderGuid = value; return this; }
        public DeviceOrderKind getOrderKind() { return orderKind; }
        public DeviceOrderState setOrderKind(DeviceOrderKind value) { this.orderKind = value; return this; }
        public ProcessState getProcessState() { return processState; }
        public DeviceOrderState setProcessState(ProcessState value) { this.processState = value; return this; }
        public Date getCompletedDate() { return completedDate; }
        public DeviceOrderState setCompletedDate(Date value) { this.completedDate = value; return this; }
        public String getAmwInfo() { return amwInfo; }
        public DeviceOrderState setAmwInfo(String value) { this.amwInfo = value; return this; }
    }

    public static enum DeviceOrderKind
    {
        Assembly,
        Maintenance,
        Exchange,
        Reading,
        Inspection,
        MainReading;
    }

}

Java GetAppointment DTOs

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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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

GET /Appointment/{Guid} HTTP/1.1 
Host: inea-servamw.eras-online.de 
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"appointment":{"Guid":"00000000000000000000000000000000","Von":"0001-01-01T00:00:00.0000000Z","Bis":"0001-01-01T00:00:00.0000000Z"},"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}