diff --git a/src/ios/TelerikAppFeedback.framework/Headers b/src/ios/TelerikAppFeedback.framework/Headers deleted file mode 100644 index d5ab97c..0000000 --- a/src/ios/TelerikAppFeedback.framework/Headers +++ /dev/null @@ -1 +0,0 @@ -Versions/A/Headers \ No newline at end of file diff --git a/src/ios/TelerikAppFeedback.framework/Headers/AppFeedback.h b/src/ios/TelerikAppFeedback.framework/Headers/AppFeedback.h new file mode 100644 index 0000000..44b9104 --- /dev/null +++ b/src/ios/TelerikAppFeedback.framework/Headers/AppFeedback.h @@ -0,0 +1,18 @@ +// +// TelerikUI.h +// TelerikUI +// +// Copyright (c) 2013 Telerik. All rights reserved. +// + +@interface TelerikAppFeedback : NSObject + ++ (NSString*)versionString; + +@end + +#import "TKFeedbackController.h" +#import "TKFeedbackDataSource.h" +#import "TKPlatformFeedbackSource.h" +#import "TKFeedbackItem.h" +#import "TKFeedback.h" \ No newline at end of file diff --git a/src/ios/TelerikAppFeedback.framework/Headers/TKFeedback.h b/src/ios/TelerikAppFeedback.framework/Headers/TKFeedback.h new file mode 100644 index 0000000..8bd0a88 --- /dev/null +++ b/src/ios/TelerikAppFeedback.framework/Headers/TKFeedback.h @@ -0,0 +1,24 @@ +// +// TKFeedback.h +// TryAppFeed +// +// Copyright (c) 2014 Telerik. All rights reserved. +// + +@protocol TKFeedbackDataSource; + +@interface TKFeedback : NSObject + ++ (id)dataSource; + ++ (void)setDataSource:(id)dataSource; + ++ (void)showFeedback; + ++ (void)showFeedback:(UIModalTransitionStyle)transitionStyle; + ++ (void)sendFeedback; + ++ (BOOL)feedbackIsShown; + +@end diff --git a/src/ios/TelerikAppFeedback.framework/Headers/TKFeedbackController.h b/src/ios/TelerikAppFeedback.framework/Headers/TKFeedbackController.h new file mode 100644 index 0000000..fa0de57 --- /dev/null +++ b/src/ios/TelerikAppFeedback.framework/Headers/TKFeedbackController.h @@ -0,0 +1,47 @@ +// +// TKFeedbackController.h +// TryAppFeed +// +// Copyright (c) 2014 Telerik. All rights reserved. +// + +@protocol TKFeedbackDataSource; + +/** + Represents a view controller that should be placed on top of your view controller hierarchy. + This way it can detect a shake gesture and initiate the feedback process automatically. + */ +@interface TKFeedbackController : UIViewController + +/** + Initializes the feedback controller. + @param contentController The view controller that can be used as a root view controller in the application. + */ +- (id)initWithContentController:(UIViewController *)contentController; + +/** + The view controller that contain root view controller (read-only). + */ +@property (nonatomic, strong) UIViewController *contentController; + +/** + The data source used to provide the feedback service and storage. + */ +@property (nonatomic, strong) id dataSource; + +/** + Defines whether the controller’s built-in action sheet will shown on shake the device. + */ +@property (nonatomic) BOOL showOnShake; + +/** + Shows the built-in feedback action sheet ('Send Feedback', 'Your Feedback', 'Settings') + */ +- (void)showFeedback; + +/** + Takes a snapshot of the current application screen and creates a new feedback item ready to be added and sent/saved to the data source provider. + */ +- (void)sendFeedback; + +@end diff --git a/src/ios/TelerikAppFeedback.framework/Headers/TKFeedbackDataSource.h b/src/ios/TelerikAppFeedback.framework/Headers/TKFeedbackDataSource.h new file mode 100644 index 0000000..80c946a --- /dev/null +++ b/src/ios/TelerikAppFeedback.framework/Headers/TKFeedbackDataSource.h @@ -0,0 +1,102 @@ +// +// TKFeedbackRepository.h +// TelerikUI +// +// Copyright (c) 2014 Telerik. All rights reserved. +// + +#import "TKFeedbackItem.h" + +/** + The data source protocol used to provide feedback service and storage. + */ +@protocol TKFeedbackDataSource + +/** + Contains the user name. + */ +@property (nonatomic, copy) NSString *userName; + +/** + Returns async the feedback items from the data source provider. + @param handler The completion handler to call when the get operation is complete. + */ +- (void)feedbackItems:(void (^)(NSArray *items, NSError *error))handler; + +/** + Adds async the feedback item to the data source provider. + @param item The feedback item + @param handler The completion handler to call when the add operation is complete. + */ +- (void)addFeedback:(TKFeedbackItem *)item completionHandler:(void (^)(NSError *error))handler; + +/** + Adds async the specified feedback items to the data source provider. + @param feedbackItems The feedback item list + @param handler The completion handler to call when the add operation is complete. + */ +- (void)addFeedbackItems:(NSArray *)feedbackItems completionHandler:(void (^)(NSError *))handler; + +/** + Edits async the feedback item in the data source provider. + @param key The feedback item key + @param state The feedback item state + @param handler The completion handler to call when the edit operation is complete. + */ +- (void)editWithKey:(NSString *)key state:(NSString *)state completionHandler:(void (^)(NSError *error))handler; + +/** + Deletes async the feedback item from the data source provider. + @param key The feedback item key + @param handler The completion handler to call when the delete operation is complete. + */ +- (void)deleteWithKey:(NSString *)key completionHandler:(void (^)(NSError *error))handler; + +@optional + +/** + Contains the user email. + */ +@property (nonatomic, copy) NSString *userEmail; + +/** + Returns async the feedback items filtered by state. + @param state The feedback item state used to filter data + @param handler The completion handler to call when the get operation is complete. + */ +- (void)feedbackItemsByState:(NSString *)state completionHandler:(void (^)(NSArray *items, NSError *error))handler; + +/** + Returns async the feedback items filtered by state and skip number of items. + @param state The feedback item state used to filter data + @param skip The number of skipped items + @param handler The completion handler to call when the get operation is complete. + */ +- (void)feedbackItemsByState:(NSString *)state skip:(NSInteger)skip completionHandler:(void (^)(NSArray *, NSError *))handler; + +/** + Returns screenshot image of the feedback item using key. + @param key The feedback item key + @param handler The completion handler to call when the image download is complete. + */ +- (void)imageForKey:(NSString *)key completionHandler:(void (^)(UIImage *image, NSError *error))handler; + +/** + Returns async the comment feedback items using a key of item from the data source provider. + @param key The parent feedback item key + @param handler The completion handler to call when the get operation for comments is complete. + */ +- (void)subItemsForKey:(NSString *)key completionHandler:(void (^)(NSArray *items, NSError *error))handler; + +/** + Adds async the comment feedback item using a key of item to the data source provider. + @param key The parent feedback item key + @param item The comment feedback item + @param handler The completion handler to call when the add operation for comment is complete. + */ +- (void)addSubItemForKey:(NSString *)key subItem:(TKFeedbackItem *)item completionHandler:(void (^)(NSError *error))handler; + +@end + + + diff --git a/src/ios/TelerikAppFeedback.framework/Headers/TKFeedbackItem.h b/src/ios/TelerikAppFeedback.framework/Headers/TKFeedbackItem.h new file mode 100644 index 0000000..43f0df4 --- /dev/null +++ b/src/ios/TelerikAppFeedback.framework/Headers/TKFeedbackItem.h @@ -0,0 +1,66 @@ +// +// TKFeedbackItem.h +// TelerikUI +// +// Copyright (c) 2014 Telerik. All rights reserved. +// + +/** + The model of feedback item used to provide feedback service and storage. + */ +@interface TKFeedbackItem : NSObject + +/** + The feedback item key. + */ +@property (nonatomic, copy) NSString *key; + +/** + The feedback item date of creation. + */ +@property (nonatomic, strong) NSDate *createdAt; + +/** + The feedback item date of modification. + */ +@property (nonatomic, strong) NSDate *modifiedAt; + +/** + The feedback item description text. + */ +@property (nonatomic, copy) NSString *text; + +/** + The feedback item author. + */ +@property (nonatomic, copy) NSString *author; + +/** + The feedback item screenshot image. + */ +@property (nonatomic, strong) UIImage *image; + +/** + The feedback item state ('Open', 'Resolved'). + */ +@property (nonatomic, copy) NSString *state; + +/** + The feedback item comments items. + */ +- (NSArray *)subItems; + +/** + Adds a comment feedback item to the subItems collection. + @param item The comment feedback item + */ +- (void)addSubItem:(TKFeedbackItem *)item; + +/** + Inserts a comment feedback in the subItems collection at the specified index. + @param item The comment feedback item + @param index The index. + */ +- (void)insertSubItem:(TKFeedbackItem *)item atIndex:(NSUInteger)index; + +@end diff --git a/src/ios/TelerikAppFeedback.framework/Headers/TKPlatformFeedbackSource.h b/src/ios/TelerikAppFeedback.framework/Headers/TKPlatformFeedbackSource.h new file mode 100644 index 0000000..264dd82 --- /dev/null +++ b/src/ios/TelerikAppFeedback.framework/Headers/TKPlatformFeedbackSource.h @@ -0,0 +1,57 @@ +// +// TKPlatformFeedbackRepository.h +// TelerikUI +// +// Copyright (c) 2014 Telerik. All rights reserved. +// + +#import "TKFeedbackDataSource.h" + +/** + The feedback data source implementation for the Telerik Platform AppFeedback service. + */ +@interface TKPlatformFeedbackSource : NSObject + +/** + Initializes a new instnace of the object. + @param apiKey The apiKey used to connect with Telerik platform. + */ +- (id)initWithKey:(NSString *)apiKey; + +/** + Initializes a new instnace of the object. + @param apiKey The apiKey used to connect with Telerik platform. + @param uid The user id used to connect with Telerik platform. + */ +- (id)initWithKey:(NSString *)apiKey uid:(NSString *)uid; + +/* + Initializes a new instance of the object. + @param apiKey The apiKey used to connect with Telerik platform. + @param uid The user id used to connect with Telerik platform. + @param apiBaseURL The base url to use when connecting with the server. + @param parameters Key/value pairs that will be appended with every query to the server. + */ +- (id)initWithKey:(NSString *)apiKey uid:(NSString *)uid apiBaseURL:(NSString *)apiBaseUrl parameters:(NSDictionary*)parameters; + +/** + The API key created in the Telerik AppFeedback service for your application. + */ +@property (nonatomic, copy) NSString *apiKey; + +/** + The user ID used to send feedback. + */ +@property (nonatomic, copy) NSString *UID; + +/** + The base URL to use when connecting to the server + */ +@property (nonatomic, copy) NSString *baseURL; + +/** + A dictionary containing additional parameters to sent to the server with every request. + */ +@property (nonatomic, strong) NSDictionary *parameters; + +@end diff --git a/src/ios/TelerikAppFeedback.framework/TelerikAppFeedback b/src/ios/TelerikAppFeedback.framework/TelerikAppFeedback index 94dc4ae..446128b 100644 Binary files a/src/ios/TelerikAppFeedback.framework/TelerikAppFeedback and b/src/ios/TelerikAppFeedback.framework/TelerikAppFeedback differ diff --git a/src/ios/TelerikAppFeedback.framework/Versions/Current b/src/ios/TelerikAppFeedback.framework/Versions/Current deleted file mode 100644 index 8c7e5a6..0000000 --- a/src/ios/TelerikAppFeedback.framework/Versions/Current +++ /dev/null @@ -1 +0,0 @@ -A \ No newline at end of file diff --git a/src/ios/TelerikAppFeedback.framework/Versions/Current/AppFeedback.h b/src/ios/TelerikAppFeedback.framework/Versions/Current/AppFeedback.h new file mode 100644 index 0000000..44b9104 --- /dev/null +++ b/src/ios/TelerikAppFeedback.framework/Versions/Current/AppFeedback.h @@ -0,0 +1,18 @@ +// +// TelerikUI.h +// TelerikUI +// +// Copyright (c) 2013 Telerik. All rights reserved. +// + +@interface TelerikAppFeedback : NSObject + ++ (NSString*)versionString; + +@end + +#import "TKFeedbackController.h" +#import "TKFeedbackDataSource.h" +#import "TKPlatformFeedbackSource.h" +#import "TKFeedbackItem.h" +#import "TKFeedback.h" \ No newline at end of file diff --git a/src/ios/TelerikAppFeedback.framework/Versions/Current/TKFeedback.h b/src/ios/TelerikAppFeedback.framework/Versions/Current/TKFeedback.h new file mode 100644 index 0000000..8bd0a88 --- /dev/null +++ b/src/ios/TelerikAppFeedback.framework/Versions/Current/TKFeedback.h @@ -0,0 +1,24 @@ +// +// TKFeedback.h +// TryAppFeed +// +// Copyright (c) 2014 Telerik. All rights reserved. +// + +@protocol TKFeedbackDataSource; + +@interface TKFeedback : NSObject + ++ (id)dataSource; + ++ (void)setDataSource:(id)dataSource; + ++ (void)showFeedback; + ++ (void)showFeedback:(UIModalTransitionStyle)transitionStyle; + ++ (void)sendFeedback; + ++ (BOOL)feedbackIsShown; + +@end diff --git a/src/ios/TelerikAppFeedback.framework/Versions/Current/TKFeedbackController.h b/src/ios/TelerikAppFeedback.framework/Versions/Current/TKFeedbackController.h new file mode 100644 index 0000000..fa0de57 --- /dev/null +++ b/src/ios/TelerikAppFeedback.framework/Versions/Current/TKFeedbackController.h @@ -0,0 +1,47 @@ +// +// TKFeedbackController.h +// TryAppFeed +// +// Copyright (c) 2014 Telerik. All rights reserved. +// + +@protocol TKFeedbackDataSource; + +/** + Represents a view controller that should be placed on top of your view controller hierarchy. + This way it can detect a shake gesture and initiate the feedback process automatically. + */ +@interface TKFeedbackController : UIViewController + +/** + Initializes the feedback controller. + @param contentController The view controller that can be used as a root view controller in the application. + */ +- (id)initWithContentController:(UIViewController *)contentController; + +/** + The view controller that contain root view controller (read-only). + */ +@property (nonatomic, strong) UIViewController *contentController; + +/** + The data source used to provide the feedback service and storage. + */ +@property (nonatomic, strong) id dataSource; + +/** + Defines whether the controller’s built-in action sheet will shown on shake the device. + */ +@property (nonatomic) BOOL showOnShake; + +/** + Shows the built-in feedback action sheet ('Send Feedback', 'Your Feedback', 'Settings') + */ +- (void)showFeedback; + +/** + Takes a snapshot of the current application screen and creates a new feedback item ready to be added and sent/saved to the data source provider. + */ +- (void)sendFeedback; + +@end diff --git a/src/ios/TelerikAppFeedback.framework/Versions/Current/TKFeedbackDataSource.h b/src/ios/TelerikAppFeedback.framework/Versions/Current/TKFeedbackDataSource.h new file mode 100644 index 0000000..80c946a --- /dev/null +++ b/src/ios/TelerikAppFeedback.framework/Versions/Current/TKFeedbackDataSource.h @@ -0,0 +1,102 @@ +// +// TKFeedbackRepository.h +// TelerikUI +// +// Copyright (c) 2014 Telerik. All rights reserved. +// + +#import "TKFeedbackItem.h" + +/** + The data source protocol used to provide feedback service and storage. + */ +@protocol TKFeedbackDataSource + +/** + Contains the user name. + */ +@property (nonatomic, copy) NSString *userName; + +/** + Returns async the feedback items from the data source provider. + @param handler The completion handler to call when the get operation is complete. + */ +- (void)feedbackItems:(void (^)(NSArray *items, NSError *error))handler; + +/** + Adds async the feedback item to the data source provider. + @param item The feedback item + @param handler The completion handler to call when the add operation is complete. + */ +- (void)addFeedback:(TKFeedbackItem *)item completionHandler:(void (^)(NSError *error))handler; + +/** + Adds async the specified feedback items to the data source provider. + @param feedbackItems The feedback item list + @param handler The completion handler to call when the add operation is complete. + */ +- (void)addFeedbackItems:(NSArray *)feedbackItems completionHandler:(void (^)(NSError *))handler; + +/** + Edits async the feedback item in the data source provider. + @param key The feedback item key + @param state The feedback item state + @param handler The completion handler to call when the edit operation is complete. + */ +- (void)editWithKey:(NSString *)key state:(NSString *)state completionHandler:(void (^)(NSError *error))handler; + +/** + Deletes async the feedback item from the data source provider. + @param key The feedback item key + @param handler The completion handler to call when the delete operation is complete. + */ +- (void)deleteWithKey:(NSString *)key completionHandler:(void (^)(NSError *error))handler; + +@optional + +/** + Contains the user email. + */ +@property (nonatomic, copy) NSString *userEmail; + +/** + Returns async the feedback items filtered by state. + @param state The feedback item state used to filter data + @param handler The completion handler to call when the get operation is complete. + */ +- (void)feedbackItemsByState:(NSString *)state completionHandler:(void (^)(NSArray *items, NSError *error))handler; + +/** + Returns async the feedback items filtered by state and skip number of items. + @param state The feedback item state used to filter data + @param skip The number of skipped items + @param handler The completion handler to call when the get operation is complete. + */ +- (void)feedbackItemsByState:(NSString *)state skip:(NSInteger)skip completionHandler:(void (^)(NSArray *, NSError *))handler; + +/** + Returns screenshot image of the feedback item using key. + @param key The feedback item key + @param handler The completion handler to call when the image download is complete. + */ +- (void)imageForKey:(NSString *)key completionHandler:(void (^)(UIImage *image, NSError *error))handler; + +/** + Returns async the comment feedback items using a key of item from the data source provider. + @param key The parent feedback item key + @param handler The completion handler to call when the get operation for comments is complete. + */ +- (void)subItemsForKey:(NSString *)key completionHandler:(void (^)(NSArray *items, NSError *error))handler; + +/** + Adds async the comment feedback item using a key of item to the data source provider. + @param key The parent feedback item key + @param item The comment feedback item + @param handler The completion handler to call when the add operation for comment is complete. + */ +- (void)addSubItemForKey:(NSString *)key subItem:(TKFeedbackItem *)item completionHandler:(void (^)(NSError *error))handler; + +@end + + + diff --git a/src/ios/TelerikAppFeedback.framework/Versions/Current/TKFeedbackItem.h b/src/ios/TelerikAppFeedback.framework/Versions/Current/TKFeedbackItem.h new file mode 100644 index 0000000..43f0df4 --- /dev/null +++ b/src/ios/TelerikAppFeedback.framework/Versions/Current/TKFeedbackItem.h @@ -0,0 +1,66 @@ +// +// TKFeedbackItem.h +// TelerikUI +// +// Copyright (c) 2014 Telerik. All rights reserved. +// + +/** + The model of feedback item used to provide feedback service and storage. + */ +@interface TKFeedbackItem : NSObject + +/** + The feedback item key. + */ +@property (nonatomic, copy) NSString *key; + +/** + The feedback item date of creation. + */ +@property (nonatomic, strong) NSDate *createdAt; + +/** + The feedback item date of modification. + */ +@property (nonatomic, strong) NSDate *modifiedAt; + +/** + The feedback item description text. + */ +@property (nonatomic, copy) NSString *text; + +/** + The feedback item author. + */ +@property (nonatomic, copy) NSString *author; + +/** + The feedback item screenshot image. + */ +@property (nonatomic, strong) UIImage *image; + +/** + The feedback item state ('Open', 'Resolved'). + */ +@property (nonatomic, copy) NSString *state; + +/** + The feedback item comments items. + */ +- (NSArray *)subItems; + +/** + Adds a comment feedback item to the subItems collection. + @param item The comment feedback item + */ +- (void)addSubItem:(TKFeedbackItem *)item; + +/** + Inserts a comment feedback in the subItems collection at the specified index. + @param item The comment feedback item + @param index The index. + */ +- (void)insertSubItem:(TKFeedbackItem *)item atIndex:(NSUInteger)index; + +@end diff --git a/src/ios/TelerikAppFeedback.framework/Versions/Current/TKPlatformFeedbackSource.h b/src/ios/TelerikAppFeedback.framework/Versions/Current/TKPlatformFeedbackSource.h new file mode 100644 index 0000000..264dd82 --- /dev/null +++ b/src/ios/TelerikAppFeedback.framework/Versions/Current/TKPlatformFeedbackSource.h @@ -0,0 +1,57 @@ +// +// TKPlatformFeedbackRepository.h +// TelerikUI +// +// Copyright (c) 2014 Telerik. All rights reserved. +// + +#import "TKFeedbackDataSource.h" + +/** + The feedback data source implementation for the Telerik Platform AppFeedback service. + */ +@interface TKPlatformFeedbackSource : NSObject + +/** + Initializes a new instnace of the object. + @param apiKey The apiKey used to connect with Telerik platform. + */ +- (id)initWithKey:(NSString *)apiKey; + +/** + Initializes a new instnace of the object. + @param apiKey The apiKey used to connect with Telerik platform. + @param uid The user id used to connect with Telerik platform. + */ +- (id)initWithKey:(NSString *)apiKey uid:(NSString *)uid; + +/* + Initializes a new instance of the object. + @param apiKey The apiKey used to connect with Telerik platform. + @param uid The user id used to connect with Telerik platform. + @param apiBaseURL The base url to use when connecting with the server. + @param parameters Key/value pairs that will be appended with every query to the server. + */ +- (id)initWithKey:(NSString *)apiKey uid:(NSString *)uid apiBaseURL:(NSString *)apiBaseUrl parameters:(NSDictionary*)parameters; + +/** + The API key created in the Telerik AppFeedback service for your application. + */ +@property (nonatomic, copy) NSString *apiKey; + +/** + The user ID used to send feedback. + */ +@property (nonatomic, copy) NSString *UID; + +/** + The base URL to use when connecting to the server + */ +@property (nonatomic, copy) NSString *baseURL; + +/** + A dictionary containing additional parameters to sent to the server with every request. + */ +@property (nonatomic, strong) NSDictionary *parameters; + +@end