Files
kami-parse-server/src/Adapters/Push/PushAdapter.js

27 lines
631 B
JavaScript
Raw Normal View History

// @flow
/*eslint no-unused-vars: "off"*/
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:
// * getValidPushTypes()
// * 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.
export class PushAdapter {
send(body: any, installations: any[], pushStatus: any): ?Promise<*> {}
2016-02-08 12:02:07 -08:00
/**
* Get an array of valid push types.
* @returns {Array} An array of valid push types
*/
getValidPushTypes(): string[] {
return []
}
2016-02-08 12:02:07 -08:00
}
export default PushAdapter;