Ejemplo n.º 1
0
        private void HandleChatServerCopyMessage(IAccount account, ChatServerCopyMessage message)
        {
            switch ((ChatChannelsMultiEnum)message.Channel)
            {
            case ChatChannelsMultiEnum.CHANNEL_PRIVATE:
                Logger.Default.Log($"(Private) à {message.ReceiverName} : {message.Content}", LogMessageType.Private);
                break;

            default:
                Logger.Default.Log("Not implemented");
                break;
            }
        }
 public BotChatMessageServer(ChatServerCopyMessage message)
 {
     if (message == null)
     {
         throw new ArgumentNullException("message");
     }
     Content      = message.content;
     Channel      = (ChatActivableChannelsEnum)message.channel;
     SentTime     = message.timestamp.UnixTimestampToDateTime();
     ReceiverId   = message.receiverId;
     ReceiverName = message.receiverName;
     FingerPrint  = message.fingerprint;
     SenderId     = ReceiverId;
     SenderName   = ReceiverName;
     Copy         = true;
 }
Ejemplo n.º 3
0
 public static void HandleChatServerCopyMessage(Bot bot, ChatServerCopyMessage message)
 {
     bot.SendLocal(new BotChatMessageServer(message));
 }
Ejemplo n.º 4
0
 private void ChatServerCopyMessageHandler(DofusClient client, ChatServerCopyMessage message)
 {
     //
 }