namespace ElectronNET.API.Entities { /// /// /// /// Up-to-date with Electron API 39.2 public class UploadFile : IPostData { /// /// Gets the type discriminator; constant 'file'. /// public string Type { get; } = "file"; /// /// Gets or sets the path of the file to be uploaded. /// public string FilePath { get; set; } /// /// Gets or sets the offset from the beginning of the file being uploaded, in bytes. Defaults to 0. /// public long Offset { get; set; } = 0; /// /// Gets or sets the number of bytes to read from offset. Defaults to 0. /// public long Length { get; set; } = 0; /// /// Gets or sets the last modification time in number of seconds since the UNIX epoch. Defaults to 0. /// public double ModificationTime { get; set; } = 0; } }