2019-05-18 02:00:56 +02:00
|
|
|
|
namespace ElectronNET.API.Entities
|
2019-05-16 18:03:31 +02:00
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
///
|
|
|
|
|
|
/// </summary>
|
2025-11-22 02:16:10 +01:00
|
|
|
|
/// <remarks>Up-to-date with Electron API 39.2</remarks>
|
2019-05-16 18:03:31 +02:00
|
|
|
|
public class EnableNetworkEmulationOptions
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Whether to emulate network outage. Defaults to false.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public bool Offline { get; set; } = false;
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// RTT in ms. Defaults to 0 which will disable latency throttling.
|
2025-11-22 02:16:10 +01:00
|
|
|
|
/// Electron documents this as a Number (Double).
|
2019-05-16 18:03:31 +02:00
|
|
|
|
/// </summary>
|
2025-11-22 02:16:10 +01:00
|
|
|
|
public double Latency { get; set; }
|
2019-05-16 18:03:31 +02:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Download rate in Bps. Defaults to 0 which will disable download throttling.
|
2025-11-22 02:16:10 +01:00
|
|
|
|
/// Electron documents this as a Number (Double).
|
2019-05-16 18:03:31 +02:00
|
|
|
|
/// </summary>
|
2025-11-22 02:16:10 +01:00
|
|
|
|
public double DownloadThroughput { get; set; }
|
2019-05-16 18:03:31 +02:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Upload rate in Bps. Defaults to 0 which will disable upload throttling.
|
2025-11-22 02:16:10 +01:00
|
|
|
|
/// Electron documents this as a Number (Double).
|
2019-05-16 18:03:31 +02:00
|
|
|
|
/// </summary>
|
2025-11-22 02:16:10 +01:00
|
|
|
|
public double UploadThroughput { get; set; }
|
2019-05-16 18:03:31 +02:00
|
|
|
|
}
|
2025-11-15 08:05:31 +01:00
|
|
|
|
}
|