Exemplo n.º 1
0
 static void n_WriteToParcel_Landroid_os_Parcel_I(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, int native_p1)
 {
     global::Com.Alibaba.Sdk.Android.Push.Notification.CPushMessage __this = global::Java.Lang.Object.GetObject <global::Com.Alibaba.Sdk.Android.Push.Notification.CPushMessage> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Android.OS.Parcel p0 = global::Java.Lang.Object.GetObject <global::Android.OS.Parcel> (native_p0, JniHandleOwnership.DoNotTransfer);
     global::Android.OS.ParcelableWriteFlags p1 = (global::Android.OS.ParcelableWriteFlags)native_p1;
     __this.WriteToParcel(p0, p1);
 }
Exemplo n.º 2
0
        static void n_SetTraceInfo_Ljava_lang_String_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
        {
            global::Com.Alibaba.Sdk.Android.Push.Notification.CPushMessage __this = global::Java.Lang.Object.GetObject <global::Com.Alibaba.Sdk.Android.Push.Notification.CPushMessage> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            string p0 = JNIEnv.GetString(native_p0, JniHandleOwnership.DoNotTransfer);

            __this.TraceInfo = p0;
        }
Exemplo n.º 3
0
 static void n_OnMessage_Landroid_content_Context_Lcom_alibaba_sdk_android_push_notification_CPushMessage_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1)
 {
     global::Com.Alibaba.Sdk.Android.Push.MessageReceiver __this = global::Java.Lang.Object.GetObject <global::Com.Alibaba.Sdk.Android.Push.MessageReceiver> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Android.Content.Context p0 = global::Java.Lang.Object.GetObject <global::Android.Content.Context> (native_p0, JniHandleOwnership.DoNotTransfer);
     global::Com.Alibaba.Sdk.Android.Push.Notification.CPushMessage p1 = global::Java.Lang.Object.GetObject <global::Com.Alibaba.Sdk.Android.Push.Notification.CPushMessage> (native_p1, JniHandleOwnership.DoNotTransfer);
     __this.OnMessage(p0, p1);
 }
Exemplo n.º 4
0
        protected virtual unsafe void OnMessage(global::Android.Content.Context p0, global::Com.Alibaba.Sdk.Android.Push.Notification.CPushMessage p1)
        {
            if (id_onMessage_Landroid_content_Context_Lcom_alibaba_sdk_android_push_notification_CPushMessage_ == IntPtr.Zero)
            {
                id_onMessage_Landroid_content_Context_Lcom_alibaba_sdk_android_push_notification_CPushMessage_ = JNIEnv.GetMethodID(class_ref, "onMessage", "(Landroid/content/Context;Lcom/alibaba/sdk/android/push/notification/CPushMessage;)V");
            }
            try {
                JValue *__args = stackalloc JValue [2];
                __args [0] = new JValue(p0);
                __args [1] = new JValue(p1);

                if (((object)this).GetType() == ThresholdType)
                {
                    JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_onMessage_Landroid_content_Context_Lcom_alibaba_sdk_android_push_notification_CPushMessage_, __args);
                }
                else
                {
                    JNIEnv.CallNonvirtualVoidMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "onMessage", "(Landroid/content/Context;Lcom/alibaba/sdk/android/push/notification/CPushMessage;)V"), __args);
                }
            } finally {
            }
        }
Exemplo n.º 5
0
 static IntPtr n_GetAppId(IntPtr jnienv, IntPtr native__this)
 {
     global::Com.Alibaba.Sdk.Android.Push.Notification.CPushMessage __this = global::Java.Lang.Object.GetObject <global::Com.Alibaba.Sdk.Android.Push.Notification.CPushMessage> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(JNIEnv.NewString(__this.AppId));
 }
Exemplo n.º 6
0
 static int n_DescribeContents(IntPtr jnienv, IntPtr native__this)
 {
     global::Com.Alibaba.Sdk.Android.Push.Notification.CPushMessage __this = global::Java.Lang.Object.GetObject <global::Com.Alibaba.Sdk.Android.Push.Notification.CPushMessage> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(__this.DescribeContents());
 }