Esempio n. 1
0
 /// <summary>
 /// Adds a chat message to the chat log stack, so it will be written in the database on the next cycle.
 /// </summary>
 /// <param name="sessionID">The ID of the session that chatted this message.</param>
 /// <param name="userID">The database ID of the user that chatted this message.</param>
 /// <param name="roomID">The database ID of the room where this message was chatted in.</param>
 /// <param name="receiverID">If the type of this chat message was a whisper, the database ID of the receiving user should be supplied here.</param>
 /// <param name="Type">A value of the 'chatType' enum, representing the type of this chat message.</param>
 /// <param name="Text">The actual chat message. Pass this argument with the 'ref' keyword please.</param>
 public void addChatMessageToLogStack(uint sessionID, int userID, int roomID, int receiverID, chatType Type, ref string Text)
 {
     if (this._logChat)
     {
         chatLog Log = new chatLog(sessionID, userID, roomID, receiverID, Type, Text);
         this.chatLogStack.Add(Log);
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Adds a chat message to the chat log stack, so it will be written in the database on the next cycle.
 /// </summary>
 /// <param name="sessionID">The ID of the session that chatted this message.</param>
 /// <param name="userID">The database ID of the user that chatted this message.</param>
 /// <param name="roomID">The database ID of the room where this message was chatted in.</param>
 /// <param name="receiverID">If the type of this chat message was a whisper, the database ID of the receiving user should be supplied here.</param>
 /// <param name="Type">A value of the 'chatType' enum, representing the type of this chat message.</param>
 /// <param name="Text">The actual chat message. Pass this argument with the 'ref' keyword please.</param>
 public void addChatMessageToLogStack(uint sessionID, int userID, int roomID, int receiverID, chatType Type, ref string Text)
 {
     if (this._logChat)
     {
         chatLog Log = new chatLog(sessionID, userID, roomID, receiverID, Type, Text);
         this.chatLogStack.Add(Log);
     }
 }