Beispiel #1
0
 public string LastMiniDeviceSetting(DeviceSettingType type)
 {
     if (DebugSettings.ContainsKey(type.ToString()))
     {
         return(DebugSettings[type.ToString()]);
     }
     return(null);
 }
Beispiel #2
0
        /// <summary>
        /// Last time when the device settings of the specified type were received.
        /// </summary>
        /// <returns>Timestamp in server local time.</returns>
        public DateTime LastMiniDeviceSettingLastReceived(DeviceSettingType type)
        {
            if (DebugSettingsLastReceived.ContainsKey(type.ToString()))
            {
                return(DebugSettingsLastReceived[type.ToString()].ToLocalTime());
            }

            return(DateTime.MinValue);
        }