Example #1
0
        public void SendMessage(LogNetClient client, bnet.protocol.channel.Message message)
        {
            var notification =
                bnet.protocol.channel.SendMessageNotification.CreateBuilder().SetAgentId(client.Account.CurrentGameAccount.BnetEntityId)
                .SetMessage(message).SetRequiredPrivileges(0).Build();


            foreach (var pair in this.Members) // send to all members of channel even to the actual one that sent the message else he'll not see his own message.
            {
                pair.Key.MakeTargetedRPC(this, () =>
                                         bnet.protocol.channel.ChannelSubscriber.CreateStub(pair.Key).NotifySendMessage(null, notification, callback => { }));
            }
        }
Example #2
0
 public void SetMessage(bnet.protocol.channel.Message val)
 {
     this.Message = val;
 }