Esempio n. 1
0
        public void InsertChatLog(ChatType type, long characterId, string message, string ipAddress)
        {
            LogChatDTO log = new LogChatDTO
            {
                CharacterId = characterId,
                ChatMessage = message,
                IpAddress   = ipAddress,
                ChatType    = (byte)type,
                Timestamp   = DateTime.Now
            };

            DAOFactory.LogChatDAO.InsertOrUpdate(ref log);
        }
Esempio n. 2
0
        public void InsertChatLog(ChatType type, long characterId, string message, string ipAddress)
        {
            LogChatDTO log = new LogChatDTO
            {
                CharacterId = characterId,
                ChatMessage = message,
                IpAddress   = ipAddress,
                ChatType    = (byte)type,
                Timestamp   = DateTime.Now
            };

            logChat.Add(log);
        }