wxr
2024-07-16 548fb8aa23fe31401ba3dae823d31f9a73cc101f
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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
using System;
using System.Collections.Generic;
using Android.Runtime;
using Java.Interop;
 
namespace Com.Hdl.Hdllinphonesdk.Interfaces {
 
    // Metadata.xml XPath interface reference: path="/api/package[@name='com.hdl.hdllinphonesdk.interfaces']/interface[@name='AddressType']"
    [Register ("com/hdl/hdllinphonesdk/interfaces/AddressType", "", "Com.Hdl.Hdllinphonesdk.Interfaces.IAddressTypeInvoker")]
    public partial interface IAddressType : IJavaObject, IJavaPeerable {
        string DisplayedName {
            // Metadata.xml XPath method reference: path="/api/package[@name='com.hdl.hdllinphonesdk.interfaces']/interface[@name='AddressType']/method[@name='getDisplayedName' and count(parameter)=0]"
            [Register ("getDisplayedName", "()Ljava/lang/String;", "GetGetDisplayedNameHandler:Com.Hdl.Hdllinphonesdk.Interfaces.IAddressTypeInvoker, Shared.Droid.HDLLinphone")]
            get; 
 
            // Metadata.xml XPath method reference: path="/api/package[@name='com.hdl.hdllinphonesdk.interfaces']/interface[@name='AddressType']/method[@name='setDisplayedName' and count(parameter)=1 and parameter[1][@type='java.lang.String']]"
            [Register ("setDisplayedName", "(Ljava/lang/String;)V", "GetSetDisplayedName_Ljava_lang_String_Handler:Com.Hdl.Hdllinphonesdk.Interfaces.IAddressTypeInvoker, Shared.Droid.HDLLinphone")]
            set; 
        }
 
        global::Java.Lang.ICharSequence TextFormatted {
            // Metadata.xml XPath method reference: path="/api/package[@name='com.hdl.hdllinphonesdk.interfaces']/interface[@name='AddressType']/method[@name='getText' and count(parameter)=0]"
            [Register ("getText", "()Ljava/lang/CharSequence;", "GetGetTextHandler:Com.Hdl.Hdllinphonesdk.Interfaces.IAddressTypeInvoker, Shared.Droid.HDLLinphone")]
            get; 
 
            // Metadata.xml XPath method reference: path="/api/package[@name='com.hdl.hdllinphonesdk.interfaces']/interface[@name='AddressType']/method[@name='setText' and count(parameter)=1 and parameter[1][@type='java.lang.CharSequence']]"
            [Register ("setText", "(Ljava/lang/CharSequence;)V", "GetSetText_Ljava_lang_CharSequence_Handler:Com.Hdl.Hdllinphonesdk.Interfaces.IAddressTypeInvoker, Shared.Droid.HDLLinphone")]
            set; 
        }
 
    }
 
    [global::Android.Runtime.Register ("com/hdl/hdllinphonesdk/interfaces/AddressType", DoNotGenerateAcw=true)]
    internal partial class IAddressTypeInvoker : global::Java.Lang.Object, IAddressType {
        static readonly JniPeerMembers _members = new XAPeerMembers ("com/hdl/hdllinphonesdk/interfaces/AddressType", typeof (IAddressTypeInvoker));
 
        static IntPtr java_class_ref {
            get { return _members.JniPeerType.PeerReference.Handle; }
        }
 
        [global::System.Diagnostics.DebuggerBrowsable (global::System.Diagnostics.DebuggerBrowsableState.Never)]
        [global::System.ComponentModel.EditorBrowsable (global::System.ComponentModel.EditorBrowsableState.Never)]
        public override global::Java.Interop.JniPeerMembers JniPeerMembers {
            get { return _members; }
        }
 
        [global::System.Diagnostics.DebuggerBrowsable (global::System.Diagnostics.DebuggerBrowsableState.Never)]
        [global::System.ComponentModel.EditorBrowsable (global::System.ComponentModel.EditorBrowsableState.Never)]
        protected override IntPtr ThresholdClass {
            get { return class_ref; }
        }
 
        [global::System.Diagnostics.DebuggerBrowsable (global::System.Diagnostics.DebuggerBrowsableState.Never)]
        [global::System.ComponentModel.EditorBrowsable (global::System.ComponentModel.EditorBrowsableState.Never)]
        protected override global::System.Type ThresholdType {
            get { return _members.ManagedPeerType; }
        }
 
        IntPtr class_ref;
 
        public static IAddressType GetObject (IntPtr handle, JniHandleOwnership transfer)
        {
            return global::Java.Lang.Object.GetObject<IAddressType> (handle, transfer);
        }
 
        static IntPtr Validate (IntPtr handle)
        {
            if (!JNIEnv.IsInstanceOf (handle, java_class_ref))
                throw new InvalidCastException ($"Unable to convert instance of type '{JNIEnv.GetClassNameFromInstance (handle)}' to type 'com.hdl.hdllinphonesdk.interfaces.AddressType'.");
            return handle;
        }
 
        protected override void Dispose (bool disposing)
        {
            if (this.class_ref != IntPtr.Zero)
                JNIEnv.DeleteGlobalRef (this.class_ref);
            this.class_ref = IntPtr.Zero;
            base.Dispose (disposing);
        }
 
        public IAddressTypeInvoker (IntPtr handle, JniHandleOwnership transfer) : base (Validate (handle), transfer)
        {
            IntPtr local_ref = JNIEnv.GetObjectClass (((global::Java.Lang.Object) this).Handle);
            this.class_ref = JNIEnv.NewGlobalRef (local_ref);
            JNIEnv.DeleteLocalRef (local_ref);
        }
 
