2019-12-06 23:12:34 +01:00
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
namespace Unosquare.RaspberryIO.Computer {
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Represents the OS Information.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class OsInfo {
|
2019-12-04 18:57:18 +01:00
|
|
|
|
/// <summary>
|
2019-12-06 23:12:34 +01:00
|
|
|
|
/// System name.
|
2019-12-04 18:57:18 +01:00
|
|
|
|
/// </summary>
|
2019-12-08 12:34:43 +01:00
|
|
|
|
public String SysName {
|
2019-12-06 23:12:34 +01:00
|
|
|
|
get; set;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Node name.
|
|
|
|
|
/// </summary>
|
2019-12-08 12:34:43 +01:00
|
|
|
|
public String NodeName {
|
2019-12-06 23:12:34 +01:00
|
|
|
|
get; set;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Release level.
|
|
|
|
|
/// </summary>
|
2019-12-08 12:34:43 +01:00
|
|
|
|
public String Release {
|
2019-12-06 23:12:34 +01:00
|
|
|
|
get; set;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Version level.
|
|
|
|
|
/// </summary>
|
2019-12-08 12:34:43 +01:00
|
|
|
|
public String Version {
|
2019-12-06 23:12:34 +01:00
|
|
|
|
get; set;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Hardware level.
|
|
|
|
|
/// </summary>
|
2019-12-08 12:34:43 +01:00
|
|
|
|
public String Machine {
|
2019-12-06 23:12:34 +01:00
|
|
|
|
get; set;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Domain name.
|
|
|
|
|
/// </summary>
|
2019-12-08 12:34:43 +01:00
|
|
|
|
public String DomainName {
|
2019-12-06 23:12:34 +01:00
|
|
|
|
get; set;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Returns a <see cref="String" /> that represents this instance.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns>
|
|
|
|
|
/// A <see cref="String" /> that represents this instance.
|
|
|
|
|
/// </returns>
|
|
|
|
|
public override String ToString() => $"{this.SysName} {this.Release} {this.Version}";
|
|
|
|
|
}
|
2019-12-04 18:57:18 +01:00
|
|
|
|
}
|