public virtual unsafe void DeliverResult(global::Com.Spotify.Protocol.Client.IResult result)
        {
            const string __id = "deliverResult.(Lcom/spotify/protocol/client/Result;)V";

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [1];
                __args [0] = new JniArgumentValue((result == null) ? IntPtr.Zero : ((global::Java.Lang.Object)result).Handle);
                _members.InstanceMethods.InvokeVirtualVoidMethod(__id, this, __args);
            } finally {
            }
        }
Ejemplo n.º 2
0
        public unsafe global::Com.Spotify.Protocol.Client.IResult Await(long p0, global::Java.Util.Concurrent.TimeUnit p1)
        {
            if (id_await_JLjava_util_concurrent_TimeUnit_ == IntPtr.Zero)
            {
                id_await_JLjava_util_concurrent_TimeUnit_ = JNIEnv.GetMethodID(class_ref, "await", "(JLjava/util/concurrent/TimeUnit;)Lcom/spotify/protocol/client/Result;");
            }
            JValue *__args = stackalloc JValue [2];

            __args [0] = new JValue(p0);
            __args [1] = new JValue((p1 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p1).Handle);
            global::Com.Spotify.Protocol.Client.IResult __ret = global::Java.Lang.Object.GetObject <global::Com.Spotify.Protocol.Client.IResult> (JNIEnv.CallObjectMethod(((global::Java.Lang.Object) this).Handle, id_await_JLjava_util_concurrent_TimeUnit_, __args), JniHandleOwnership.TransferLocalRef);
            return(__ret);
        }
 static void n_DeliverResult_Lcom_spotify_protocol_client_Result_(IntPtr jnienv, IntPtr native__this, IntPtr native_result)
 {
     global::Com.Spotify.Protocol.Client.PendingResultBase __this = global::Java.Lang.Object.GetObject <global::Com.Spotify.Protocol.Client.PendingResultBase> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Com.Spotify.Protocol.Client.IResult           result = (global::Com.Spotify.Protocol.Client.IResult)global::Java.Lang.Object.GetObject <global::Com.Spotify.Protocol.Client.IResult> (native_result, JniHandleOwnership.DoNotTransfer);
     __this.DeliverResult(result);
 }
Ejemplo n.º 4
0
 static IntPtr n_GetData(IntPtr jnienv, IntPtr native__this)
 {
     global::Com.Spotify.Protocol.Client.IResult __this = global::Java.Lang.Object.GetObject <global::Com.Spotify.Protocol.Client.IResult> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(JNIEnv.ToLocalJniHandle(__this.Data));
 }
Ejemplo n.º 5
0
 static bool n_IsSuccessful(IntPtr jnienv, IntPtr native__this)
 {
     global::Com.Spotify.Protocol.Client.IResult __this = global::Java.Lang.Object.GetObject <global::Com.Spotify.Protocol.Client.IResult> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(__this.IsSuccessful);
 }
Ejemplo n.º 6
0
 static IntPtr n_GetErrorMessage(IntPtr jnienv, IntPtr native__this)
 {
     global::Com.Spotify.Protocol.Client.IResult __this = global::Java.Lang.Object.GetObject <global::Com.Spotify.Protocol.Client.IResult> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(JNIEnv.NewString(__this.ErrorMessage));
 }