JDAlertManager Class Reference
provides a manager for adding and removing alerts
More...
List of all members.
Detailed Description
provides a manager for adding and removing alerts
Member Function Documentation
- (BOOL) clearAlertsForUser: |
|
(NSString *) |
userID |
|
|
Clears all alerts for a given user
- Parameters:
-
| userID | ID of the user to clear alerts for |
- Returns:
- true on success false on failure
- (NSMutableArray *) getAlertsWithTractorID: |
|
(unsigned long) |
tractorID |
|
|
Gets the alerts for a particular tractor
- Parameters:
-
| tractorID | ID of the tractor to search for |
- Returns:
- The Array of results for this tractor
- (NSMutableArray *) getAlertsWithUserID: |
|
(unsigned long) |
userID |
|
|
Gets a list of alerts for a certain user
- Parameters:
-
| userID | id of the user to search alerts for |
- Returns:
- Array of results for this user
Initializes Alert Manager and makes sure databases exists.
- (bool) newAlert: |
|
(NSString *) |
parameterName |
tractorID: |
|
(unsigned long) |
vehicleID |
andUserID: |
|
(NSString *) |
userID |
andEnabled: |
|
(BOOL) |
isEnabled | |
|
|
| | |
Creates a new alert in the database or overwrites one that already exists
- Parameters:
-
| parameterName | name of the parameter which the alert is created for |
| tractorID | id of the vehicle to create alert for |
| userID | id of the user to create alert for |
| isEnabled | indicates if the alert is enabled or not |
- Returns:
- true on success false on failure
The documentation for this class was generated from the following files: