2021-03-12 16:31:29 +01:00
|
|
|
|
namespace ElectronNET.API.Entities
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
///
|
|
|
|
|
|
/// </summary>
|
2025-11-22 02:16:10 +01:00
|
|
|
|
/// <remarks>Up-to-date with Electron API 39.2</remarks>
|
2021-03-12 16:31:29 +01:00
|
|
|
|
public class UploadFile : IPostData
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
2025-11-22 02:16:10 +01:00
|
|
|
|
/// Gets the type discriminator; constant 'file'.
|
2021-03-12 16:31:29 +01:00
|
|
|
|
/// </summary>
|
|
|
|
|
|
public string Type { get; } = "file";
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2025-11-22 02:16:10 +01:00
|
|
|
|
/// Gets or sets the path of the file to be uploaded.
|
2021-03-12 16:31:29 +01:00
|
|
|
|
/// </summary>
|
|
|
|
|
|
public string FilePath { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2025-11-22 02:16:10 +01:00
|
|
|
|
/// Gets or sets the offset from the beginning of the file being uploaded, in bytes. Defaults to 0.
|
2021-03-12 16:31:29 +01:00
|
|
|
|
/// </summary>
|
|
|
|
|
|
public long Offset { get; set; } = 0;
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2025-11-22 02:16:10 +01:00
|
|
|
|
/// Gets or sets the number of bytes to read from offset. Defaults to 0.
|
2021-03-12 16:31:29 +01:00
|
|
|
|
/// </summary>
|
|
|
|
|
|
public long Length { get; set; } = 0;
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2025-11-22 02:16:10 +01:00
|
|
|
|
/// Gets or sets the last modification time in number of seconds since the UNIX epoch. Defaults to 0.
|
2021-03-12 16:31:29 +01:00
|
|
|
|
/// </summary>
|
2025-11-22 02:16:10 +01:00
|
|
|
|
public double ModificationTime { get; set; } = 0;
|
2021-03-12 16:31:29 +01:00
|
|
|
|
}
|
|
|
|
|
|
}
|