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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use objc2::__framework_prelude::*;
use objc2_foundation::*;

use crate::*;

extern_class!(
    #[derive(Debug, PartialEq, Eq, Hash)]
    pub struct SKAdImpression;

    unsafe impl ClassType for SKAdImpression {
        type Super = NSObject;
        type Mutability = InteriorMutable;
    }
);

unsafe impl NSObjectProtocol for SKAdImpression {}

extern_methods!(
    unsafe impl SKAdImpression {
        #[method_id(@__retain_semantics Other sourceAppStoreItemIdentifier)]
        pub unsafe fn sourceAppStoreItemIdentifier(&self) -> Retained<NSNumber>;

        #[method(setSourceAppStoreItemIdentifier:)]
        pub unsafe fn setSourceAppStoreItemIdentifier(
            &self,
            source_app_store_item_identifier: &NSNumber,
        );

        #[method_id(@__retain_semantics Other advertisedAppStoreItemIdentifier)]
        pub unsafe fn advertisedAppStoreItemIdentifier(&self) -> Retained<NSNumber>;

        #[method(setAdvertisedAppStoreItemIdentifier:)]
        pub unsafe fn setAdvertisedAppStoreItemIdentifier(
            &self,
            advertised_app_store_item_identifier: &NSNumber,
        );

        #[method_id(@__retain_semantics Other adNetworkIdentifier)]
        pub unsafe fn adNetworkIdentifier(&self) -> Retained<NSString>;

        #[method(setAdNetworkIdentifier:)]
        pub unsafe fn setAdNetworkIdentifier(&self, ad_network_identifier: &NSString);

        #[method_id(@__retain_semantics Other adCampaignIdentifier)]
        pub unsafe fn adCampaignIdentifier(&self) -> Retained<NSNumber>;

        #[method(setAdCampaignIdentifier:)]
        pub unsafe fn setAdCampaignIdentifier(&self, ad_campaign_identifier: &NSNumber);

        #[method_id(@__retain_semantics Other sourceIdentifier)]
        pub unsafe fn sourceIdentifier(&self) -> Retained<NSNumber>;

        #[method(setSourceIdentifier:)]
        pub unsafe fn setSourceIdentifier(&self, source_identifier: &NSNumber);

        #[method_id(@__retain_semantics Other adImpressionIdentifier)]
        pub unsafe fn adImpressionIdentifier(&self) -> Retained<NSString>;

        #[method(setAdImpressionIdentifier:)]
        pub unsafe fn setAdImpressionIdentifier(&self, ad_impression_identifier: &NSString);

        #[method_id(@__retain_semantics Other adType)]
        pub unsafe fn adType(&self) -> Option<Retained<NSString>>;

        #[method(setAdType:)]
        pub unsafe fn setAdType(&self, ad_type: Option<&NSString>);

        #[method_id(@__retain_semantics Other adDescription)]
        pub unsafe fn adDescription(&self) -> Option<Retained<NSString>>;

        #[method(setAdDescription:)]
        pub unsafe fn setAdDescription(&self, ad_description: Option<&NSString>);

        #[method_id(@__retain_semantics Other adPurchaserName)]
        pub unsafe fn adPurchaserName(&self) -> Option<Retained<NSString>>;

        #[method(setAdPurchaserName:)]
        pub unsafe fn setAdPurchaserName(&self, ad_purchaser_name: Option<&NSString>);

        #[method_id(@__retain_semantics Other timestamp)]
        pub unsafe fn timestamp(&self) -> Retained<NSNumber>;

        #[method(setTimestamp:)]
        pub unsafe fn setTimestamp(&self, timestamp: &NSNumber);

        #[method_id(@__retain_semantics Other signature)]
        pub unsafe fn signature(&self) -> Retained<NSString>;

        #[method(setSignature:)]
        pub unsafe fn setSignature(&self, signature: &NSString);

        #[method_id(@__retain_semantics Other version)]
        pub unsafe fn version(&self) -> Retained<NSString>;

        #[method(setVersion:)]
        pub unsafe fn setVersion(&self, version: &NSString);
    }
);

extern_methods!(
    /// Methods declared on superclass `NSObject`
    unsafe impl SKAdImpression {
        #[method_id(@__retain_semantics Init init)]
        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;

        #[method_id(@__retain_semantics New new)]
        pub unsafe fn new() -> Retained<Self>;
    }
);