public void SendToastToUser(string pushkey) { Debug.WriteLine("sending push to " + pushkey); string Title = "LyncUp"; string SubTitle = friend + " accepted your Lync Up request"; IDictionary DataTable = new Dictionary <String, String>(); DataTable["friendacceptid"] = myid; DataTable["friendstatus"] = "yes"; DataTable["transportation"] = transportation; PushAPI.SendToastToUser(pushkey, Title, SubTitle, DataTable, "MainPage"); WalkButton.IsEnabled = false; BikeButton.IsEnabled = false; CarButton.IsEnabled = false; if (transportation == "walk") { WalkButtonText.Text = "..."; } if (transportation == "bike") { BikeButtonText.Text = "..."; } if (transportation == "car") { CarButtonText.Text = "..."; } NoButton.IsEnabled = false; Thread thread1 = new Thread(new ThreadStart(GoBackLater)); thread1.Start(); }
private void SendToastToUser(Friend f) { string Title = "LyncUp"; string SubTitle = DataUse.Instance.MyUserName + " wants to lync up!"; string FriendName = DataUse.Instance.MyUserName; string FriendId = DataUse.Instance.MyUserId; string EventId = DataUse.Instance.RoomName + ""; IDictionary DataTable = new Dictionary <string, string>(); DataTable["friend"] = FriendName; DataTable["eventid"] = EventId; DataTable["friendid"] = FriendId; DataTable["myid"] = f.id; DataTable["myname"] = f.name; PushAPI.SendToastToUser(f.pushkey, Title, SubTitle, DataTable, "InvitationPage"); }