RaspberryIO_26/Unosquare.RaspberryIO/Computer/OsInfo.cs

59 lines
1.1 KiB
C#
Raw Normal View History

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-06 23:12:34 +01:00
public String? SysName {
get; set;
}
/// <summary>
/// Node name.
/// </summary>
public String? NodeName {
get; set;
}
/// <summary>
/// Release level.
/// </summary>
public String? Release {
get; set;
}
/// <summary>
/// Version level.
/// </summary>
public String? Version {
get; set;
}
/// <summary>
/// Hardware level.
/// </summary>
public String? Machine {
get; set;
}
/// <summary>
/// Domain name.
/// </summary>
public String? DomainName {
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
}