        static Delegate cb_getDisplayedName;
#pragma warning disable 0169
        static Delegate GetGetDisplayedNameHandler ()
        {
            if (cb_getDisplayedName == null)
                cb_getDisplayedName = JNINativeWrapper.CreateDelegate (new _JniMarshal_PP_L (n_GetDisplayedName));
            return cb_getDisplayedName;
        }
 
        static IntPtr n_GetDisplayedName (IntPtr jnienv, IntPtr native__this)
        {
            var __this = global::Java.Lang.Object.GetObject<global::Com.Hdl.Hdllinphonesdk.Interfaces.IAddressType> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            return JNIEnv.NewString (__this.DisplayedName);
        }
#pragma warning restore 0169
 
        static Delegate cb_setDisplayedName_Ljava_lang_String_;
#pragma warning disable 0169
        static Delegate GetSetDisplayedName_Ljava_lang_String_Handler ()
        {
            if (cb_setDisplayedName_Ljava_lang_String_ == null)
                cb_setDisplayedName_Ljava_lang_String_ = JNINativeWrapper.CreateDelegate (new _JniMarshal_PPL_V (n_SetDisplayedName_Ljava_lang_String_));
            return cb_setDisplayedName_Ljava_lang_String_;
        }
 
        static void n_SetDisplayedName_Ljava_lang_String_ (IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
        {
            var __this = global::Java.Lang.Object.GetObject<global::Com.Hdl.Hdllinphonesdk.Interfaces.IAddressType> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            var p0 = JNIEnv.GetString (native_p0, JniHandleOwnership.DoNotTransfer);
            __this.DisplayedName = p0;
        }
#pragma warning restore 0169
 
        IntPtr id_getDisplayedName;
        IntPtr id_setDisplayedName_Ljava_lang_String_;
        public unsafe string DisplayedName {
            get {
                if (id_getDisplayedName == IntPtr.Zero)
                    id_getDisplayedName = JNIEnv.GetMethodID (class_ref, "getDisplayedName", "()Ljava/lang/String;");
                return JNIEnv.GetString (JNIEnv.CallObjectMethod (((global::Java.Lang.Object) this).Handle, id_getDisplayedName), JniHandleOwnership.TransferLocalRef);
            }
            set {
                if (id_setDisplayedName_Ljava_lang_String_ == IntPtr.Zero)
                    id_setDisplayedName_Ljava_lang_String_ = JNIEnv.GetMethodID (class_ref, "setDisplayedName", "(Ljava/lang/String;)V");
                IntPtr native_value = JNIEnv.NewString ((string)value);
                JValue* __args = stackalloc JValue [1];
                __args [0] = new JValue (native_value);
                JNIEnv.CallVoidMethod (((global::Java.Lang.Object) this).Handle, id_setDisplayedName_Ljava_lang_String_, __args);
                JNIEnv.DeleteLocalRef (native_value);
            }
        }
 
        static Delegate cb_getText;
#pragma warning disable 0169
        static Delegate GetGetTextHandler ()
        {
            if (cb_getText == null)
                cb_getText = JNINativeWrapper.CreateDelegate (new _JniMarshal_PP_L (n_GetText));
            return cb_getText;
        }
 
        static IntPtr n_GetText (IntPtr jnienv, IntPtr native__this)
        {
            var __this = global::Java.Lang.Object.GetObject<global::Com.Hdl.Hdllinphonesdk.Interfaces.IAddressType> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            return CharSequence.ToLocalJniHandle (__this.TextFormatted);
        }
#pragma warning restore 0169
 
        static Delegate cb_setText_Ljava_lang_CharSequence_;
#pragma warning disable 0169
        static Delegate GetSetText_Ljava_lang_CharSequence_Handler ()
        {
            if (cb_setText_Ljava_lang_CharSequence_ == null)
                cb_setText_Ljava_lang_CharSequence_ = JNINativeWrapper.CreateDelegate (new _JniMarshal_PPL_V (n_SetText_Ljava_lang_CharSequence_));
            return cb_setText_Ljava_lang_CharSequence_;
        }
 
        static void n_SetText_Ljava_lang_CharSequence_ (IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
        {
            var __this = global::Java.Lang.Object.GetObject<global::Com.Hdl.Hdllinphonesdk.Interfaces.IAddressType> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            var p0 = global::Java.Lang.Object.GetObject<global::Java.Lang.ICharSequence> (native_p0, JniHandleOwnership.DoNotTransfer);
            __this.TextFormatted = p0;
        }
#pragma warning restore 0169
 
        IntPtr id_getText;
        IntPtr id_setText_Ljava_lang_CharSequence_;
        public unsafe global::Java.Lang.ICharSequence TextFormatted {
            get {
                if (id_getText == IntPtr.Zero)
                    id_getText = JNIEnv.GetMethodID (class_ref, "getText", "()Ljava/lang/CharSequence;");
                return global::Java.Lang.Object.GetObject<Java.Lang.ICharSequence> (JNIEnv.CallObjectMethod (((global::Java.Lang.Object) this).Handle, id_getText), JniHandleOwnership.TransferLocalRef);
            }
            set {
                if (id_setText_Ljava_lang_CharSequence_ == IntPtr.Zero)
                    id_setText_Ljava_lang_CharSequence_ = JNIEnv.GetMethodID (class_ref, "setText", "(Ljava/lang/CharSequence;)V");
                IntPtr native_value = CharSequence.ToLocalJniHandle (value);
                JValue* __args = stackalloc JValue [1];
                __args [0] = new JValue (native_value);
                JNIEnv.CallVoidMethod (((global::Java.Lang.Object) this).Handle, id_setText_Ljava_lang_CharSequence_, __args);
                JNIEnv.DeleteLocalRef (native_value);
            }
        }
 
    }
}