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 ((_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 ((_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 (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 ((_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 ((_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);
|
}
|
}
|
|
}
|
}
|