Пример #1
0
        public void Modify(int p_DeviceTemplate_OID, string p_name, MoSIoTGenNHibernate.Enumerated.MosIoT.DeviceTypeEnum p_type, bool p_isEdge)
        {
            DeviceTemplateEN deviceTemplateEN = null;

            //Initialized DeviceTemplateEN
            deviceTemplateEN        = new DeviceTemplateEN();
            deviceTemplateEN.Id     = p_DeviceTemplate_OID;
            deviceTemplateEN.Name   = p_name;
            deviceTemplateEN.Type   = p_type;
            deviceTemplateEN.IsEdge = p_isEdge;
            //Call to DeviceTemplateCAD

            _IDeviceTemplateCAD.Modify(deviceTemplateEN);
        }
Пример #2
0
        public int New_(string p_name, MoSIoTGenNHibernate.Enumerated.MosIoT.DeviceTypeEnum p_type, bool p_isEdge)
        {
            DeviceTemplateEN deviceTemplateEN = null;
            int oid;

            //Initialized DeviceTemplateEN
            deviceTemplateEN      = new DeviceTemplateEN();
            deviceTemplateEN.Name = p_name;

            deviceTemplateEN.Type = p_type;

            deviceTemplateEN.IsEdge = p_isEdge;

            //Call to DeviceTemplateCAD

            oid = _IDeviceTemplateCAD.New_(deviceTemplateEN);
            return(oid);
        }
Пример #3
0
        private void init(int id
                          , string name, System.Collections.Generic.IList <MoSIoTGenNHibernate.EN.MosIoT.PropertyEN> property, System.Collections.Generic.IList <MoSIoTGenNHibernate.EN.MosIoT.CommandEN> command, System.Collections.Generic.IList <MoSIoTGenNHibernate.EN.MosIoT.TelemetryEN> telemetry, MoSIoTGenNHibernate.Enumerated.MosIoT.DeviceTypeEnum type, bool isEdge)
        {
            this.Id = id;


            this.Name = name;

            this.Property = property;

            this.Command = command;

            this.Telemetry = telemetry;

            this.Type = type;

            this.IsEdge = isEdge;
        }
Пример #4
0
 public DeviceTemplateEN(int id, string name, System.Collections.Generic.IList <MoSIoTGenNHibernate.EN.MosIoT.PropertyEN> property, System.Collections.Generic.IList <MoSIoTGenNHibernate.EN.MosIoT.CommandEN> command, System.Collections.Generic.IList <MoSIoTGenNHibernate.EN.MosIoT.TelemetryEN> telemetry, MoSIoTGenNHibernate.Enumerated.MosIoT.DeviceTypeEnum type, bool isEdge
                         )
 {
     this.init(Id, name, property, command, telemetry, type, isEdge);
 }