export class ApiServiceRequest implements IServiceRequest, IHasApiKey, IHasDeviceInfo, IHasClientId
{
/**
* The API Key required for authentication
*/
// @ApiMember(DataType="string", Description="The API Key required for authentication", IsRequired=true)
public ApiKey: string;
/**
* Latitude of the user making this request
*/
// @ApiMember(DataType="double", Description="Latitude of the user making this request")
public Latitude: number;
/**
* Longitude of the user making this request
*/
// @ApiMember(DataType="double", Description="Longitude of the user making this request")
public Longitude: number;
public constructor(init?: Partial<ApiServiceRequest>) { (Object as any).assign(this, init); }
}
export class ApiServiceResponse implements IServiceResponse
{
public Description: string;
public Heading: string;
public WasSuccessful: boolean;
public ModelState: Object;
public constructor(init?: Partial<ApiServiceResponse>) { (Object as any).assign(this, init); }
}
export class PulsitModuleStatusItem
{
public PulsitModuleId: string;
public Latitude: number;
public Longitude: number;
public EventDescription: string;
public EventTime: string;
public Status: string;
public PulsitStartId: number;
public constructor(init?: Partial<PulsitModuleStatusItem>) { (Object as any).assign(this, init); }
}
export class PulsitProfileProductItem
{
public Product: string;
public Make: string;
public Model: string;
public Year: string;
public RegistrationNumber: string;
public PulsitModuleId: string;
public LatestStatus: PulsitModuleStatusItem;
public constructor(init?: Partial<PulsitProfileProductItem>) { (Object as any).assign(this, init); }
}
export enum DeviceType
{
Lock = 0,
HomeSecurity = 1,
}
export class PulsitProfileDeviceItem
{
public PulsitModuleId: string;
public Product: string;
public Description: string;
public Type: DeviceType;
public TypeString: string;
public constructor(init?: Partial<PulsitProfileDeviceItem>) { (Object as any).assign(this, init); }
}
export class PulsitProfileResponse extends ApiServiceResponse
{
public Products: PulsitProfileProductItem[];
public Devices: PulsitProfileDeviceItem[];
public constructor(init?: Partial<PulsitProfileResponse>) { super(init); (Object as any).assign(this, init); }
}
export class PulsitProfileRequest extends ApiServiceRequest
{
public constructor(init?: Partial<PulsitProfileRequest>) { super(init); (Object as any).assign(this, init); }
}
TypeScript PulsitProfileRequest 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
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /json/reply/PulsitProfileRequest HTTP/1.1
Host: galaxymobile.api.dev.86degrees.com
Accept: application/json
Content-Type: application/json
Content-Length: length
{"ApiKey":"String","Latitude":0,"Longitude":0}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"Products":[{"Product":"String","Make":"String","Model":"String","Year":"String","RegistrationNumber":"String","PulsitModuleId":"String","LatestStatus":{"PulsitModuleId":"String","Latitude":0,"Longitude":0,"EventDescription":"String","EventTime":"String","Status":"String","PulsitStartId":0}}],"Devices":[{"PulsitModuleId":"String","Product":"String","Description":"String","Type":0,"TypeString":"Lock"}],"Description":"String","Heading":"String","WasSuccessful":false,"ModelState":{}}