Commit 29784822 by Sebastián Katzer

Styleguide fix

parent 6a13b250
...@@ -17,7 +17,8 @@ ...@@ -17,7 +17,8 @@
* *
* @param {NSMutableDictionary} options * @param {NSMutableDictionary} options
*/ */
- (void) add:(CDVInvokedUrlCommand*)command { - (void) add:(CDVInvokedUrlCommand*)command
{
NSArray *arguments = [command arguments]; NSArray *arguments = [command arguments];
NSMutableDictionary *options = [arguments objectAtIndex:0]; NSMutableDictionary *options = [arguments objectAtIndex:0];
UILocalNotification *notification = [self prepareNotification:options]; UILocalNotification *notification = [self prepareNotification:options];
...@@ -32,7 +33,8 @@ ...@@ -32,7 +33,8 @@
* *
* @param {NSString} id Die ID der Notification * @param {NSString} id Die ID der Notification
*/ */
- (void) cancel:(CDVInvokedUrlCommand*)command { - (void) cancel:(CDVInvokedUrlCommand*)command
{
NSArray *arguments = [command arguments]; NSArray *arguments = [command arguments];
NSString *notificationId = [arguments objectAtIndex:0]; NSString *notificationId = [arguments objectAtIndex:0];
NSArray *notifications = [[UIApplication sharedApplication] scheduledLocalNotifications]; NSArray *notifications = [[UIApplication sharedApplication] scheduledLocalNotifications];
...@@ -49,14 +51,16 @@ ...@@ -49,14 +51,16 @@
/** /**
* Entfernt alle registrierten Einträge. * Entfernt alle registrierten Einträge.
*/ */
- (void) cancelAll:(CDVInvokedUrlCommand*)command { - (void) cancelAll:(CDVInvokedUrlCommand*)command
{
[[UIApplication sharedApplication] cancelAllLocalNotifications]; [[UIApplication sharedApplication] cancelAllLocalNotifications];
} }
/** /**
* @private * @private
*/ */
- (NSMutableDictionary*) repeatDict { - (NSMutableDictionary*) repeatDict
{
NSMutableDictionary *repeatDict = [[NSMutableDictionary alloc] init]; NSMutableDictionary *repeatDict = [[NSMutableDictionary alloc] init];
[repeatDict setObject:[NSNumber numberWithInt:NSDayCalendarUnit] forKey:@"daily"]; [repeatDict setObject:[NSNumber numberWithInt:NSDayCalendarUnit] forKey:@"daily"];
...@@ -71,7 +75,8 @@ ...@@ -71,7 +75,8 @@
/** /**
* @private * @private
*/ */
- (NSDictionary*) userDict:(NSMutableDictionary*)options { - (NSDictionary*) userDict:(NSMutableDictionary*)options
{
NSString *notificationId = [options objectForKey:@"id"]; NSString *notificationId = [options objectForKey:@"id"];
NSString *bg = [options objectForKey:@"background"]; NSString *bg = [options objectForKey:@"background"];
NSString *fg = [options objectForKey:@"foreground"]; NSString *fg = [options objectForKey:@"foreground"];
...@@ -84,7 +89,8 @@ ...@@ -84,7 +89,8 @@
/** /**
* @private * @private
*/ */
- (UILocalNotification*) prepareNotification:(NSMutableDictionary*)options { - (UILocalNotification*) prepareNotification:(NSMutableDictionary*)options
{
double timestamp = [[options objectForKey:@"date"] doubleValue]; double timestamp = [[options objectForKey:@"date"] doubleValue];
NSString* msg = [options objectForKey:@"message"]; NSString* msg = [options objectForKey:@"message"];
NSString* action = [options objectForKey:@"action"]; NSString* action = [options objectForKey:@"action"];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment