FrameAppWS

<back to all web services

GetCitizenReportsByCitizenRQ

Requires Authentication
The following routes are available for this service:
All Verbs/citizen/getReportByCitizen

export class CoreRS
{
    public Code?: string;
    public ErrorMessage?: string;
    public ErrorStackTrace?: string;

    public constructor(init?: Partial<CoreRS>) { (Object as any).assign(this, init); }
}

export class CitizenReport
{
    public ReportId?: number;
    public CitizenId?: number;
    public Email?: string;
    public ReportType?: number;
    public ReportDesc?: string;
    public Status?: number;
    public StatusDesc?: string;
    public Report?: string;
    public Fields?: { [index: string]: Object; };
    public Longitude?: number;
    public Latitude?: number;
    public InvolvedinIndicent?: number;
    public CreatedDate?: string;
    public CreatedDateDesc?: string;
    public Follow?: { [index:string]: Object; }[];
    public Files?: string[];

    public constructor(init?: Partial<CitizenReport>) { (Object as any).assign(this, init); }
}

export class GetCitizenReportsByCitizenRS extends CoreRS
{
    public Data?: CitizenReport[];

    public constructor(init?: Partial<GetCitizenReportsByCitizenRS>) { super(init); (Object as any).assign(this, init); }
}

export class GetCitizenReportsByCitizenRQ
{
    public Email?: string;

    public constructor(init?: Partial<GetCitizenReportsByCitizenRQ>) { (Object as any).assign(this, init); }
}

TypeScript GetCitizenReportsByCitizenRQ DTOs

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

HTTP + 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
}