using System; using System.Collections.Generic; using System.Linq; using System.Text; using HySoft.IVRFlowEditor.IVRControlUtility; using HySoft.IVRFlowEditor.Model; using HySoft.IVRFlowEditor.IVRControl; namespace HySoft.IVRFlowEditor.IVRControlUtility { /// /// CELL_SOCKET /// [IVRAttribute("CELL_SOCKET", IVRSerializerType.节点, 1)] public class IVRSocket : IVRControlBase { public IVRSocket(string name) { this.Name = name; CtlProperty = new CtlIVRSocket(this); IVRInputVar = new List(); OutputVar = new List(); } /// /// :操作类型标识。 /// [IVRAttribute("OpType", IVRSerializerType.元素, 2)] public OpType OpType { get; set; } /// /// :远端地址。 /// [IVRAttribute("FarIp", IVRSerializerType.元素, 3)] public string FarIp { get; set; } /// /// :远端端口。 /// [IVRAttribute("FarPort", IVRSerializerType.元素, 4)] public int FarPort { get; set; } /// /// :接收超时,单位为秒。 /// [IVRAttribute("RecvTimeOut", IVRSerializerType.元素, 5)] public int RecvTimeOut { get; set; } /// /// :执行成功跳转节点编号。 /// [IVRAttribute("SuccessPos", IVRSerializerType.元素, 6)] public IVRControlBase SuccessPos { get; set; } /// /// :执行失败跳转节点编号。 /// [IVRAttribute("FailPos", IVRSerializerType.元素, 7)] public IVRControlBase FailPos { get; set; } [IVRAttribute("IVRInputVar", IVRSerializerType.节点, 8)] public List IVRInputVar { get; set; } [IVRAttribute("OutputVar", IVRSerializerType.节点, 9)] public List OutputVar { get; set; } } /// /// 节点 /// [IVRAttribute("IVRInputVar", IVRSerializerType.节点, 1)] public class IVRInputVar { public IVRInputVar() { Control = new CtlIVRInputVar(this); } [IVRAttribute("VarType", IVRSerializerType.元素, 2)] public NumberType VarType { get; set; } [IVRAttribute("VarVal", IVRSerializerType.元素, 1)] public string VarVal { get; set; } public CtlIVRInputVar Control { get; set; } } }