2016-02-08 12:02:07 -08:00
|
|
|
// Push Adapter
|
|
|
|
|
//
|
|
|
|
|
// Allows you to change the push notification mechanism.
|
|
|
|
|
//
|
|
|
|
|
// Adapter classes must implement the following functions:
|
2016-02-10 12:03:02 -08:00
|
|
|
// * getValidPushTypes()
|
2016-03-12 14:32:39 -05:00
|
|
|
// * send(devices, installations, pushStatus)
|
2016-02-08 12:02:07 -08:00
|
|
|
//
|
|
|
|
|
// Default is ParsePushAdapter, which uses GCM for
|
|
|
|
|
// android push and APNS for ios push.
|
2016-02-21 12:02:18 -05:00
|
|
|
|
2016-02-10 12:03:02 -08:00
|
|
|
export class PushAdapter {
|
2016-03-12 14:32:39 -05:00
|
|
|
send(devices, installations, pushStatus) { }
|
2016-02-08 12:02:07 -08:00
|
|
|
|
2016-02-21 12:02:18 -05:00
|
|
|
/**
|
|
|
|
|
* Get an array of valid push types.
|
|
|
|
|
* @returns {Array} An array of valid push types
|
|
|
|
|
*/
|
2016-02-22 18:31:10 -05:00
|
|
|
getValidPushTypes() {}
|
2016-02-08 12:02:07 -08:00
|
|
|
}
|
|
|
|
|
|
2016-02-10 12:03:02 -08:00
|
|
|
export default PushAdapter;
|