mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-07-11 19:27:52 +00:00
Update all model classes to Electron API 39.2
This commit is contained in:
@@ -3,32 +3,32 @@
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
/// <remarks>Up-to-date with Electron API 39.2</remarks>
|
||||
public class UploadFile : IPostData
|
||||
{
|
||||
/// <summary>
|
||||
/// The object represents a file.
|
||||
/// Gets the type discriminator; constant 'file'.
|
||||
/// </summary>
|
||||
public string Type { get; } = "file";
|
||||
|
||||
/// <summary>
|
||||
/// The path of the file being uploaded.
|
||||
/// Gets or sets the path of the file to be uploaded.
|
||||
/// </summary>
|
||||
public string FilePath { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The offset from the beginning of the file being uploaded, in bytes. Defaults to 0.
|
||||
/// Gets or sets the offset from the beginning of the file being uploaded, in bytes. Defaults to 0.
|
||||
/// </summary>
|
||||
public long Offset { get; set; } = 0;
|
||||
|
||||
/// <summary>
|
||||
/// The length of the file being uploaded, <see cref="Offset"/>. Defaults to 0.
|
||||
/// If set to -1, the whole file will be uploaded.
|
||||
/// Gets or sets the number of bytes to read from offset. Defaults to 0.
|
||||
/// </summary>
|
||||
public long Length { get; set; } = 0;
|
||||
|
||||
/// <summary>
|
||||
/// The modification time of the file represented by a double, which is the number of seconds since the UNIX Epoch (Jan 1, 1970)
|
||||
/// Gets or sets the last modification time in number of seconds since the UNIX epoch. Defaults to 0.
|
||||
/// </summary>
|
||||
public double ModificationTime { get; set; }
|
||||
public double ModificationTime { get; set; } = 0;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user