2016-10-12 16:37:54 +03:00
|
|
|
using System.Runtime.Serialization;
|
2014-10-31 09:05:52 +02:00
|
|
|
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; }
|
|
|
|
|
|
2016-10-12 16:37:54 +03:00
|
|
|
public override string ToString()
|
|
|
|
|
{
|
|
|
|
|
return $"CommandType = {CommandType}";
|
|
|
|
|
}
|
2014-10-31 09:05:52 +02:00
|
|
|
}
|
|
|
|
|
}
|