Exemple #1
0
        public DeviceRequest(Device d) : this()
        {
            if (d != null)
            {
                this.Id = d.Id;

                //if (d.StatusGroups != null)
                //	this.StatusGroups = d.StatusGroups;

                //if (d.Settings != null)
                //	this.Settings = d.Settings;

                if (Environment.AppSettings.UseTimestamps)
                {
                    if (d.MetaData?.TimeStamp != null)
                    {
                        this.MetaData = new DeviceMetaDataRequest()
                        {
                            TimeStamp = d.MetaData.TimeStamp
                        }
                    }
                    ;
                }
            }
        }
Exemple #2
0
 public DeviceRequest()
 {
     this.MetaData = new DeviceMetaDataRequest()
     {
     };
 }