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B,EAAE,CAAC,SAAS,CAAC;YAC7B,SAAS,EAAE,CAAC,SAAS,EAAE,KAAK,CAAC;SAC9B,CAAC;OAEW,KAAK,CAyJjB;IAAD,YAAC;CAzJD,AAyJC,CAzJ0B,iBAAiB,GAyJ3C;SAzJY,KAAK","file":"index.js","sourceRoot":"","sourcesContent":["import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core';\nimport { Injectable } from '@angular/core';\n\nexport interface TagOptions {\n sequence: number;\n tags?: Array<string>;\n}\n\nexport interface AliasOptions {\n sequence: number;\n alias?: string;\n}\n\n@Plugin({\n pluginName: 'JPush',\n plugin: 'jpush-phonegap-plugin',\n pluginRef: 'plugins.jPushPlugin',\n repo: 'https://github.com/jpush/jpush-phonegap-plugin',\n install: 'ionic cordova plugin add jpush-phonegap-plugin --variable APP_KEY=your_app_key',\n installVariables: ['APP_KEY'],\n platforms: ['Android', 'iOS']\n})\n\nexport class JPush extends IonicNativePlugin {\n\n @Cordova()\n init(): Promise<any> { return; }\n\n @Cordova()\n setDebugMode(enable: boolean): Promise<any> { return; }\n\n @Cordova()\n getRegistrationID(): Promise<any> { return; }\n\n @Cordova()\n stopPush(): Promise<any> { return; }\n\n @Cordova()\n resumePush(): Promise<any> { return; }\n\n @Cordova()\n isPushStopped(): Promise<any> { return; }\n\n @Cordova()\n setTags(params: TagOptions): Promise<any> { return; }\n\n @Cordova()\n addTags(params: TagOptions): Promise<any> { return; }\n\n @Cordova()\n deleteTags(params: TagOptions): Promise<any> { return; }\n\n @Cordova()\n cleanTags(params: TagOptions): Promise<any> { return; }\n\n @Cordova()\n getAllTags(params: TagOptions): Promise<any> { return; }\n\n /**\n * @param params { sequence: number, tag: string }\n */\n @Cordova()\n checkTagBindState(params: object): Promise<any> { return; }\n\n @Cordova()\n setAlias(params: AliasOptions): Promise<any> { return; }\n\n @Cordova()\n deleteAlias(params: AliasOptions): Promise<any> { return; }\n\n @Cordova()\n getAlias(params: AliasOptions): Promise<any> { return; }\n\n /**\n * Determinate whether the application notification has been opened.\n * \n * iOS: 0: closed; >1: opened.\n * UIRemoteNotificationTypeNone = 0,\n * UIRemoteNotificationTypeBadge = 1 << 0,\n * UIRemoteNotificationTypeSound = 1 << 1,\n * UIRemoteNotificationTypeAlert = 1 << 2,\n * UIRemoteNotificationTypeNewsstandContentAvailability = 1 << 3\n * \n * Android: 0: closed; 1: opened.\n */\n @Cordova()\n getUserNotificationSettings(): Promise<any> { return; }\n\n @Cordova()\n clearLocalNotifications(): Promise<any> { return; }\n\n // iOS API - start\n\n @Cordova()\n setBadge(badge: number): Promise<any> { return; }\n\n @Cordova()\n resetBadge(): Promise<any> { return; }\n\n @Cordova()\n setApplicationIconBadgeNumber(badge: number): Promise<any> { return; }\n\n @Cordova()\n getApplicationIconBadgeNumber(): Promise<any> { return; }\n\n @Cordova()\n addLocalNotificationForIOS(delayTime: number, content: string, badge: number, identifierKey: string, extras?: object): Promise<any> { return; }\n\n @Cordova()\n deleteLocalNotificationWithIdentifierKeyInIOS(identifierKey: string): Promise<any> { return; }\n\n @Cordova()\n addDismissActions(actions: Array<object>, categoryId: string): Promise<any> { return; }\n\n @Cordova()\n addNotificationActions(actions: Array<object>, categoryId: string): Promise<any> { return; }\n\n @Cordova()\n setLocation(latitude: number, longitude: number): Promise<any> { return; }\n\n @Cordova()\n startLogPageView(pageName: string): Promise<any> { return; }\n\n @Cordova()\n stopLogPageView(pageName: string): Promise<any> { return; }\n\n @Cordova()\n beginLogPageView(pageName: string, duration: number): Promise<any> { return; }\n\n // iOS API - end\n\n // Android API - start\n\n @Cordova()\n getConnectionState(): Promise<any> { return; }\n\n @Cordova()\n setBasicPushNotificationBuilder(): Promise<any> { return; }\n\n @Cordova()\n setCustomPushNotificationBuilder(): Promise<any> { return; }\n\n @Cordova()\n clearAllNotification(): Promise<any> { return; }\n\n @Cordova()\n clearNotificationById(id: number): Promise<any> { return; }\n\n @Cordova()\n setLatestNotificationNum(num: number): Promise<any> { return; }\n\n @Cordova()\n addLocalNotification(builderId: number, content: string, title: string, notificationId: number, broadcastTime: number, extras?: string): Promise<any> { return; }\n\n @Cordova()\n removeLocalNotification(notificationId: number): Promise<any> { return; }\n\n @Cordova()\n reportNotificationOpened(msgId: number): Promise<any> { return; }\n\n @Cordova()\n requestPermission(): Promise<any> { return; }\n\n @Cordova()\n setSilenceTime(startHour: number, startMinute: number, endHour: number, endMinute: number): Promise<any> { return; }\n\n @Cordova()\n setPushTime(weekdays: Array<string>, startHour: number, endHour: number): Promise<any> { return; }\n\n // Android API - end\nstatic decorators: DecoratorInvocation[] = [\n{ type: Injectable },\n];\n/** @nocollapse */\nstatic ctorParameters: () => ({type: any, decorators?: DecoratorInvocation[]}|null)[] = () => [\n];\n}\n\ninterface DecoratorInvocation {\n type: Function;\n args?: any[];\n}\n"]}