public void AddAuthorativeAnswer(global::Javax.Jmdns.Impl.DNSRecord p0)
 {
     if (id_addAuthorativeAnswer_Ljavax_jmdns_impl_DNSRecord_ == IntPtr.Zero)
     {
         id_addAuthorativeAnswer_Ljavax_jmdns_impl_DNSRecord_ = JNIEnv.GetMethodID(class_ref, "addAuthorativeAnswer", "(Ljavax/jmdns/impl/DNSRecord;)V");
     }
     JNIEnv.CallVoidMethod(Handle, id_addAuthorativeAnswer_Ljavax_jmdns_impl_DNSRecord_, new JValue(p0));
 }
 public void AddAdditionalAnswer(global::Javax.Jmdns.Impl.DNSIncoming p0, global::Javax.Jmdns.Impl.DNSRecord p1)
 {
     if (id_addAdditionalAnswer_Ljavax_jmdns_impl_DNSIncoming_Ljavax_jmdns_impl_DNSRecord_ == IntPtr.Zero)
     {
         id_addAdditionalAnswer_Ljavax_jmdns_impl_DNSIncoming_Ljavax_jmdns_impl_DNSRecord_ = JNIEnv.GetMethodID(class_ref, "addAdditionalAnswer", "(Ljavax/jmdns/impl/DNSIncoming;Ljavax/jmdns/impl/DNSRecord;)V");
     }
     JNIEnv.CallVoidMethod(Handle, id_addAdditionalAnswer_Ljavax_jmdns_impl_DNSIncoming_Ljavax_jmdns_impl_DNSRecord_, new JValue(p0), new JValue(p1));
 }
示例#3
0
        static IntPtr n_AddAuthoritativeAnswer_Ljavax_jmdns_impl_DNSOutgoing_Ljavax_jmdns_impl_DNSRecord_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1)
        {
            DNSTask __this = Java.Lang.Object.GetObject <DNSTask> (native__this, JniHandleOwnership.DoNotTransfer);

            global::Javax.Jmdns.Impl.DNSOutgoing p0 = Java.Lang.Object.GetObject <global::Javax.Jmdns.Impl.DNSOutgoing> (native_p0, JniHandleOwnership.DoNotTransfer);
            global::Javax.Jmdns.Impl.DNSRecord   p1 = Java.Lang.Object.GetObject <global::Javax.Jmdns.Impl.DNSRecord> (native_p1, JniHandleOwnership.DoNotTransfer);
            IntPtr __ret = JNIEnv.ToLocalJniHandle(__this.AddAuthoritativeAnswer(p0, p1));

            return(__ret);
        }
示例#4
0
        public virtual global::Javax.Jmdns.Impl.DNSOutgoing AddAuthoritativeAnswer(global::Javax.Jmdns.Impl.DNSOutgoing p0, global::Javax.Jmdns.Impl.DNSRecord p1)
        {
            if (id_addAuthoritativeAnswer_Ljavax_jmdns_impl_DNSOutgoing_Ljavax_jmdns_impl_DNSRecord_ == IntPtr.Zero)
            {
                id_addAuthoritativeAnswer_Ljavax_jmdns_impl_DNSOutgoing_Ljavax_jmdns_impl_DNSRecord_ = JNIEnv.GetMethodID(class_ref, "addAuthoritativeAnswer", "(Ljavax/jmdns/impl/DNSOutgoing;Ljavax/jmdns/impl/DNSRecord;)Ljavax/jmdns/impl/DNSOutgoing;");
            }

            global::Javax.Jmdns.Impl.DNSOutgoing __ret;
            if (GetType() == ThresholdType)
            {
                __ret = Java.Lang.Object.GetObject <global::Javax.Jmdns.Impl.DNSOutgoing> (JNIEnv.CallObjectMethod(Handle, id_addAuthoritativeAnswer_Ljavax_jmdns_impl_DNSOutgoing_Ljavax_jmdns_impl_DNSRecord_, new JValue(p0), new JValue(p1)), JniHandleOwnership.TransferLocalRef);
            }
            else
            {
                __ret = Java.Lang.Object.GetObject <global::Javax.Jmdns.Impl.DNSOutgoing> (JNIEnv.CallNonvirtualObjectMethod(Handle, ThresholdClass, id_addAuthoritativeAnswer_Ljavax_jmdns_impl_DNSOutgoing_Ljavax_jmdns_impl_DNSRecord_, new JValue(p0), new JValue(p1)), JniHandleOwnership.TransferLocalRef);
            }
            return(__ret);
        }