From 6e8248a0b8197a6559799e54a6abf2e4e4898581 Mon Sep 17 00:00:00 2001 From: Guille Date: Fri, 8 Jul 2016 00:52:13 +0200 Subject: [PATCH] refactor(DeviceAccounts): --- src/plugins/deviceaccounts.ts | 68 ++++++++++++++++++----------------- 1 file changed, 35 insertions(+), 33 deletions(-) diff --git a/src/plugins/deviceaccounts.ts b/src/plugins/deviceaccounts.ts index bc17415c..7497671b 100644 --- a/src/plugins/deviceaccounts.ts +++ b/src/plugins/deviceaccounts.ts @@ -1,33 +1,35 @@ -import {Cordova, Plugin} from './plugin'; -@Plugin({ - plugin: 'https://github.com/loicknuchel/cordova-device-accounts.git', - pluginRef: 'plugins.DeviceAccounts', - repo: 'https://github.com/loicknuchel/cordova-device-accounts', - platforms: ['Android'] -}) -export class DeviceAccounts { - - /** - * Gets all accounts registered on the Android Device - */ - @Cordova() - static get(): Promise {return; } - - /** - * Get all accounts registered on Android device for requested type - */ - @Cordova() - static getByType(type: string): Promise {return; } - - /** - * Get all emails registered on Android device (accounts with 'com.google' type) - */ - @Cordova() - static getEmails(): Promise {return; } - - /** - * Get the first email registered on Android device - */ - @Cordova() - static getEmail(): Promise {return; } -} \ No newline at end of file +import { Cordova, Plugin } from './plugin'; + + +@Plugin({ + plugin: 'https://github.com/loicknuchel/cordova-device-accounts.git', + pluginRef: 'plugins.DeviceAccounts', + repo: 'https://github.com/loicknuchel/cordova-device-accounts', + platforms: ['Android'] +}) +export class DeviceAccounts { + + /** + * Gets all accounts registered on the Android Device + */ + @Cordova() + static get(): Promise { return; } + + /** + * Get all accounts registered on Android device for requested type + */ + @Cordova() + static getByType(type: string): Promise { return; } + + /** + * Get all emails registered on Android device (accounts with 'com.google' type) + */ + @Cordova() + static getEmails(): Promise { return; } + + /** + * Get the first email registered on Android device + */ + @Cordova() + static getEmail(): Promise { return; } +}