Service Class Reference
Inherits from | NSObject |
Declared in | Service.h Service.m |
Tasks
Other Methods
-
+ callService:andPayload:
-
+ callServicePost:andPayload:
-
+ callHttpGet:andPayload:
-
+ checkLicense:
-
+ checkRemindersSet:andFlag:
-
+ setReminder:andFlag:
-
+ encodeImage:
-
+ decodeImage:
-
+ validateEmailAddress:
Other Methods
Class Methods
addReminders:withDates:andFlag:
Service to add Schedule Reminders for the Reminders App
+ (NSString *)addReminders:(EKEventStore *)eventStore withDates:(NSArray *)dates andFlag:(BOOL)enable
Parameters
- eventStore
The Event Store for the Reminders
- dates
The dates for the Reminders
- enable
Whether to add or remove reminders
Return Value
Error string
Declared In
Service.m
base64String:
Helper function for a Base 64 Encoder
+ (NSString *)base64String:(NSString *)str
Parameters
- str
String to convert
Return Value
Base 64 coded string
Declared In
Service.m
callHttpGet:andPayload:
Service to call a service using an HTTP GET
+ (NSString *)callHttpGet:(NSString *)url andPayload:(NSString *)payload
Parameters
- url
The URL of the REST service
- payload
The JSON payload
Return Value
Return error string from the business service
Declared In
Service.m
callService:andPayload:
Service to call server side REST based business services using an HTTP GET
+ (NSString *)callService:(NSString *)url andPayload:(NSString *)payload
Parameters
- url
The URL of the REST service
- payload
The JSON payload
Return Value
Return error string from the business service
Declared In
Service.m
callServicePost:andPayload:
Service to call server side REST based business services using an HTTP POST
+ (NSString *)callServicePost:(NSString *)url andPayload:(NSString *)payload
Parameters
- url
The URL of the REST service
- payload
The JSON payload
Return Value
Return error string from the business service
Declared In
Service.m
checkLicense:
Service to get check if the Users License is valid
+ (BOOL)checkLicense:(PlayerModel *)user
Parameters
- user
The Player
Return Value
True if valid license else return false
Declared In
Service.m
checkRemindersSet:andFlag:
Check if Schedule Reminders are set and if not set them (to sync Reminders across devices)
+ (void)checkRemindersSet:(NSArray *)dates andFlag:(BOOL)currentNotifyState
Parameters
- dates
The dates for the Reminders
- currentNotifyState
Current setting of Notify Reminders
Declared In
Service.m
decodeImage:
Decode an Image from a string
+ (UIImage *)decodeImage:(NSString *)string
Parameters
- str
Base64 encoded image
Return Value
The decoded image
Declared In
Service.m
encodeImage:
Encode an Image to a string for easy server side transport
+ (NSString *)encodeImage:(UIImage *)image
Parameters
- image
UIImage to convert
Return Value
Base64 enocded image as a String
Declared In
Service.m