static IntPtr n_QueryRecommendation_Lcom_webtrekk_webtrekksdk_WebtrekkRecommendations_RecommendationCallback_Ljava_lang_String_(IntPtr jnienv, IntPtr native__this, IntPtr native__callback, IntPtr native_recommendationName) { global::Com.Webtrekk.Webtrekksdk.WebtrekkRecommendations __this = global::Java.Lang.Object.GetObject <global::Com.Webtrekk.Webtrekksdk.WebtrekkRecommendations> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); global::Com.Webtrekk.Webtrekksdk.WebtrekkRecommendations.IRecommendationCallback @callback = (global::Com.Webtrekk.Webtrekksdk.WebtrekkRecommendations.IRecommendationCallback)global::Java.Lang.Object.GetObject <global::Com.Webtrekk.Webtrekksdk.WebtrekkRecommendations.IRecommendationCallback> (native__callback, JniHandleOwnership.DoNotTransfer); string recommendationName = JNIEnv.GetString(native_recommendationName, JniHandleOwnership.DoNotTransfer); IntPtr __ret = JNIEnv.ToLocalJniHandle(__this.QueryRecommendation(@callback, recommendationName)); return(__ret); }
public virtual unsafe global::Com.Webtrekk.Webtrekksdk.WebtrekkRecommendations QueryRecommendation(global::Com.Webtrekk.Webtrekksdk.WebtrekkRecommendations.IRecommendationCallback @callback, string recommendationName) { const string __id = "queryRecommendation.(Lcom/webtrekk/webtrekksdk/WebtrekkRecommendations$RecommendationCallback;Ljava/lang/String;)Lcom/webtrekk/webtrekksdk/WebtrekkRecommendations;"; IntPtr native_recommendationName = JNIEnv.NewString(recommendationName); try { JniArgumentValue *__args = stackalloc JniArgumentValue [2]; __args [0] = new JniArgumentValue((@callback == null) ? IntPtr.Zero : ((global::Java.Lang.Object)@callback).Handle); __args [1] = new JniArgumentValue(native_recommendationName); var __rm = _members.InstanceMethods.InvokeVirtualObjectMethod(__id, this, __args); return(global::Java.Lang.Object.GetObject <global::Com.Webtrekk.Webtrekksdk.WebtrekkRecommendations> (__rm.Handle, JniHandleOwnership.TransferLocalRef)); } finally { JNIEnv.DeleteLocalRef(native_recommendationName); } }
static void n_OnReceiveRecommendations_Ljava_util_List_Lcom_webtrekk_webtrekksdk_WebtrekkRecommendations_QueryRecommendationResult_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1) { global::Com.Webtrekk.Webtrekksdk.WebtrekkRecommendations.IRecommendationCallback __this = global::Java.Lang.Object.GetObject <global::Com.Webtrekk.Webtrekksdk.WebtrekkRecommendations.IRecommendationCallback> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); var p0 = global::Android.Runtime.JavaList <global::Com.Webtrekk.Webtrekksdk.WebtrekkRecommendations.RecommendationProduct> .FromJniHandle(native_p0, JniHandleOwnership.DoNotTransfer); global::Com.Webtrekk.Webtrekksdk.WebtrekkRecommendations.QueryRecommendationResult p1 = global::Java.Lang.Object.GetObject <global::Com.Webtrekk.Webtrekksdk.WebtrekkRecommendations.QueryRecommendationResult> (native_p1, JniHandleOwnership.DoNotTransfer); __this.OnReceiveRecommendations(p0, p1); }