GET | /api/packet/getstatus/{GatewayPacketId} |
---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
/**
* Retrieve GatewayPacket status
*/
@Api(Description="Retrieve GatewayPacket status")
public static class GetGatewayPacketStatus
{
public UUID GatewayPacketId = null;
public UUID getGatewayPacketId() { return GatewayPacketId; }
public GetGatewayPacketStatus setGatewayPacketId(UUID value) { this.GatewayPacketId = value; return this; }
}
public static class GatewayPacketStatus
{
public UUID GatewayPacketId = null;
public UUID CommunicationStatusId = null;
public String CommunicationStatus = null;
public String StatusMessage = null;
public Boolean PayloadFinalised = null;
public String AlternateKey = null;
public UUID getGatewayPacketId() { return GatewayPacketId; }
public GatewayPacketStatus setGatewayPacketId(UUID value) { this.GatewayPacketId = value; return this; }
public UUID getCommunicationStatusId() { return CommunicationStatusId; }
public GatewayPacketStatus setCommunicationStatusId(UUID value) { this.CommunicationStatusId = value; return this; }
public String getCommunicationStatus() { return CommunicationStatus; }
public GatewayPacketStatus setCommunicationStatus(String value) { this.CommunicationStatus = value; return this; }
public String getStatusMessage() { return StatusMessage; }
public GatewayPacketStatus setStatusMessage(String value) { this.StatusMessage = value; return this; }
public Boolean isPayloadFinalised() { return PayloadFinalised; }
public GatewayPacketStatus setPayloadFinalised(Boolean value) { this.PayloadFinalised = value; return this; }
public String getAlternateKey() { return AlternateKey; }
public GatewayPacketStatus setAlternateKey(String value) { this.AlternateKey = value; return this; }
}
}
Java GetGatewayPacketStatus DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /api/packet/getstatus/{GatewayPacketId} HTTP/1.1 Host: production-eros-gateway-api-supplierconnect.azurewebsites.net Accept: text/jsonl
HTTP/1.1 200 OK Content-Type: text/jsonl Content-Length: length {"CommunicationStatus":"String","StatusMessage":"String","PayloadFinalised":false,"AlternateKey":"String"}