CopaApp
Change of Plan Application
 All Classes Functions Variables Pages
Public Member Functions | List of all members
unicopa.copa.app.SettingsLocal Class Reference

This class extends the BaseClass Settings with notification kind and last update. More...

Inheritance diagram for unicopa.copa.app.SettingsLocal:
Inheritance graph
Collaboration diagram for unicopa.copa.app.SettingsLocal:
Collaboration graph

Public Member Functions

 SettingsLocal ()
 Class constructor without initialization.
 
 SettingsLocal (Set< String > gcmKeys, boolean emailNotification, String language, Map< Integer, UserEventSettings > eventSettings, int notificationKind, Date lastUpdate, String localGcmKey)
 Class constructor with initialization. More...
 
void setNotificationKind (int notificationKind)
 
int getNotificationKind ()
 
void setLastUpdate (Date lastUpdate)
 
Date getLastUpdate ()
 
void setLocalGcmKey (String localGcmKey)
 
String getLocalGcmKey ()
 
void setUserName (String userName)
 
String getUserName ()
 
- Public Member Functions inherited from unicopa.copa.base.UserSettings
 UserSettings (Set< String > gcmKeys, boolean emailNotification, String language, Map< Integer, UserEventSettings > eventSettings)
 The constructor for UserSettings that is used by the Mapper.
 
 UserSettings ()
 The default constructor for class UserSettings.
 
boolean addGCMKey (String key)
 Enable notifications for a Google Cloud Messaging key. More...
 
boolean removeGCMKey (String key)
 Disable notifications for a Google Cloud Messaging key. More...
 
Set< String > getGCMKeys ()
 Get the set of GCM keys. More...
 
void enableEmailNotification ()
 Enable notification by email.
 
void disableEmailNotification ()
 Disable notification by email.
 
boolean isEmailNotificationEnabled ()
 Check if email notification is enabled. More...
 
String getLanguage ()
 Get the user interface language that is currently set. More...
 
void setLanguage (String language)
 Set the user interface language. More...
 
UserEventSettings putEventSettings (int eventID, UserEventSettings settings)
 Associate the specified settings with the specified event. More...
 
UserEventSettings removeEventSettings (int eventID)
 Remove the settings that are associated with the specified event if it is present. More...
 
UserEventSettings getEventSettings (int eventID)
 Get the settings associated with the specified event. More...
 
boolean addSubscription (int eventID)
 Add a subscription for an event. More...
 
boolean removeSubscription (int eventID)
 Remove a subscribtion for an event. More...
 
boolean hasSubscribed (int eventID)
 Check if the user has subscribed to an event. More...
 
Set< Integer > getSubscriptions ()
 Returns the Set of the subscribed EventIDs. More...
 

Detailed Description

This class extends the BaseClass Settings with notification kind and last update.

Author
Martin Rabe, Robin Muench

Constructor & Destructor Documentation

unicopa.copa.app.SettingsLocal.SettingsLocal ( Set< String >  gcmKeys,
boolean  emailNotification,
String  language,
Map< Integer, UserEventSettings eventSettings,
int  notificationKind,
Date  lastUpdate,
String  localGcmKey 
)

Class constructor with initialization.

Parameters
GcmKeys
EmailNotification
Language
EventSettings
NotificationKind
LastUpdate
LocalGcmKey

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