| GET | /galaxy/emergencyservices/history | Get the history of Emergency Services Galaxy panic activations. |
|---|
"use strict";
export class ApiServiceRequest {
/** @param {{ApiKey?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/**
* @type {string}
* @description The API Key required for authentication */
ApiKey;
}
export class BaseActivationHistoryRequest extends ApiServiceRequest {
/** @param {{IdNumber?:string,ApiKey?:string}} [init] */
constructor(init) { super(init); Object.assign(this, init) }
/**
* @type {string}
* @description ID Number of the user making this request. */
IdNumber;
}
export class ApiServiceResponse {
/** @param {{Description?:string,Heading?:string,WasSuccessful?:boolean,ModelState?:Object}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
Description;
/** @type {string} */
Heading;
/** @type {boolean} */
WasSuccessful;
/** @type {Object} */
ModelState;
}
export class ActivationHistoryData {
/** @param {{DateActivated?:string,Latitude?:number,Longitude?:number}} [init] */
constructor(init) { Object.assign(this, init) }
/**
* @type {string}
* @description Date and Time of the activation in ISO 8601 format. */
DateActivated;
/**
* @type {number}
* @description Latitude of the activation location. */
Latitude;
/**
* @type {number}
* @description Longitude of the activation location. */
Longitude;
}
export class ActivationHistoryResponse extends ApiServiceResponse {
/** @param {{ProductAvailable?:boolean,UserHasAccess?:boolean,ActivationHistory?:ActivationHistoryData[],Description?:string,Heading?:string,WasSuccessful?:boolean,ModelState?:Object}} [init] */
constructor(init) { super(init); Object.assign(this, init) }
/**
* @type {boolean}
* @description Is the requested product set up and enabled on Galaxy. */
ProductAvailable;
/**
* @type {boolean}
* @description Does the user have access to this product, based on their Galaxy profile. */
UserHasAccess;
/**
* @type {ActivationHistoryData[]}
* @description A list of activation history instances, ordered by most recent first. */
ActivationHistory;
}
export class EmergencyServicesHistoryRequest extends BaseActivationHistoryRequest {
/** @param {{IdNumber?:string,ApiKey?:string}} [init] */
constructor(init) { super(init); Object.assign(this, init) }
}
JavaScript EmergencyServicesHistoryRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
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/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"ProductAvailable":false,"UserHasAccess":false,"ActivationHistory":[{}],"Description":"String","Heading":"String","WasSuccessful":false,"ModelState":{}}