Skip to content

Commit

Permalink
* Added reopenWithCompletionHandler: in SBDSKTicket class.
Browse files Browse the repository at this point in the history
* Added `createTicketWithTitle:userName:groupKey:customField:completionHandler:` in `SBDSKTicket` class.
* Added `getOpenedListWithOffset:customFieldFilter:completionHandler:` in `SBDSKTicket` class.
* Added `getClosedListWithOffset:customFieldFilter:completionHandler:` in `SBDSKTicket` class.
  • Loading branch information
sf-jed-kyung committed May 13, 2019
1 parent 02ce001 commit 0465654
Show file tree
Hide file tree
Showing 9 changed files with 80 additions and 12 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Change Log

### v1.0.3(May 13, 2019)
* Added `reopenWithCompletionHandler:` in `SBDSKTicket` class.
* Added `createTicketWithTitle:userName:groupKey:customField:completionHandler:` in `SBDSKTicket` class.
* Added `getOpenedListWithOffset:customFieldFilter:completionHandler:` in `SBDSKTicket` class.
* Added `getClosedListWithOffset:customFieldFilter:completionHandler:` in `SBDSKTicket` class.

### v1.0.2(Mar 30, 2018)
* Support SendBird Desk standalone.

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ target 'YourTarget' do
use_frameworks!
# Pods for YourTarget
pod 'SendBirdDesk', :git => 'https://github.com/smilefam/SendBird-Desk-iOS-Framework', :tag => 'v1.0.2'
pod 'SendBirdDesk', :git => 'https://github.com/smilefam/SendBird-Desk-iOS-Framework', :tag => 'v1.0.3'
end
```
Expand Down
2 changes: 1 addition & 1 deletion SendBirdDesk.framework.dSYM/Contents/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleVersion</key>
<string>1</string>
<string>1.0.3</string>
</dict>
</plist>
Binary file not shown.
8 changes: 5 additions & 3 deletions SendBirdDesk.framework/Headers/SBDSKMain.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
@param queue A dispatch queue that will be used for every completion handler.
*/
+ (void)setCompletionHandlerDelegateQueue:(dispatch_queue_t _Nonnull)queue;
+ (void)setCompletionHandlerDelegateQueue:(nonnull dispatch_queue_t)queue;


/**
Expand All @@ -45,14 +45,16 @@
@param accessToken Access Token
@param completionHandler The handler block to execute. If the method updates this ticket successfully, the `error` will be nil.
*/
+ (void)authenticateWithUserId:(NSString * _Nonnull)userId accessToken:(NSString * _Nullable)accessToken completionHandler:(nullable void (^)(SBDError * _Nullable error))completionHandler;
+ (void)authenticateWithUserId:(nonnull NSString *)userId
accessToken:(nullable NSString *)accessToken
completionHandler:(nullable void (^)(SBDError * _Nullable error))completionHandler;

/**
Checks whether the `channel` is a desk channel or not.
@param channel The channel instance that is necessary to check.
@return If YES, the `channel` is a desk channel.
*/
+ (BOOL)isDeskChannel:(SBDBaseChannel * _Nonnull)channel;
+ (BOOL)isDeskChannel:(nonnull SBDBaseChannel *)channel;

@end
70 changes: 65 additions & 5 deletions SendBirdDesk.framework/Headers/SBDSKTicket.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@
@param confirm The value that a customer uses in order to represent the confirmation of this ticket.
@param completionHandler The handler block to execute. If the method confirms the end of this ticket, the `error` will be nil.
*/
+ (void)confirmEndOfChatWithMessage:(SBDUserMessage * _Nonnull)message confirm:(BOOL)confirm completionHandler:(nullable void (^)(SBDSKTicket * _Nullable ticket, SBDError * _Nullable error))completionHandler;
+ (void)confirmEndOfChatWithMessage:(nonnull SBDUserMessage *)message
confirm:(BOOL)confirm
completionHandler:(nullable void (^)(SBDSKTicket * _Nullable ticket, SBDError * _Nullable error))completionHandler;

/**
Creates a new ticket with information.
Expand All @@ -63,7 +65,26 @@
@param userName The customer's name.
@param completionHandler The handler block to execute. If the method creates a ticket successfully, the `ticket` object will be valid and the `error` will be nil.
*/
+ (void)createTicketWithTitle:(NSString * _Nullable)title userName:(NSString * _Nullable)userName completionHandler:(nullable void (^)(SBDSKTicket * _Nullable ticket, SBDError * _Nullable error))completionHandler;
+ (void)createTicketWithTitle:(nullable NSString *)title
userName:(nullable NSString *)userName
completionHandler:(nullable void (^)(SBDSKTicket * _Nullable ticket, SBDError * _Nullable error))completionHandler;

/**
Creates a new ticket with information.
@param title The <span>title</span> of a new ticket.
@param userName The customer's name.
@param groupKey The agent group key.
@param customField The custom field that the admin already sets on dashboard.
@param completionHandler The handler block to execute. If the method creates a ticket successfully, the `ticket` object will be valid and the `error` will be nil.
@since 1.0.3
*/
+ (void)createTicketWithTitle:(nullable NSString *)title
userName:(nullable NSString *)userName
groupKey:(nullable NSString *)groupKey
customField:(nullable NSDictionary<NSString *, NSString *> *)customField
completionHandler:(nullable void (^)(SBDSKTicket * _Nullable ticket, SBDError * _Nullable error))completionHandler;

/**
Gets the count of the opened tickets.
Expand All @@ -78,22 +99,61 @@
@param offset The offset that represents the position of the full list. It must be 0 in order to get the latest list.
@param completionHandler The handler block to execute. The `tickets` is the array of the opened tickets. The array can be empty, but it doesn't mean that there is an error. If there is the next page of the list, the `hasNext` will be YES. If the method gets the list successfully, the `error` will be nil.
*/
+ (void)getOpenedListWithOffset:(long)offset completionHandler:(nullable void (^)(NSArray<SBDSKTicket *> * _Nonnull tickets, BOOL hasNext, SBDError * _Nullable error))completionHandler;
+ (void)getOpenedListWithOffset:(long)offset
completionHandler:(nullable void (^)(NSArray<SBDSKTicket *> * _Nonnull tickets, BOOL hasNext, SBDError * _Nullable error))completionHandler;

/**
Gets the list of the opened tickets with the offset and custom data filter.
@param offset The offset that represents the position of the full list. It must be 0 in order to get the latest list.
@param customFieldFilter The custom field filter.
@param completionHandler The handler block to execute. The `tickets` is the array of the opened tickets. The array can be empty, but it doesn't mean that there is an error. If there is the next page of the list, the `hasNext` will be YES. If the method gets the list
@since 1.0.3
*/
+ (void)getOpenedListWithOffset:(long)offset
customFieldFilter:(nullable NSDictionary<NSString *, NSString *> *)customFieldFilter
completionHandler:(nullable void (^)(NSArray<SBDSKTicket *> * _Nonnull tickets, BOOL hasNext, SBDError * _Nullable error))completionHandler;

/**
Gets the list of the closed tickets with the offset.
@param offset The offset that represents the position of the full list.
@param completionHandler The handler block to execute. The `tickets` is the array of the closed tickets. The array can be empty, but it doesn't mean that there is an error. If there is the next page of the list, the `hasNext` will be YES. If the method gets the list successfully, the `error` will be nil.
*/
+ (void)getClosedListWithOffset:(long)offset completionHandler:(nullable void (^)(NSArray<SBDSKTicket *> * _Nonnull tickets, BOOL hasNext, SBDError * _Nullable error))completionHandler;
+ (void)getClosedListWithOffset:(long)offset
completionHandler:(nullable void (^)(NSArray<SBDSKTicket *> * _Nonnull tickets, BOOL hasNext, SBDError * _Nullable error))completionHandler;

/**
Gets the list of the closed tickets with the offset and custom data filter.
@param offset The offset that represents the position of the full list.
@param customFieldFilter The custom field filter.
@param completionHandler The handler block to execute. The `tickets` is the array of the closed tickets. The array can be empty, but it doesn't mean that there is an error. If there is the next page of the list, the `hasNext` will be YES. If the method gets the list successfully, the `error` will be nil.
@since 1.0.3
*/
+ (void)getClosedListWithOffset:(long)offset
customFieldFilter:(nullable NSDictionary<NSString *, NSString *> *)customFieldFilter
completionHandler:(nullable void (^)(NSArray<SBDSKTicket *> * _Nonnull tickets, BOOL hasNext, SBDError * _Nullable error))completionHandler;

/**
Gets a ticket by the group <span>channel</span> URL.
@param channelUrl The group <span>channel</span> URL that is connected with a ticket.
@param completionHandler The handler block to execute. If the method gets a ticket successfully, the `error` will be nil.
*/
+ (void)getByChannelUrl:(NSString * _Nonnull)channelUrl completionHandler:(nullable void (^)(SBDSKTicket * _Nullable ticket, SBDError * _Nullable error))completionHandler;
+ (void)getByChannelUrl:(nonnull NSString *)channelUrl
completionHandler:(nullable void (^)(SBDSKTicket * _Nullable ticket, SBDError * _Nullable error))completionHandler;

/**
Reopens the ticket.
@param completionHandler The handler block to execute. If the method gets a ticket successfully, the `error` will be nil.
@since 1.0.3
*/
- (void)reopenWithCompletionHandler:(nullable void (^)(SBDSKTicket * _Nullable ticket, SBDError * _Nullable error))completionHandler;


@end
Binary file modified SendBirdDesk.framework/Info.plist
Binary file not shown.
Binary file modified SendBirdDesk.framework/SendBirdDesk
Binary file not shown.
4 changes: 2 additions & 2 deletions SendBirdDesk.podspec
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Pod::Spec.new do |s|
s.name = "SendBirdDesk"
s.version = "1.0.2"
s.version = "1.0.3"
s.summary = "SendBird Desk iOS Framework"
s.description = "Integrate SendBird into Zendesk and support your customers live."
s.description = "SendBird Desk iOS Framework"
s.homepage = "https://desk.sendbird.com"
s.license = "Commercial"
s.author = { "Jed Gyeong" => "[email protected]" }
Expand Down

0 comments on commit 0465654

Please sign in to comment.