FrameAppWS

<back to all web services

GetCitizenIncidentsRQ

The following routes are available for this service:
All Verbs/citizen/getcitizenincidents/{Category}
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports Nwa.Model.Tipos.nwa.citizen
Imports Nwa.Model.Tipos.nwa.core
Imports Nwa.Model.Contexto.nwa.citizen

Namespace Global

    Namespace Nwa.Model.Contexto.nwa.citizen

        Public Partial Class CitizenIncidentFull
            Public Sub New()
                Fields = New Dictionary(Of String, Object)
                Files = New List(Of Dictionary(Of String,Object))
                Follow = New List(Of Dictionary(Of String,Object))
            End Sub

            Public Overridable Property ReportId As Long
            Public Overridable Property CitizenEmail As String
            Public Overridable Property CitizenName As String
            Public Overridable Property CitizenPhoneNumber As String
            Public Overridable Property CitizenStatus As String
            Public Overridable Property ReportTypeId As Long
            Public Overridable Property ReportType As String
            Public Overridable Property Report As String
            Public Overridable Property Fields As Dictionary(Of String, Object)
            Public Overridable Property Longitude As Double
            Public Overridable Property Latitude As Double
            Public Overridable Property InvolvedinIndicent As Integer
            Public Overridable Property CreatedDate As String
            Public Overridable Property Files As List(Of Dictionary(Of String,Object))
            Public Overridable Property Follow As List(Of Dictionary(Of String,Object))
            Public Overridable Property Status As String
        End Class
    End Namespace

    Namespace Nwa.Model.Tipos.nwa.citizen

        Public Partial Class GetCitizenIncidentsRQ
            Public Overridable Property Category As String
            Public Overridable Property InitDate As Date
            Public Overridable Property EndDate As Date
            Public Overridable Property Status As String
            Public Overridable Property WithAttachments As Boolean
        End Class

        Public Partial Class GetCitizenIncidentsRS
            Inherits CoreRS
            Public Sub New()
                CitizenIncidents = New List(Of CitizenIncidentFull)
            End Sub

            Public Overridable Property CitizenIncidents As List(Of CitizenIncidentFull)
        End Class
    End Namespace

    Namespace Nwa.Model.Tipos.nwa.core

        Public Partial Class CoreRS
            Public Overridable Property Code As String
            Public Overridable Property ErrorMessage As String
            Public Overridable Property ErrorStackTrace As String
        End Class
    End Namespace
End Namespace

VB.NET GetCitizenIncidentsRQ DTOs

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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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

POST /citizen/getcitizenincidents/{Category} HTTP/1.1 
Host: ws.jimsnwa.com 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"Category":"String","InitDate":"0001-01-01T00:00:00.0000000","EndDate":"0001-01-01T00:00:00.0000000","Status":"String","WithAttachments":false}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"CitizenIncidents":[{"ReportId":0,"CitizenEmail":"String","CitizenName":"String","CitizenPhoneNumber":"String","CitizenStatus":"String","ReportTypeId":0,"ReportType":"String","Report":"String","Fields":{"String":{}},"Longitude":0,"Latitude":0,"InvolvedinIndicent":0,"CreatedDate":"String","Files":[{"String":{}}],"Follow":[{"String":{}}],"Status":"String"}],"Code":"String","ErrorMessage":"String","ErrorStackTrace":"String"}