static void n_GetAppInsightsForEndDate_Ljava_util_Date_Lcom_bluecats_sdk_BCInsights_BCInsightsPeriod_JLcom_bluecats_sdk_BCAppCallback_(IntPtr jnienv, IntPtr native__this, IntPtr native_endDate, IntPtr native_period, long duration, IntPtr native__callback) { global::Com.Bluecats.Sdk.BCAppApi __this = global::Java.Lang.Object.GetObject <global::Com.Bluecats.Sdk.BCAppApi> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); global::Java.Util.Date endDate = global::Java.Lang.Object.GetObject <global::Java.Util.Date> (native_endDate, JniHandleOwnership.DoNotTransfer); global::Com.Bluecats.Sdk.BCInsights.BCInsightsPeriod period = global::Java.Lang.Object.GetObject <global::Com.Bluecats.Sdk.BCInsights.BCInsightsPeriod> (native_period, JniHandleOwnership.DoNotTransfer); global::Com.Bluecats.Sdk.IBCAppCallback @callback = (global::Com.Bluecats.Sdk.IBCAppCallback)global::Java.Lang.Object.GetObject <global::Com.Bluecats.Sdk.IBCAppCallback> (native__callback, JniHandleOwnership.DoNotTransfer); __this.GetAppInsightsForEndDate(endDate, period, duration, @callback); }
public virtual unsafe void GetAppInsightsForEndDate(global::Java.Util.Date endDate, global::Com.Bluecats.Sdk.BCInsights.BCInsightsPeriod period, long duration, global::Com.Bluecats.Sdk.IBCAppCallback @callback) { if (id_getAppInsightsForEndDate_Ljava_util_Date_Lcom_bluecats_sdk_BCInsights_BCInsightsPeriod_JLcom_bluecats_sdk_BCAppCallback_ == IntPtr.Zero) { id_getAppInsightsForEndDate_Ljava_util_Date_Lcom_bluecats_sdk_BCInsights_BCInsightsPeriod_JLcom_bluecats_sdk_BCAppCallback_ = JNIEnv.GetMethodID(class_ref, "getAppInsightsForEndDate", "(Ljava/util/Date;Lcom/bluecats/sdk/BCInsights$BCInsightsPeriod;JLcom/bluecats/sdk/BCAppCallback;)V"); } try { JValue *__args = stackalloc JValue [4]; __args [0] = new JValue(endDate); __args [1] = new JValue(period); __args [2] = new JValue(duration); __args [3] = new JValue(@callback); if (((object)this).GetType() == ThresholdType) { JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_getAppInsightsForEndDate_Ljava_util_Date_Lcom_bluecats_sdk_BCInsights_BCInsightsPeriod_JLcom_bluecats_sdk_BCAppCallback_, __args); } else { JNIEnv.CallNonvirtualVoidMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "getAppInsightsForEndDate", "(Ljava/util/Date;Lcom/bluecats/sdk/BCInsights$BCInsightsPeriod;JLcom/bluecats/sdk/BCAppCallback;)V"), __args); } } finally { } }