KFDtool/sw/control/KFDtool.P25/Kmm/InventoryCommandListRsiItem...

55 lines
1.1 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace KFDtool.P25.Kmm
{
public class InventoryCommandListRsiItems : KmmBody
{
public override MessageId MessageId
{
get
{
return MessageId.InventoryCommand;
}
}
public InventoryType InventoryType
{
get
{
return InventoryType.ListRsiItems;
}
}
public override ResponseKind ResponseKind
{
get
{
return ResponseKind.Immediate;
}
}
public InventoryCommandListRsiItems()
{
}
public override byte[] ToBytes()
{
byte[] contents = new byte[1];
/* inventory type */
contents[0] = (byte)InventoryType;
return contents;
}
public override void Parse(byte[] contents)
{
// nothing to do...
}
}
}