Esempio n. 1
0
        // flags is a pipe separated list of strings.  Currently subscribers is the only flag recognized
        //  If the subscribers flag is set, the status updates from the server will include a list of subscribers
        // in each channel, instead of just the channel name.
        public void JoinChannel(string channelName, string flags, string inviteId)
        {
            if (channelSubscriptions.Contains(channelName))
            {
                return;
            }

            Entity entity = new Entity();

            entity.id = "chatjoin";
            JoinChat    joinChat    = new JoinChat();
            ChatChannel chatChannel = new ChatChannel();

            chatChannel.name  = channelName;
            chatChannel.flags = flags;
            if (inviteId != null)
            {
                chatChannel.invite_id = inviteId;
            }
            joinChat.chatChannel.Add(chatChannel);
            entity.joinChat = joinChat;
            actorSystem.FindRemote("default").Tell(entity);
        }
Esempio n. 2
0
        // flags is a pipe separated list of strings.  Currently subscribers is the only flag recognized
        //  If the subscribers flag is set, the status updates from the server will include a list of subscribers
        // in each channel, instead of just the channel name.
        public void JoinChannel(string channelName, string flags, string inviteId)
        {
            if (channelSubscriptions.Contains (channelName)) {
                return;
            }

            Entity entity = new Entity ();
            entity.id = "chatjoin";
            JoinChat joinChat = new JoinChat ();
            ChatChannel chatChannel = new ChatChannel ();
            chatChannel.name = channelName;
            chatChannel.flags = flags;
            if (inviteId != null) {
                chatChannel.invite_id = inviteId;
            }
            joinChat.chatChannel.Add (chatChannel);
            entity.joinChat = joinChat;
            actorSystem.FindRemote ("default").Tell (entity);
        }