/* Blunk - Multi User Server Framework Copyright 2009 - 2010 Nils W [nillus.net] Michael Graham [script-o-matic.net] This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . * PORTED TO C# BY awa500! */ /** * MusMessage is a message in the MUS protocol sent by either a MUS client or a MUS server. * * @author Nillus */ using System; namespace Holo.Source.Socket_servers.MUS { public class MusMessage { /** * The size of this message in bytes. */ public int size; /** * The error code that was returned by the handler of this message. 0 if no errors. */ public int errorCode; /** * The UNIX time in milliseconds representing the timestamp this message was handled on. */ public int timeStamp; /** * The subject String of this message. */ public string subject; /** * The ID of the sender of this message, usually a user Identity of some sort. */ public string senderID; /** * A String array holding receivers of this message. */ public string[] receivers; public short contentType; public int contentInt; public string contentString; public MusPropList contentPropList; public string toString() { if (this.contentString != null) { return this.subject + ":\"" + this.contentString + "\""; } else { return this.subject + ":\"\""; } } } }