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 .jsv suffix or ?format=jsv
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: text/jsv
Content-Type: text/jsv
Content-Length: length
{
User: String,
Status: 0
}
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length { Data: [ { GenerationType: 0, GenerationTypeDesc: String, AlertOrigin: 0, AlertOriginDesc: String, Message: String, Longitude: 0, Latitude: 0, ModifiedUser: String, ModifiedDate: 0001-01-01, ModifiedDateDesc: String, Notes: String, Fullinfo: String, Status: 0, StatusDesc: String } ], Code: String, ErrorMessage: String, ErrorStackTrace: String }