示例#1
0
        private bool onAcceptFriendInvitationSent(FriendsServiceEvents.AcceptFriendInvitationSent evt)
        {
            string        messageToken = (evt.Success ? "Friends.FriendsService.requestaccepted" : "Friends.FriendsService.actionfailed");
            DNotification notification = createNotification(false, messageToken);

            Service.Get <TrayNotificationManager>().ShowNotification(notification);
            return(false);
        }
示例#2
0
 private bool onAcceptFriendInvitationSent(FriendsServiceEvents.AcceptFriendInvitationSent evt)
 {
     Service.Get <ICPSwrveService>().Action("game.friends", "accepted", evt.FriendName);
     return(false);
 }