Files
RhythmicWallpaper/AudioVisualizer/Entity/ConfigurationObject.cs
2024-10-17 23:10:02 +08:00

44 lines
1.5 KiB
C#

namespace AudioWallpaper.Entity {
[Serializable]
public class ConfigurationObject {
private GeneralConfigurationObjects? generalConfigurationObjects;
private VideoWallpaperConfigObject? videoWallpaperConfigObject;
public bool DeviceStateChange = false;
public bool SignRenderingStatus = false;
public bool RenderingStatus = true;
public GeneralConfigurationObjects GeneralConfigurationObjects {
get {
if (generalConfigurationObjects != null) {
return generalConfigurationObjects;
}
return new GeneralConfigurationObjects();
}
set {
if (value != null) {
generalConfigurationObjects = value;
} else {
generalConfigurationObjects = new GeneralConfigurationObjects();
}
}
}
public VideoWallpaperConfigObject VideoWallpaperConfigObject {
get {
if (videoWallpaperConfigObject != null) {
return videoWallpaperConfigObject;
}
return new VideoWallpaperConfigObject();
}
set {
if (value != null) {
videoWallpaperConfigObject = value;
} else {
videoWallpaperConfigObject = new VideoWallpaperConfigObject();
}
}
}
}
}