public string LastMiniDeviceSetting(DeviceSettingType type) { if (DebugSettings.ContainsKey(type.ToString())) { return(DebugSettings[type.ToString()]); } return(null); }
/// <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); }