示例#1
0
文件: Mixer.cs 项目: r3db/Messenger
        public void InviteUser(string account)
        {
            this.socket.NotNull();
            account.NotEmpty();

            PackageRequest request = new ChatInvitationRequest(account);

            NotificationServerRedirectionResponse response = this.socket.SendAndBlock(request) as NotificationServerRedirectionResponse;
        }
示例#2
0
        public void InviteUserToChatSession(string account)
        {
            this.socket.NotNull();
            account.NotEmpty();

            PackageRequest request = new StartSwitchboardSessionRequest();

            NotificationServerRedirectionResponse response = this.socket.SendAndBlock(request) as NotificationServerRedirectionResponse;

            if (response == null)
            {
                Console.WriteLine("Invitation failed");
                return;
            }

            //Mixer swb = new Mixer(response.Host)
        }