JDAlertManagerImporved Class Reference

provides a manager for adding and removing alerts More...

List of all members.

Public Member Functions

(instancetype) - init
(void) - getAlertsWithUserID:
(NSArray *) - getAlertsWithTractorID:withType:
(bool) - dateCheck:

Properties

NSMutableArray * tractors
NSMutableDictionary * things
JDDatabaseManagerdbManager
JDTractorManagertractorManager
JDMaintenanceManagermManager

Detailed Description

provides a manager for adding and removing alerts


Member Function Documentation

- (NSArray *) getAlertsWithTractorID: (unsigned long)  tractorID
withType: (NSString *)  tractorType 

Gets the alerts for a particular tractor

Parameters:
tractorID ID of the tractor to search for
tractorType specify the type of tractor to load threshold lists
Returns:
The Array of results for this tractor
- (void) getAlertsWithUserID: (NSString *)  userID  

Gets all the alerts for the current user. This is a unique database connected function as it does not return and NSArray * of JDFieldArray objects but of JDTempTractorAlert objects.

Parameters:
userID id of the user (number in string form) to get alerts for
Returns:
NSArray * of JDTempTractorAlert alerts for this user or empty.
- (instancetype) init  

Initializes Alert Manager and makes sure databases exists.


The documentation for this class was generated from the following files:
 All Classes Functions Properties

Generated on 27 Apr 2015 for My Project by  doxygen 1.6.1