GalaxyMobile Client API

<back to all web services

ProtectMeHistoryRequest

The following routes are available for this service:
GET/protectme/historyGet the history of Protect Me panic activations.
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports WebService.ClientServiceModel.ProtectMe
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
    End Namespace

    Namespace WebService.ClientServiceModel.ProtectMe

        Public Partial Class ProtectMeHistoryRequest
            Inherits BaseActivationHistoryRequest
        End Class
    End Namespace
End Namespace

VB.NET ProtectMeHistoryRequest 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.

GET /protectme/history HTTP/1.1 
Host: galaxymobile.api.client.prod.86degrees.com 
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"ProductAvailable":false,"UserHasAccess":false,"ActivationHistory":[{}],"Description":"String","Heading":"String","WasSuccessful":false,"ModelState":{}}