ArchiSteamFarm/IPC/Controllers/Api/ASFController.cs
/// <summary>
///     Fetches common info related to ASF as a whole.
/// </summary>
Fetches common info related to ASF as a whole.
Fetches common info related to ASF as a whole .
[HttpGet]
	[ProducesResponseType(typeof(GenericResponse<ASFResponse>), (int) HttpStatusCode.OK)]
	public ActionResult<GenericResponse<ASFResponse>> ASFGet() {
		if (ASF.GlobalConfig == null) {
			throw new InvalidOperationException(nameof(ASF.GlobalConfig));
		}
		uint memoryUsage = (uint) GC.GetTotalMemory(false) / 1024;
		ASFResponse result = new(SharedInfo.BuildInfo.Variant, SharedInfo.BuildInfo.CanUpdate, ASF.GlobalConfig, memoryUsage, OS.ProcessStartTime, SharedInfo.Version);
		return Ok(new GenericResponse<ASFResponse>(result));
	}
[ HttpGet ] [ ProducesResponseType ( typeof ( GenericResponse < ASFResponse > ) , ( int ) HttpStatusCode . OK ) ] public ActionResult < GenericResponse < ASFResponse > > ASFGet ( ) { if ( ASF . GlobalConfig == null ) { throw new InvalidOperationException ( nameof ( ASF . GlobalConfig ) ) ; } uint memoryUsage = ( uint ) GC . GetTotalMemory ( false ) / 1024 ; ASFResponse result = new ( SharedInfo . BuildInfo . Variant , SharedInfo . BuildInfo . CanUpdate , ASF . GlobalConfig , memoryUsage , OS . ProcessStartTime , SharedInfo . Version ) ; return Ok ( new GenericResponse < ASFResponse > ( result ) ) ; }
Fetches common info related to ASF as a whole.
Fetches common info related to ASF as a whole .