namespace RoboidControl {
///
/// Message to request details for a Thing
///
public class InvestigateMsg : IMessage {
///
/// The message Id
///
public const byte Id = 0x81;
///
/// The length of the message
///
public const byte length = 3;
///
/// The network ID of the thing
///
public byte networkId;
///
/// The ID of the thing
///
public byte thingId;
///
/// Create a new message for sending
///
/// The network ID for the thing
/// The ID of the thing
public InvestigateMsg(byte networkId, byte thingId) {
this.networkId = networkId;
this.thingId = thingId;
}
/// @copydoc Passer::RoboidControl::IMessage::IMessage(byte[] buffer)
public InvestigateMsg(byte[] buffer) : base(buffer) { }
/// @copydoc Passer::RoboidControl::IMessage::Serialize
public override byte Serialize(ref byte[] buffer) {
byte ix = 0;
buffer[ix++] = InvestigateMsg.Id;
buffer[ix++] = this.networkId;
buffer[ix++] = this.thingId;
return ix;
}
}
}