Esempio n. 1
0
        public SwitchboardInvitation GetInvitationByUserKeyAndId(User user, String key, int sessionId)
        {
            // meh
            SwitchboardInvitation invite = GetInvitationByUserAndKey(user, key);

            return(invite.Session.Id == sessionId ? invite : null);
        }
Esempio n. 2
0
        public SwitchboardInvitation CreateInvitation(User invitee)
        {
            SwitchboardInvitation invite = new SwitchboardInvitation(this, invitee);

            Invitations.Add(invite);

            return(invite);
        }
Esempio n. 3
0
        public void ASNotifyRng(User caller, User recipient, SwitchboardInvitation invite)
        {
            // should ASNotifyRng be using UserListEntry? Why can't it use .FriendlyName, why must it use .CustomName, which must be recalled from somewhere?
            UserListEntry callerEntry = new UserListEntry(caller, caller.FriendlyName);

            NotificationConnection connection = GetConnectionForUser(recipient);

            if (connection != null)
            {
                connection.Protocol.ASNotifyRng(callerEntry, connection, invite);
            }
        }