mirror of
https://github.com/vdemydiuk/mtapi.git
synced 2026-07-28 19:17:48 +00:00
27 lines
606 B
C#
Executable File
27 lines
606 B
C#
Executable File
using System.Runtime.Serialization;
|
|
using System.Collections;
|
|
|
|
namespace MTApiService
|
|
{
|
|
[DataContract]
|
|
public class MtCommand
|
|
{
|
|
public MtCommand(int commandType, ArrayList parameters)
|
|
{
|
|
CommandType = commandType;
|
|
Parameters = parameters;
|
|
}
|
|
|
|
[DataMember]
|
|
public int CommandType { get; private set; }
|
|
|
|
[DataMember]
|
|
public ArrayList Parameters { get; private set; }
|
|
|
|
public override string ToString()
|
|
{
|
|
return $"CommandType = {CommandType}";
|
|
}
|
|
}
|
|
}
|