All Verbs | /citizen/getReportByCitizen |
---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class GetCitizenReportsByCitizenRQ
{
public String Email = null;
public String getEmail() { return Email; }
public GetCitizenReportsByCitizenRQ setEmail(String value) { this.Email = value; return this; }
}
public static class GetCitizenReportsByCitizenRS extends CoreRS
{
public ArrayList<CitizenReport> Data = null;
public ArrayList<CitizenReport> getData() { return Data; }
public GetCitizenReportsByCitizenRS setData(ArrayList<CitizenReport> 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 CitizenReport
{
public Long ReportId = null;
public Long CitizenId = null;
public String Email = null;
public Long ReportType = null;
public String ReportDesc = null;
public Long Status = null;
public String StatusDesc = null;
public String Report = null;
public HashMap<String,Object> Fields = null;
public Double Longitude = null;
public Double Latitude = null;
public Integer InvolvedinIndicent = null;
public Date CreatedDate = null;
public String CreatedDateDesc = null;
public ArrayList<HashMap<String,Object>> Follow = null;
public ArrayList<String> Files = null;
public Long getReportId() { return ReportId; }
public CitizenReport setReportId(Long value) { this.ReportId = value; return this; }
public Long getCitizenId() { return CitizenId; }
public CitizenReport setCitizenId(Long value) { this.CitizenId = value; return this; }
public String getEmail() { return Email; }
public CitizenReport setEmail(String value) { this.Email = value; return this; }
public Long getReportType() { return ReportType; }
public CitizenReport setReportType(Long value) { this.ReportType = value; return this; }
public String getReportDesc() { return ReportDesc; }
public CitizenReport setReportDesc(String value) { this.ReportDesc = value; return this; }
public Long getStatus() { return Status; }
public CitizenReport setStatus(Long value) { this.Status = value; return this; }
public String getStatusDesc() { return StatusDesc; }
public CitizenReport setStatusDesc(String value) { this.StatusDesc = value; return this; }
public String getReport() { return Report; }
public CitizenReport setReport(String value) { this.Report = value; return this; }
public HashMap<String,Object> getFields() { return Fields; }
public CitizenReport setFields(HashMap<String,Object> value) { this.Fields = value; return this; }
public Double getLongitude() { return Longitude; }
public CitizenReport setLongitude(Double value) { this.Longitude = value; return this; }
public Double getLatitude() { return Latitude; }
public CitizenReport setLatitude(Double value) { this.Latitude = value; return this; }
public Integer getInvolvedinIndicent() { return InvolvedinIndicent; }
public CitizenReport setInvolvedinIndicent(Integer value) { this.InvolvedinIndicent = value; return this; }
public Date getCreatedDate() { return CreatedDate; }
public CitizenReport setCreatedDate(Date value) { this.CreatedDate = value; return this; }
public String getCreatedDateDesc() { return CreatedDateDesc; }
public CitizenReport setCreatedDateDesc(String value) { this.CreatedDateDesc = value; return this; }
public ArrayList<HashMap<String,Object>> getFollow() { return Follow; }
public CitizenReport setFollow(ArrayList<HashMap<String,Object>> value) { this.Follow = value; return this; }
public ArrayList<String> getFiles() { return Files; }
public CitizenReport setFiles(ArrayList<String> value) { this.Files = value; return this; }
}
}
Java GetCitizenReportsByCitizenRQ DTOs
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 /citizen/getReportByCitizen HTTP/1.1
Host: ws.jimsnwa.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
Email: String
}
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length { Data: [ { ReportId: 0, CitizenId: 0, Email: String, ReportType: 0, ReportDesc: String, Status: 0, StatusDesc: String, Report: String, Fields: { String: {} }, Longitude: 0, Latitude: 0, InvolvedinIndicent: 0, CreatedDate: 0001-01-01, CreatedDateDesc: String, Follow: [ { String: {} } ], Files: [ String ] } ], Code: String, ErrorMessage: String, ErrorStackTrace: String }