예제 #1
0
 static IntPtr n_AltText(IntPtr jnienv, IntPtr native__this)
 {
     global::Com.Salesforce.Marketingcloud.Messages.Cloudpage.CloudPageMessage.Media __this = global::Java.Lang.Object.GetObject <global::Com.Salesforce.Marketingcloud.Messages.Cloudpage.CloudPageMessage.Media> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(JNIEnv.NewString(__this.AltText()));
 }
예제 #2
0
            public static unsafe global::Com.Salesforce.Marketingcloud.Messages.Cloudpage.CloudPageMessage.Media Create(string p0, string p1)
            {
                if (id_create_Ljava_lang_String_Ljava_lang_String_ == IntPtr.Zero)
                {
                    id_create_Ljava_lang_String_Ljava_lang_String_ = JNIEnv.GetStaticMethodID(class_ref, "create", "(Ljava/lang/String;Ljava/lang/String;)Lcom/salesforce/marketingcloud/messages/cloudpage/CloudPageMessage$Media;");
                }
                IntPtr native_p0 = JNIEnv.NewString(p0);
                IntPtr native_p1 = JNIEnv.NewString(p1);

                try {
                    JValue *__args = stackalloc JValue [2];
                    __args [0] = new JValue(native_p0);
                    __args [1] = new JValue(native_p1);
                    global::Com.Salesforce.Marketingcloud.Messages.Cloudpage.CloudPageMessage.Media __ret = global::Java.Lang.Object.GetObject <global::Com.Salesforce.Marketingcloud.Messages.Cloudpage.CloudPageMessage.Media> (JNIEnv.CallStaticObjectMethod(class_ref, id_create_Ljava_lang_String_Ljava_lang_String_, __args), JniHandleOwnership.TransferLocalRef);
                    return(__ret);
                } finally {
                    JNIEnv.DeleteLocalRef(native_p0);
                    JNIEnv.DeleteLocalRef(native_p1);
                }
            }