objc2_pass_kit/generated/
PKSuicaPassProperties.rs1use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9extern_class!(
10 #[unsafe(super(PKTransitPassProperties, PKStoredValuePassProperties, NSObject))]
12 #[derive(Debug, PartialEq, Eq, Hash)]
13 #[cfg(all(
14 feature = "PKStoredValuePassProperties",
15 feature = "PKTransitPassProperties"
16 ))]
17 pub struct PKSuicaPassProperties;
18);
19
20#[cfg(all(
21 feature = "PKStoredValuePassProperties",
22 feature = "PKTransitPassProperties"
23))]
24extern_conformance!(
25 unsafe impl NSObjectProtocol for PKSuicaPassProperties {}
26);
27
28#[cfg(all(
29 feature = "PKStoredValuePassProperties",
30 feature = "PKTransitPassProperties"
31))]
32impl PKSuicaPassProperties {
33 extern_methods!(
34 #[cfg(all(feature = "PKObject", feature = "PKPass"))]
35 #[unsafe(method(passPropertiesForPass:))]
37 #[unsafe(method_family = none)]
38 pub unsafe fn passPropertiesForPass(pass: &PKPass) -> Option<Retained<Self>>;
39
40 #[unsafe(method(transitBalance))]
41 #[unsafe(method_family = none)]
42 pub unsafe fn transitBalance(&self) -> Retained<NSDecimalNumber>;
43
44 #[unsafe(method(transitBalanceCurrencyCode))]
45 #[unsafe(method_family = none)]
46 pub unsafe fn transitBalanceCurrencyCode(&self) -> Retained<NSString>;
47
48 #[unsafe(method(isInStation))]
49 #[unsafe(method_family = none)]
50 pub unsafe fn isInStation(&self) -> bool;
51
52 #[unsafe(method(isInShinkansenStation))]
54 #[unsafe(method_family = none)]
55 pub unsafe fn isInShinkansenStation(&self) -> bool;
56
57 #[unsafe(method(isBalanceAllowedForCommute))]
58 #[unsafe(method_family = none)]
59 pub unsafe fn isBalanceAllowedForCommute(&self) -> bool;
60
61 #[unsafe(method(isLowBalanceGateNotificationEnabled))]
62 #[unsafe(method_family = none)]
63 pub unsafe fn isLowBalanceGateNotificationEnabled(&self) -> bool;
64
65 #[unsafe(method(isGreenCarTicketUsed))]
66 #[unsafe(method_family = none)]
67 pub unsafe fn isGreenCarTicketUsed(&self) -> bool;
68
69 #[deprecated]
70 #[unsafe(method(isBlacklisted))]
71 #[unsafe(method_family = none)]
72 pub unsafe fn isBlacklisted(&self) -> bool;
73 );
74}
75
76#[cfg(all(
78 feature = "PKStoredValuePassProperties",
79 feature = "PKTransitPassProperties"
80))]
81impl PKSuicaPassProperties {
82 extern_methods!(
83 #[unsafe(method(init))]
84 #[unsafe(method_family = init)]
85 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
86
87 #[unsafe(method(new))]
88 #[unsafe(method_family = new)]
89 pub unsafe fn new() -> Retained<Self>;
90 );
91}