void newFriend(string userId) { GetSocial.GetUserById(userId, user => { DemoUtils.ShowPopup("You have a new friend!", user.DisplayName + " is now your friend."); }, error => { _console.LogE("Failed to get user: "******", code: " + error.ErrorCode); }); }
private void OnMentionClicked(string mention) { if (mention == MentionShortcuts.App) { DemoUtils.ShowPopup("Mention", "Application mention clicked."); return; } GetSocial.GetUserById(mention, OnUserAvatarClicked, error => _console.LogE("Failed to get user details, error:" + error.Message)); }
void MessageFriend() { GetSocial.GetUserById(_userId, user => { // show message view enabled = false; _messageView.Receiver = user; _messageView.enabled = true; _messageView.LoadMessages(); }, error => { _console.LogE("Could not get user: " + error); }); }