FrameAppWS

<back to all web services

GetCitizenReportsByCitizenIdRQ

The following routes are available for this service:
All Verbs/citizen/getReportByCitizenId
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class GetCitizenReportsByCitizenIdRQ
    {
        public Integer Id = null;
        
        public Integer getId() { return Id; }
        public GetCitizenReportsByCitizenIdRQ setId(Integer value) { this.Id = 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 GetCitizenReportsByCitizenIdRQ DTOs

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

HTTP + XML

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

POST /citizen/getReportByCitizenId HTTP/1.1 
Host: ws.jimsnwa.com 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<GetCitizenReportsByCitizenIdRQ xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Nwa.Model.Tipos.nwa.citizen">
  <Id>0</Id>
</GetCitizenReportsByCitizenIdRQ>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<GetCitizenReportsByCitizenRS xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Nwa.Model.Tipos.nwa.citizen">
  <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.citizen">
    <d2p1:CitizenReport>
      <d2p1:CitizenId>0</d2p1:CitizenId>
      <d2p1:CreatedDate>0001-01-01T00:00:00</d2p1:CreatedDate>
      <d2p1:CreatedDateDesc>String</d2p1:CreatedDateDesc>
      <d2p1:Email>String</d2p1:Email>
      <d2p1:Fields xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:KeyValueOfstringanyType>
          <d4p1:Key>String</d4p1:Key>
          <d4p1:Value />
        </d4p1:KeyValueOfstringanyType>
      </d2p1:Fields>
      <d2p1:Files xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:string>String</d4p1:string>
      </d2p1:Files>
      <d2p1:Follow xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:ArrayOfKeyValueOfstringanyType>
          <d4p1:KeyValueOfstringanyType>
            <d4p1:Key>String</d4p1:Key>
            <d4p1:Value />
          </d4p1:KeyValueOfstringanyType>
        </d4p1:ArrayOfKeyValueOfstringanyType>
      </d2p1:Follow>
      <d2p1:InvolvedinIndicent>0</d2p1:InvolvedinIndicent>
      <d2p1:Latitude>0</d2p1:Latitude>
      <d2p1:Longitude>0</d2p1:Longitude>
      <d2p1:Report>String</d2p1:Report>
      <d2p1:ReportDesc>String</d2p1:ReportDesc>
      <d2p1:ReportId>0</d2p1:ReportId>
      <d2p1:ReportType>0</d2p1:ReportType>
      <d2p1:Status>0</d2p1:Status>
      <d2p1:StatusDesc>String</d2p1:StatusDesc>
    </d2p1:CitizenReport>
  </Data>
</GetCitizenReportsByCitizenRS>