-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathBCChatAction.rs
76 lines (66 loc) · 2.87 KB
/
BCChatAction.rs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use core::ffi::*;
use core::ptr::NonNull;
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
/// BCParameterName is used to define custom parameters when opening the transcript.
///
/// See also [Apple's documentation](https://developer.apple.com/documentation/businesschat/bcparametername?language=objc)
// NS_TYPED_EXTENSIBLE_ENUM
pub type BCParameterName = NSString;
extern "C" {
/// Intent is used to help the support agent or business system identify the product, service, account, or other context when the customer tapped the button to send the message.
///
/// See also [Apple's documentation](https://developer.apple.com/documentation/businesschat/bcparameternameintent?language=objc)
pub static BCParameterNameIntent: &'static BCParameterName;
}
extern "C" {
/// Group is used to help the business or customer service platform route the message to the appropriate support agent group.
///
/// See also [Apple's documentation](https://developer.apple.com/documentation/businesschat/bcparameternamegroup?language=objc)
pub static BCParameterNameGroup: &'static BCParameterName;
}
extern "C" {
/// Body is used to help the customer by providing a pre-configured contextual message that the customer can tap to send to smooth the transition into Business Chat.
///
/// See also [Apple's documentation](https://developer.apple.com/documentation/businesschat/bcparameternamebody?language=objc)
pub static BCParameterNameBody: &'static BCParameterName;
}
extern_class!(
/// [Apple's documentation](https://developer.apple.com/documentation/businesschat/bcchataction?language=objc)
#[unsafe(super(NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
#[deprecated]
pub struct BCChatAction;
);
unsafe impl NSObjectProtocol for BCChatAction {}
impl BCChatAction {
extern_methods!(
/// Open the chat transcript configured for a given business.
///
///
/// Parameter `businessIdentifier`: The business identifier for the given business.
///
/// Parameter `intentParameters`: Parameters to be sent with the initial message.
#[deprecated]
#[unsafe(method(openTranscript:intentParameters:))]
#[unsafe(method_family = none)]
pub unsafe fn openTranscript_intentParameters(
business_identifier: &NSString,
intent_parameters: &NSDictionary<BCParameterName, NSString>,
);
);
}
/// Methods declared on superclass `NSObject`.
impl BCChatAction {
extern_methods!(
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub unsafe fn new() -> Retained<Self>;
);
}