All Verbs | /alerts/getbyuser |
---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class GetAlertsByUserRQ
{
public String User = null;
public Long Status = null;
public String getUser() { return User; }
public GetAlertsByUserRQ setUser(String value) { this.User = value; return this; }
public Long getStatus() { return Status; }
public GetAlertsByUserRQ setStatus(Long value) { this.Status = value; return this; }
}
public static class GetAlertsByUserRS extends CoreRS
{
public ArrayList<SystemAlert> Data = null;
public ArrayList<SystemAlert> getData() { return Data; }
public GetAlertsByUserRS setData(ArrayList<SystemAlert> value) { this.Data = value; return this; }
}
public static class CoreRS
{
public String Code = null;
public String ErrorMessage = null;
public String ErrorStackTrace = null;
public String getCode() { return Code; }
public CoreRS setCode(String value) { this.Code = value; return this; }
public String getErrorMessage() { return ErrorMessage; }
public CoreRS setErrorMessage(String value) { this.ErrorMessage = value; return this; }
public String getErrorStackTrace() { return ErrorStackTrace; }
public CoreRS setErrorStackTrace(String value) { this.ErrorStackTrace = value; return this; }
}
public static class SystemAlert
{
public Long GenerationType = null;
public String GenerationTypeDesc = null;
public Long AlertOrigin = null;
public String AlertOriginDesc = null;
public String Message = null;
public Double Longitude = null;
public Double Latitude = null;
public String ModifiedUser = null;
public Date ModifiedDate = null;
public String ModifiedDateDesc = null;
public String Notes = null;
public String Fullinfo = null;
public Long Status = null;
public String StatusDesc = null;
public Long getGenerationType() { return GenerationType; }
public SystemAlert setGenerationType(Long value) { this.GenerationType = value; return this; }
public String getGenerationTypeDesc() { return GenerationTypeDesc; }
public SystemAlert setGenerationTypeDesc(String value) { this.GenerationTypeDesc = value; return this; }
public Long getAlertOrigin() { return AlertOrigin; }
public SystemAlert setAlertOrigin(Long value) { this.AlertOrigin = value; return this; }
public String getAlertOriginDesc() { return AlertOriginDesc; }
public SystemAlert setAlertOriginDesc(String value) { this.AlertOriginDesc = value; return this; }
public String getMessage() { return Message; }
public SystemAlert setMessage(String value) { this.Message = value; return this; }
public Double getLongitude() { return Longitude; }
public SystemAlert setLongitude(Double value) { this.Longitude = value; return this; }
public Double getLatitude() { return Latitude; }
public SystemAlert setLatitude(Double value) { this.Latitude = value; return this; }
public String getModifiedUser() { return ModifiedUser; }
public SystemAlert setModifiedUser(String value) { this.ModifiedUser = value; return this; }
public Date getModifiedDate() { return ModifiedDate; }
public SystemAlert setModifiedDate(Date value) { this.ModifiedDate = value; return this; }
public String getModifiedDateDesc() { return ModifiedDateDesc; }
public SystemAlert setModifiedDateDesc(String value) { this.ModifiedDateDesc = value; return this; }
public String getNotes() { return Notes; }
public SystemAlert setNotes(String value) { this.Notes = value; return this; }
public String getFullinfo() { return Fullinfo; }
public SystemAlert setFullinfo(String value) { this.Fullinfo = value; return this; }
public Long getStatus() { return Status; }
public SystemAlert setStatus(Long value) { this.Status = value; return this; }
public String getStatusDesc() { return StatusDesc; }
public SystemAlert setStatusDesc(String value) { this.StatusDesc = value; return this; }
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /alerts/getbyuser HTTP/1.1
Host: ws.jimsnwa.com
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<GetAlertsByUserRQ xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Nwa.Model.Tipos.nwa.alerts">
<Status>0</Status>
<User>String</User>
</GetAlertsByUserRQ>
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <GetAlertsByUserRS xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Nwa.Model.Tipos.nwa.alerts"> <Code xmlns="http://schemas.datacontract.org/2004/07/Nwa.Model.Tipos.nwa.core">String</Code> <ErrorMessage xmlns="http://schemas.datacontract.org/2004/07/Nwa.Model.Tipos.nwa.core">String</ErrorMessage> <ErrorStackTrace xmlns="http://schemas.datacontract.org/2004/07/Nwa.Model.Tipos.nwa.core">String</ErrorStackTrace> <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/Nwa.Model.Contexto.nwa.alerts"> <d2p1:SystemAlert> <d2p1:AlertOrigin>0</d2p1:AlertOrigin> <d2p1:AlertOriginDesc>String</d2p1:AlertOriginDesc> <d2p1:Fullinfo>String</d2p1:Fullinfo> <d2p1:GenerationType>0</d2p1:GenerationType> <d2p1:GenerationTypeDesc>String</d2p1:GenerationTypeDesc> <d2p1:Latitude>0</d2p1:Latitude> <d2p1:Longitude>0</d2p1:Longitude> <d2p1:Message>String</d2p1:Message> <d2p1:ModifiedDate>0001-01-01T00:00:00</d2p1:ModifiedDate> <d2p1:ModifiedDateDesc>String</d2p1:ModifiedDateDesc> <d2p1:ModifiedUser>String</d2p1:ModifiedUser> <d2p1:Notes>String</d2p1:Notes> <d2p1:Status>0</d2p1:Status> <d2p1:StatusDesc>String</d2p1:StatusDesc> </d2p1:SystemAlert> </Data> </GetAlertsByUserRS>