This repository has been archived by the owner on Sep 3, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
40 changed files
with
1,440 additions
and
293 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
/** | ||
* Titanium-SDK | ||
* | ||
* Created by Federico Boschini | ||
* Copyright (c) 2018 NearIT. All rights reserved. | ||
*/ | ||
|
||
@interface ComNearitConsts : NSObject | ||
|
||
extern NSString* NEARIT_NATIVE_EVENTS_TOPIC; | ||
extern NSString* NEARIT_LOCAL_EVENTS_TOPIC; | ||
|
||
// Event types | ||
extern NSString* EVENT_TYPE_SIMPLE; | ||
extern NSString* EVENT_TYPE_CUSTOM_JSON; | ||
extern NSString* EVENT_TYPE_COUPON; | ||
extern NSString* EVENT_TYPE_CONTENT; | ||
extern NSString* EVENT_TYPE_FEEDBACK; | ||
|
||
// Events content | ||
extern NSString* EVENT_TYPE; | ||
extern NSString* EVENT_TRACKING_INFO; | ||
extern NSString* EVENT_CONTENT; | ||
extern NSString* EVENT_CONTENT_MESSAGE; | ||
extern NSString* EVENT_CONTENT_DATA; | ||
extern NSString* EVENT_CONTENT_COUPON; | ||
extern NSString* EVENT_CONTENT_TEXT; | ||
extern NSString* EVENT_CONTENT_TITLE; | ||
extern NSString* EVENT_CONTENT_IMAGE; | ||
extern NSString* EVENT_CONTENT_CTA; | ||
extern NSString* EVENT_CONTENT_CTA_LABEL; | ||
extern NSString* EVENT_CONTENT_CTA_LINK; | ||
extern NSString* EVENT_CONTENT_FEEDBACK; | ||
extern NSString* EVENT_CONTENT_QUESTION; | ||
extern NSString* EVENT_STATUS; | ||
|
||
// Error codes | ||
extern NSString* E_SEND_FEEDBACK_ERROR; | ||
extern NSString* E_USER_PROFILE_GET_ERROR; | ||
extern NSString* E_USER_PROFILE_SET_ERROR; | ||
extern NSString* E_USER_PROFILE_RESET_ERROR; | ||
extern NSString* E_USER_PROFILE_CREATE_ERROR; | ||
extern NSString* E_USER_PROFILE_DATA_ERROR; | ||
extern NSString* E_COUPONS_RETRIEVAL_ERROR; | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
/** | ||
* Titanium-SDK | ||
* | ||
* Created by Federico Boschini | ||
* Copyright (c) 2018 NearIT. All rights reserved. | ||
*/ | ||
|
||
#import "ComNearitConsts.h" | ||
|
||
@implementation ComNearitConsts | ||
|
||
NSString* NEARIT_NATIVE_EVENTS_TOPIC = @"NearItEvent"; | ||
NSString* NEARIT_LOCAL_EVENTS_TOPIC = @"NearItTitaniumLocalEvents"; | ||
|
||
// Event types | ||
NSString* EVENT_TYPE_SIMPLE = @"NearIt.Events.SimpleNotification"; | ||
NSString* EVENT_TYPE_CUSTOM_JSON = @"NearIt.Events.CustomJSON"; | ||
NSString* EVENT_TYPE_COUPON = @"NearIt.Events.Coupon"; | ||
NSString* EVENT_TYPE_CONTENT = @"NearIt.Events.Content"; | ||
NSString* EVENT_TYPE_FEEDBACK = @"NearIt.Events.Feedback"; | ||
|
||
// Events content | ||
NSString* EVENT_TYPE = @"contentType"; | ||
NSString* EVENT_TRACKING_INFO = @"trackingInfo"; | ||
NSString* EVENT_CONTENT = @"content"; | ||
NSString* EVENT_CONTENT_MESSAGE = @"message"; | ||
NSString* EVENT_CONTENT_DATA = @"data"; | ||
NSString* EVENT_CONTENT_COUPON = @"coupon"; | ||
NSString* EVENT_CONTENT_TEXT = @"text"; | ||
NSString* EVENT_CONTENT_TITLE = @"title"; | ||
NSString* EVENT_CONTENT_IMAGE = @"image"; | ||
NSString* EVENT_CONTENT_CTA = @"cta"; | ||
NSString* EVENT_CONTENT_CTA_LABEL = @"label"; | ||
NSString* EVENT_CONTENT_CTA_LINK = @"url"; | ||
NSString* EVENT_CONTENT_FEEDBACK = @"feedbackId"; | ||
NSString* EVENT_CONTENT_QUESTION = @"feedbackQuestion"; | ||
NSString* EVENT_STATUS = @"status"; | ||
|
||
// Error codes | ||
NSString* E_SEND_FEEDBACK_ERROR = @"E_SEND_FEEDBACK_ERROR"; | ||
NSString* E_USER_PROFILE_GET_ERROR = @"E_USER_PROFILE_GET_ERROR"; | ||
NSString* E_USER_PROFILE_SET_ERROR = @"E_USER_PROFILE_SET_ERROR"; | ||
NSString* E_USER_PROFILE_RESET_ERROR = @"E_USER_PROFILE_RESET_ERROR"; | ||
NSString* E_USER_PROFILE_CREATE_ERROR = @"E_USER_PROFILE_CREATE_ERROR"; | ||
NSString* E_USER_PROFILE_DATA_ERROR = @"E_USER_PROFILE_DATA_ERROR"; | ||
NSString* E_COUPONS_RETRIEVAL_ERROR = @"E_COUPONS_RETRIEVAL_ERROR"; | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.