Exemple #1
0
 /// <summary>
 /// Constructor for outgoing packets
 /// </summary>
 /// <param name="FormattedText">The contents of the message.  Can contain click links and color formatting in HTML.</param>
 /// <param name="VoiceCommand">The Voice command to send, if any.  Can be null.</param>
 internal AnonVicinityPacket(String str, String FormattedText, VoiceBlob VoiceCommand) :
     base(Packet.Type.MSG_ANONVICINITY)
 {
     this.AddData(new AoString("\0"));
     this.AddData(new AoString(FormattedText));
     this.AddData(VoiceCommand);
 }
 /// <summary>
 /// private group message event message constructor
 /// </summary>
 /// <param name="PrivateGroupID">The id of the private chat group.</param>
 /// <param name="SenderID">The buddy id of the sender.</param>
 /// <param name="Message">Message containing text and click links</param>
 /// <param name="VoiceCommand">voice blob in the message, if any</param>
 public PrivateChannelMessageEventArgs(UInt32 PrivateGroupID, UInt32 SenderID, string Message, VoiceBlob VoiceCommand)
 {
     this._privGroupID = PrivateGroupID;
     this._senderID    = SenderID;
     this._message     = Message;
     this._blob        = VoiceCommand;
 }
 // Constructor
 public ChannelMessageEventArgs(BigInteger channelID, UInt32 senderID, string message, VoiceBlob voiceCommand)
 {
     this._channelID = channelID;
     this._senderID  = senderID;
     this._message   = message;
     this._blob      = voiceCommand;
 }
Exemple #4
0
 /// <summary>
 /// Tell message event argument constructor
 /// </summary>
 /// <param name="SenderID">The buddy id of the sender.</param>
 /// <param name="Message">Message containing text and click links</param>
 /// <param name="VoiceCommand">voice blob in the message, if any</param>
 public TellEventArgs(UInt32 SenderID, string Message, VoiceBlob VoiceCommand, bool outgoing)
 {
     this._senderID = SenderID;
     this._msg      = Message;
     this._blob     = VoiceCommand;
     this._outgoing = outgoing;
 }
        /// <summary>
        /// constructor for outgoing packets
        /// </summary>
        /// <param name="ChannelID">5-byte channel id</param>
        /// <param name="Text">the text of the message.  This can be html formatted.</param>
        /// <param name="VoiceCommand">the voice command, if any</param>
        internal GroupMessagePacket(BigInteger ChannelID, String Text, VoiceBlob VoiceCommand) :
            base(Packet.Type.GROUP_MESSAGE)
        {
            this.AddData(ChannelID);
            this.AddData(new AoString(Text));

            if (VoiceCommand == null)
            {
                this.AddData(new AoString("\0"));
            }
            else
            {
                this.AddData(VoiceCommand);
            }
        }
Exemple #6
0
        /// <summary>
        /// Constructor for outgoing packet data
        /// </summary>
        /// <param name="BuddyID">The id of the buddy to who to send the message.</param>
        /// <param name="FormattedText">The contents of the message.  Can contain click links and color formatting in HTML.</param>
        /// <param name="VoiceCommand">The Voice command to send, if any.  Can be null.</param>
        internal TellPacket(UInt32 BuddyID, String FormattedText, VoiceBlob VoiceCommand) :
            base(Packet.Type.MSG_PRIVATE)
        {
            this._buddyID = BuddyID;
            this._message = new AoString(FormattedText);

            this.AddData(AoConvert.HostToNetworkOrder(this._buddyID));
            this.AddData(this._message);

            if (VoiceCommand == null)
            {
                this.AddData(new AoString("\0"));
            }
            else
            {
                this.AddData(VoiceCommand);
            }
        }
        /// <summary>
        /// Constructor for outgoing messages
        /// </summary>
        /// <param name="PrivateGroupID">the id of the buddy who is hosting the private group</param>
        /// <param name="FormattedText">The contents of the message.  Can contain click links and color formatting in HTML.</param>
        /// <param name="VoiceCommand">The voice command to send, if any.  Can be null.</param>
        internal PrivateGroupMessagePacket(UInt32 PrivateGroupID, String FormattedText, VoiceBlob VoiceCommand) :
            base(Packet.Type.PRIVGRP_MSG)
        {
            this.AddData(AoConvert.HostToNetworkOrder(PrivateGroupID));
            this.AddData(new AoString(FormattedText));

            if (VoiceCommand == null)
            {
                this.AddData(new AoString("\0"));
            }
            else
            {
                this.AddData(VoiceCommand);
            }
        }
Exemple #8
0
 /// <summary>
 /// The event argument constructor
 /// </summary>
 /// <param name="str">an unknown string</param>
 /// <param name="Text">the text of the message</param>
 /// <param name="Blob">the blob of the message, if any</param>
 public AnonVicinityEventArgs(String str, string Message, VoiceBlob VoiceCommand)
 {
     this._str  = str;
     this._msg  = Message;
     this._blob = VoiceCommand;
 }