1
0
Fork 0
mirror of https://gitlab.com/futo-org/fcast.git synced 2025-08-16 04:12:49 +00:00

Initial TizenOS receiver commit

This commit is contained in:
Michael Hollister 2025-02-13 17:33:21 -06:00
parent 8c2eb78ef5
commit 2e5746645f
40 changed files with 9881 additions and 0 deletions

View file

@ -0,0 +1,129 @@

namespace FCastReceiverService
{
/// <summary>
/// https://www.tizen.org/system
/// </summary>
public static class SystemInformation
{
/// <summary>
/// The platform returns the build date. The build date is made when platform image is created
/// </summary>
public static string BuildDate { get; private set; }
/// <summary>
/// The platform returns a changelist number such as "tizen-mobile-RC2".
/// The changelist number is made when platform image is created.
/// </summary>
public static string BuildId { get; private set; }
/// <summary>
/// The platform returns the build version information such as "20160307.1".
/// The build version information is made when platform image is created.
/// </summary>
public static string BuildRelease { get; private set; }
/// <summary>
/// The platform returns the build information string.
/// The build information string is made when platform image is created.
/// </summary>
public static string BuildString { get; private set; }
/// <summary>
/// The platform returns the build time. The build time is made when platform image is created.
/// </summary>
public static string BuildTime { get; private set; }
/// <summary>
/// The platform returns the build type such as "user" or "eng".
/// The build type is made when platform image is created.
/// </summary>
public static string BuildType { get; private set; }
/// <summary>
/// The platform returns variant release information.
/// The variant release information is made when platform image is created.
/// </summary>
public static string BuildVariant { get; private set; }
/// <summary>
/// The platform returns the manufacturer name.
/// </summary>
public static string Manufacturer { get; private set; }
/// <summary>
/// The platform returns the device model name.
/// </summary>
public static string ModelName { get; private set; }
/// <summary>
/// The platform returns the Platform name.
/// </summary>
public static string PlatformName { get; private set; }
static SystemInformation()
{
string temp;
if (Tizen.System.Information.TryGetValue("http://tizen.org/system/build.date", out temp) == false)
{
Serilog.Log.Warning($"Error initializing SystemInformation field: BuildDate");
}
BuildDate = temp;
if (Tizen.System.Information.TryGetValue("http://tizen.org/system/build.id", out temp) == false)
{
Serilog.Log.Warning($"Error initializing SystemInformation field: BuildId");
}
BuildId = temp;
if (Tizen.System.Information.TryGetValue("http://tizen.org/system/build.release", out temp) == false)
{
Serilog.Log.Warning($"Error initializing SystemInformation field: BuildRelease");
}
BuildRelease = temp;
if (Tizen.System.Information.TryGetValue("http://tizen.org/system/build.string", out temp) == false)
{
Serilog.Log.Warning($"Error initializing SystemInformation field: BuildString");
}
BuildString = temp;
if (Tizen.System.Information.TryGetValue("http://tizen.org/system/build.time", out temp) == false)
{
Serilog.Log.Warning($"Error initializing SystemInformation field: BuildTime");
}
BuildTime = temp;
if (Tizen.System.Information.TryGetValue("http://tizen.org/system/build.type", out temp) == false)
{
Serilog.Log.Warning($"Error initializing SystemInformation field: BuildType");
}
BuildType = temp;
if (Tizen.System.Information.TryGetValue("http://tizen.org/system/build.variant", out temp) == false)
{
Serilog.Log.Warning($"Error initializing SystemInformation field: BuildVariant");
}
BuildVariant = temp;
if (Tizen.System.Information.TryGetValue("http://tizen.org/system/manufacturer", out temp) == false)
{
Serilog.Log.Warning($"Error initializing SystemInformation field: Manufacturer");
}
Manufacturer = temp;
if (Tizen.System.Information.TryGetValue("http://tizen.org/system/model_name", out temp) == false)
{
Serilog.Log.Warning($"Error initializing SystemInformation field: ModelName");
}
ModelName = temp;
if (Tizen.System.Information.TryGetValue("http://tizen.org/system/platform.name", out temp) == false)
{
Serilog.Log.Warning($"Error initializing SystemInformation field: PlatformName");
}
PlatformName = temp;
}
}
}