Skip to content

Commit

Permalink
* Added customFields in SBDSKTicket.
Browse files Browse the repository at this point in the history
  • Loading branch information
sf-jed-kyung committed Jul 11, 2019
1 parent 6e9bc1c commit 7c8ed7d
Show file tree
Hide file tree
Showing 10 changed files with 35 additions and 7 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Change Log

### v1.0.4 (Jul 11, 2019)
* Added `customFields` in `SBDSKTicket`.

### v1.0.3(May 13, 2019)
* Added `reopenWithCompletionHandler:` in `SBDSKTicket` class.
* Added `createTicketWithTitle:userName:groupKey:customField:completionHandler:` in `SBDSKTicket` class.
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.0.3</string>
<string>1.0.4</string>
</dict>
</plist>
Binary file not shown.
2 changes: 1 addition & 1 deletion SendBirdDesk.framework/Headers/SBDSKAgent.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// SendBird Desk
//
// Created by SendBird on 3/13/18.
// Copyright © 2018 SendBird All rights reserved.
// Copyright © 2019 SendBird. All rights reserved.
//

#import <Foundation/Foundation.h>
Expand Down
2 changes: 1 addition & 1 deletion SendBirdDesk.framework/Headers/SBDSKMain.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// SendBird Desk
//
// Created by SendBird on 11/21/17.
// Copyright © 2018 SendBird All rights reserved.
// Copyright © 2019 SendBird. All rights reserved.
//

#import <Foundation/Foundation.h>
Expand Down
29 changes: 27 additions & 2 deletions SendBirdDesk.framework/Headers/SBDSKTicket.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// SendBird Desk
//
// Created by SendBird on 4/17/17.
// Copyright © 2017 SendBird. All rights reserved.
// Copyright © 2019 SendBird. All rights reserved.
//

#import <Foundation/Foundation.h>
Expand Down Expand Up @@ -40,6 +40,11 @@
*/
@property (strong, nonatomic, nullable, readonly) SBDGroupChannel *channel;

/**
* A dictionary that contains information you want to deliver. The key and the value of the dictionary should be a type of `NSString`.
*/
@property (strong, nonatomic, nonnull, readonly) NSDictionary<NSString *, NSString *> *customFields;

/**
Refreshes this ticket. After invoking this method, this ticket is updated with the latest data.
Expand Down Expand Up @@ -69,6 +74,23 @@
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 customFields The custom fields 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.4
*/
+ (void)createTicketWithTitle:(nullable NSString *)title
userName:(nullable NSString *)userName
groupKey:(nullable NSString *)groupKey
customFields:(nullable NSDictionary<NSString *, NSString *> *)customFields
completionHandler:(nullable void (^)(SBDSKTicket * _Nullable ticket, SBDError * _Nullable error))completionHandler;

/**
Creates a new ticket with information.
Expand All @@ -78,13 +100,16 @@
@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.
@see use -createTicketWithTitle:userName:groupKey:customFields:completionHandler:
@since 1.0.3
@deprecated 1.0.4
*/
+ (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;
completionHandler:(nullable void (^)(SBDSKTicket * _Nullable ticket, SBDError * _Nullable error))completionHandler
DEPRECATED_MSG_ATTRIBUTE("createTicketWithTitle:userName:groupKey:customFields:completionHandler:");

/**
Gets the count of the opened tickets.
Expand Down
2 changes: 1 addition & 1 deletion SendBirdDesk.framework/Headers/SendBirdDesk.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// SendBird Desk
//
// Created by SendBird on 11/21/17.
// Copyright © 2018 SendBird All rights reserved.
// Copyright © 2019 SendBird. All rights reserved.
//

#import <UIKit/UIKit.h>
Expand Down
Binary file modified SendBirdDesk.framework/Info.plist
Binary file not shown.
Binary file modified SendBirdDesk.framework/SendBirdDesk
Binary file not shown.
2 changes: 1 addition & 1 deletion SendBirdDesk.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "SendBirdDesk"
s.version = "1.0.3"
s.version = "1.0.4"
s.summary = "SendBird Desk iOS Framework"
s.description = "SendBird Desk iOS Framework"
s.homepage = "https://desk.sendbird.com"
Expand Down

0 comments on commit 7c8ed7d

Please sign in to comment.