45 lines
964 B
C#
45 lines
964 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace EgwProxy.Shelly.Test
|
|
{
|
|
public class TestSetup
|
|
{
|
|
public string devAddr { get; set; } = "";
|
|
public shellyModel model { get; set; } = shellyModel.nd;
|
|
public int tOutSec{ get; set; } = 5;
|
|
public List<singleStep> steps { get; set; }
|
|
}
|
|
|
|
public class singleStep
|
|
{
|
|
public string id { get; set; } = "00";
|
|
public string description { get; set; } = "00";
|
|
public stepType action { get; set; } = stepType.none;
|
|
|
|
public int numRep { get; set; } = 1;
|
|
|
|
public int waitTime { get; set; } = 1000;
|
|
|
|
public List<string> paramList { get; set; } = new List<string>();
|
|
}
|
|
|
|
public enum stepType
|
|
{
|
|
none,
|
|
getFullStatus,
|
|
getSwitchStatus
|
|
}
|
|
|
|
public enum shellyModel
|
|
{
|
|
nd,
|
|
gen1,
|
|
gen2
|
|
}
|
|
|
|
}
|