CopaServer
Change of Plan Application
 All Classes Functions Pages
Public Member Functions | Static Public Attributes | List of all members
unicopa.copa.server.notification.GoogleCloudNotificationService Class Reference

This NotificationService informs Android devices about updates by sending Google Cloud Messages. More...

Inheritance diagram for unicopa.copa.server.notification.GoogleCloudNotificationService:
Inheritance graph
Collaboration diagram for unicopa.copa.server.notification.GoogleCloudNotificationService:
Collaboration graph

Public Member Functions

 GoogleCloudNotificationService (CopaSystemContext context)
 
void notifyClients (SingleEventUpdate update)
 Notify all users on their Android devices where the user has subscribed to get the specified SingleEventUpdate and has added the GCM key for the device to his UserSettings. More...
 
void notifyClient (NotificationEvent event, int userID)
 Uses GoogleCloudMessagingService to notify the client. More...
 
- Public Member Functions inherited from unicopa.copa.server.notification.NotificationService
 NotificationService (CopaSystemContext context)
 Create a new instance of a notification service. More...
 

Static Public Attributes

static final Logger LOG
 

Additional Inherited Members

- Protected Member Functions inherited from unicopa.copa.server.notification.NotificationService
CopaSystemContext getContext ()
 Obtain the system context. More...
 

Detailed Description

This NotificationService informs Android devices about updates by sending Google Cloud Messages.

Author
Felix Wiemuth, Philip Wendland

Member Function Documentation

void unicopa.copa.server.notification.GoogleCloudNotificationService.notifyClient ( NotificationEvent  event,
int  userID 
)
virtual

Uses GoogleCloudMessagingService to notify the client.

The message will be sent to every device which is registered.

Parameters
event
userID

Implements unicopa.copa.server.notification.NotificationService.

void unicopa.copa.server.notification.GoogleCloudNotificationService.notifyClients ( SingleEventUpdate  update)
virtual

Notify all users on their Android devices where the user has subscribed to get the specified SingleEventUpdate and has added the GCM key for the device to his UserSettings.

Parameters
updatethe SingleEventUpdate to inform about

Implements unicopa.copa.server.notification.NotificationService.

Member Data Documentation

final Logger unicopa.copa.server.notification.GoogleCloudNotificationService.LOG
static
Initial value:
= Logger
.getLogger(GoogleCloudNotificationService.class.getName())

The documentation for this class was generated from the following file: