示例#1
0
        public int New_(int p_deviceTemplate, string p_name, bool p_isSynchronous, MoSIoTGenNHibernate.Enumerated.MosIoT.OperationTypeEnum p_type, string p_description)
        {
            CommandEN commandEN = null;
            int       oid;

            //Initialized CommandEN
            commandEN = new CommandEN();

            if (p_deviceTemplate != -1)
            {
                // El argumento p_deviceTemplate -> Property deviceTemplate es oid = false
                // Lista de oids id
                commandEN.DeviceTemplate    = new MoSIoTGenNHibernate.EN.MosIoT.DeviceTemplateEN();
                commandEN.DeviceTemplate.Id = p_deviceTemplate;
            }

            commandEN.Name = p_name;

            commandEN.IsSynchronous = p_isSynchronous;

            commandEN.Type = p_type;

            commandEN.Description = p_description;

            //Call to CommandCAD

            oid = _ICommandCAD.New_(commandEN);
            return(oid);
        }
示例#2
0
        public void Modify(int p_Command_OID, string p_name, bool p_isSynchronous, MoSIoTGenNHibernate.Enumerated.MosIoT.OperationTypeEnum p_type, string p_description)
        {
            CommandEN commandEN = null;

            //Initialized CommandEN
            commandEN               = new CommandEN();
            commandEN.Id            = p_Command_OID;
            commandEN.Name          = p_name;
            commandEN.IsSynchronous = p_isSynchronous;
            commandEN.Type          = p_type;
            commandEN.Description   = p_description;
            //Call to CommandCAD

            _ICommandCAD.Modify(commandEN);
        }
示例#3
0
        private void init(int id
                          , MoSIoTGenNHibernate.EN.MosIoT.DeviceTemplateEN deviceTemplate, string name, bool isSynchronous, System.Collections.Generic.IList <MoSIoTGenNHibernate.EN.MosIoT.EventTelemetryEN> telemetries, MoSIoTGenNHibernate.Enumerated.MosIoT.OperationTypeEnum type, string description)
        {
            this.Id = id;


            this.DeviceTemplate = deviceTemplate;

            this.Name = name;

            this.IsSynchronous = isSynchronous;

            this.Telemetries = telemetries;

            this.Type = type;

            this.Description = description;
        }
示例#4
0
 public CommandEN(int id, MoSIoTGenNHibernate.EN.MosIoT.DeviceTemplateEN deviceTemplate, string name, bool isSynchronous, System.Collections.Generic.IList <MoSIoTGenNHibernate.EN.MosIoT.EventTelemetryEN> telemetries, MoSIoTGenNHibernate.Enumerated.MosIoT.OperationTypeEnum type, string description
                  )
 {
     this.init(Id, deviceTemplate, name, isSynchronous, telemetries, type, description);
 }