This class extends the BaseClass Settings with notification kind and last update. More...
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 () |
![]() | |
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... | |
This class extends the BaseClass Settings with notification kind and last update.
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.
GcmKeys | |
EmailNotification | |
Language | |
EventSettings | |
NotificationKind | |
LastUpdate | |
LocalGcmKey |