private void push_Click(object sender, RoutedEventArgs e) { Bmob.Push(new PushParamter().toast("wp push ok?", "good!!"), (resp, ex) => { string status = "OK"; if (ex != null) { status = "ERROR"; } Dispatcher.BeginInvoke(() => { updateStatus(push, status); }); }); }
/// <summary> /// 发送push /// </summary> /// <param name="title"></param> /// <param name="message"></param> public void sendPush(string title, string message) { bmob.Push(new PushParamter().toast(title, message), (resp, ex) => { string status = "OK"; if (ex != null) { showMessagemBox("push发送失败"); return; } showMessagemBox("push发送成功"); }); }