| GET | /galaxy/emergencyservices/history | Get the history of Emergency Services Galaxy panic activations. |
|---|
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports WebService.ClientServiceModel.Galaxy
Imports WebService.ClientServiceModel.Base
Imports CommonService.Api.Models.Base
Namespace Global
Namespace CommonService.Api.Models.Base
Public Partial Class ApiServiceResponse
Implements IServiceResponse
Public Overridable Property Description As String
Public Overridable Property Heading As String
Public Overridable Property WasSuccessful As Boolean
Public Overridable Property ModelState As Object
End Class
End Namespace
Namespace WebService.ClientServiceModel.Base
Public Partial Class ApiServiceRequest
Implements IServiceRequest
Implements IHasApiKey
'''<Summary>
'''The API Key required for authentication
'''</Summary>
<ApiMember(DataType:="string", Description:="The API Key required for authentication", IsRequired:=true)>
Public Overridable Property ApiKey As String
End Class
End Namespace
Namespace WebService.ClientServiceModel.Galaxy
Public Partial Class ActivationHistoryData
'''<Summary>
'''Date and Time of the activation in ISO 8601 format.
'''</Summary>
<ApiMember(Description:="Date and Time of the activation in ISO 8601 format.")>
Public Overridable Property DateActivated As String
'''<Summary>
'''Latitude of the activation location.
'''</Summary>
<ApiMember(Description:="Latitude of the activation location.")>
Public Overridable Property Latitude As Double
'''<Summary>
'''Longitude of the activation location.
'''</Summary>
<ApiMember(Description:="Longitude of the activation location.")>
Public Overridable Property Longitude As Double
End Class
Public Partial Class ActivationHistoryResponse
Inherits ApiServiceResponse
Public Sub New()
ActivationHistory = New List(Of ActivationHistoryData)
End Sub
'''<Summary>
'''Is the requested product set up and enabled on Galaxy.
'''</Summary>
<ApiMember(Description:="Is the requested product set up and enabled on Galaxy.")>
Public Overridable Property ProductAvailable As Boolean
'''<Summary>
'''Does the user have access to this product, based on their Galaxy profile.
'''</Summary>
<ApiMember(Description:="Does the user have access to this product, based on their Galaxy profile.")>
Public Overridable Property UserHasAccess As Boolean
'''<Summary>
'''A list of activation history instances, ordered by most recent first.
'''</Summary>
<ApiMember(Description:="A list of activation history instances, ordered by most recent first.")>
Public Overridable Property ActivationHistory As List(Of ActivationHistoryData)
End Class
Public Partial Class BaseActivationHistoryRequest
Inherits ApiServiceRequest
'''<Summary>
'''ID Number of the user making this request.
'''</Summary>
<ApiMember(Description:="ID Number of the user making this request.", IsRequired:=true)>
Public Overridable Property IdNumber As String
End Class
Public Partial Class EmergencyServicesHistoryRequest
Inherits BaseActivationHistoryRequest
End Class
End Namespace
End Namespace
VB.NET EmergencyServicesHistoryRequest 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.
GET /galaxy/emergencyservices/history HTTP/1.1 Host: galaxymobile.api.client.prod.86degrees.com Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
ProductAvailable: False,
UserHasAccess: False,
ActivationHistory:
[
{
}
],
Description: String,
Heading: String,
WasSuccessful: False,
ModelState: {}
}