private void PushPointinformation() { if (nearIndexList.Count != 0) { PushItem newPushMsg = pushPointIndexV2Dic[int.Parse(nearIndexList[0].id)]; if (GlobalParameter.lastPushId != int.Parse(newPushMsg.id)) { NotifyCallBack notifyCallBack = new NotifyCallBack() { dbid = newPushMsg.dbid, type = newPushMsg.type }; #if UNITY_ANDROID AndroidJavaClass jc = new AndroidJavaClass("com.unity3d.player.UnityPlayer"); AndroidJavaObject jo = jc.GetStatic <AndroidJavaObject>("currentActivity"); jo.Call("notifySimpleMessage", newPushMsg.title, newPushMsg.msg, JsonMapper.ToJson(notifyCallBack)); GlobalParameter.lastPushId = int.Parse(newPushMsg.id); #elif UNITY_IOS || UNITY_IPHONE pushState = 0; LocalNotifyStyle style = new LocalNotifyStyle(); Hashtable args = new Hashtable(); args["dbid"] = newPushMsg.dbid; args["type"] = newPushMsg.type; style.setContent(newPushMsg.msg); style.setTitle(newPushMsg.title); style.addHashParams(args); mobPush.setMobPushLocalNotification(style); GlobalParameter.lastPushId = int.Parse(newPushMsg.id); #endif } } }
public void AddListner(string subscriberTopicName, NotifyCallBack callback, string filterCondition) { // notifier.Add(subscriberTopicName,callback); notifier[subscriberTopicName] = callback; //notifierFilter.Add(subscriberTopicName, filterCondition); notifierFilter[subscriberTopicName] = filterCondition; }
public void AddListner(string subscriberTopicName, NotifyCallBack callback,string filterCondition) { // notifier.Add(subscriberTopicName,callback); notifier[subscriberTopicName] = callback; //notifierFilter.Add(subscriberTopicName, filterCondition); notifierFilter[subscriberTopicName] = filterCondition; }
public CallbackHandler(NotifyCallBack callback, List<string> pPermKeyList, bool pIsSuperUser) { this.callback = callback; string appPath = Path.GetDirectoryName(Application.ExecutablePath); assembly = Assembly.LoadFrom(appPath + @"\OpsManagerModel.dll"); this.v_PermKeyList = pPermKeyList; this.v_IsSuperUser = pIsSuperUser; }
public void Load() { SetLicenseID("{00000000-0000-0000-0000-000000000000}"); SetDelay(300); callbackHighlightReady = OnHighlightReady; SetHighlightReadyCallback(callbackHighlightReady); callbackMouseMonitor = OnMouseMonitor; SetMouseMonitorCallback(callbackMouseMonitor); }
public CallbackHandler(NotifyCallBack callback, List <string> pPermKeyList, bool pIsSuperUser) { this.callback = callback; string appPath = Path.GetDirectoryName(Application.ExecutablePath); assembly = Assembly.LoadFrom(appPath + @"\OpsManagerModel.dll"); this.v_PermKeyList = pPermKeyList; this.v_IsSuperUser = pIsSuperUser; }
public Listener(string server, string userId, string pwd, string topicName, NotifyCallBack callback, string filterCondition, List<string> pPermKeyList, bool pIsSuperUser) { this.topicName = topicName; this.callback = callback; handler = new CallbackHandler(callback, pPermKeyList, pIsSuperUser); handler.TopicName = this.topicName; JMSFactory factory = JMSFactory.getFactory(server, userId, pwd); subscriber = factory.GetInstance(topicName,handler,filterCondition); this.filterCondition = filterCondition; }
public Listener(string server, string userId, string pwd, string topicName, NotifyCallBack callback, string filterCondition, List <string> pPermKeyList, bool pIsSuperUser) { this.topicName = topicName; this.callback = callback; handler = new CallbackHandler(callback, pPermKeyList, pIsSuperUser); handler.TopicName = this.topicName; JMSFactory factory = JMSFactory.getFactory(server, userId, pwd); subscriber = factory.GetInstance(topicName, handler, filterCondition); this.filterCondition = filterCondition; }
private void TShowByGetWord_Load(object sender, EventArgs e) { SetLicenseID(LICENSEID); SetDelay(300); webBrowser1.ObjectForScripting = this; webBrowser1.DocumentText = Properties.Resources.text; callbackHighlightReady = new NotifyCallBack(OnHighlightReady); SetHighlightReadyCallback(callbackHighlightReady); callbackMouseMonitor = new NotifyCallBack(OnMouseMonitor); SetMouseMonitorCallback(callbackMouseMonitor); EnableHighlightCapture(true); CloseEvent += new CloseEventHandler(JClosed); }
private void TShowByGetWord_Load(object sender, EventArgs e) { foreach (KeyValuePair <string, string> pair in TDictionary.langDic[translateApi]) { if (!pair.Key.Equals("自动检测")) { comboBox2.Items.Add(pair.Key); } } comboBox1.SelectedIndex = 0; comboBox2.SelectedIndex = 1; SetLicenseID(LICENSEID); SetDelay(300); callbackHighlightReady = new NotifyCallBack(OnHighlightReady); SetHighlightReadyCallback(callbackHighlightReady); callbackMouseMonitor = new NotifyCallBack(OnMouseMonitor); SetMouseMonitorCallback(callbackMouseMonitor); EnableHighlightCapture(true); }
void OnNitifyHandler(int action, Hashtable resulte) { Debug.Log("OnNitifyHandler"); if (action == ResponseState.MessageRecvice) { switch (pushState) { case 0: //自身的推送 Debug.Log("推送推送推送推送推送推送推送"); pushState = 1; break; case 1: Debug.Log("点击推送点击推送点击推送点击推送点击推送"); pushState = 0; if (string.IsNullOrEmpty(iOSMobPushImpl.reqJson)) { Root root = GameObject.FindObjectOfType <Root>(); JsonData jsonData = JsonMapper.ToJson(iOSMobPushImpl.reqJson); NotifyCallBack notifyCallBack = new NotifyCallBack() { dbid = jsonData["dbid"].ToString(), type = jsonData["type"].ToString() }; root.Notify(JsonMapper.ToJson(notifyCallBack)); } break; default: break; } } }
/// <summary> /// 使用指定的处理过程来处理微信支付结果通知的回调 /// </summary> /// <param name="callBack">设置处理方法,该方法需返回一个布尔值来指示处理是否成功</param> public static void NotifyCall(NotifyCallBack callBack) { bool flag = true; OrderPayResultParameters results = OrderPayResultParameters.RequestPares(); if (callBack != null) flag = callBack.Invoke(results); WxParameters paras = new WxParameters(); paras.SetValue("return_code", (flag ? "SUCCESS" : "FAIL")); paras.SetValue("return_msg", (flag ? "OK" : "UNIFIED ORDER ERROR")); HttpContext.Current.Response.Write(paras.ToXML()); }
public static extern bool RemoveMouseMonitorCallback(NotifyCallBack callback);
public static extern bool RemoveHighlightReadyCallback(NotifyCallBack callback);
public static extern bool RemoveCaptureReadyCallback(NotifyCallBack callback);