Class DownloadManagerFile
Represents a file to be downloaded by the DownloadManager.
public class DownloadManagerFile : IEquatable<DownloadManagerFile>
- Inheritance
-
DownloadManagerFile
- Implements
- Inherited Members
Constructors
DownloadManagerFile(Stream, string, Func<string>?)
public DownloadManagerFile(Stream stream, string filename, Func<string>? decryptionPWFunc)
Parameters
DownloadManagerFile(Stream, string, Func<string>?, string?)
public DownloadManagerFile(Stream stream, string filename, Func<string>? decryptionPWFunc, string? hash)
Parameters
DownloadManagerFile(string, string?, Func<string>?)
public DownloadManagerFile(string uri, string? hash, Func<string>? decryptionPWFunc)
Parameters
Fields
DecryptedFilePath
public string? DecryptedFilePath
Field Value
DecryptionPWFunc
public Func<string>? DecryptionPWFunc
Field Value
FileName
public readonly string FileName
Field Value
FileSizeInBytes
public long FileSizeInBytes
Field Value
Hash
public readonly string? Hash
Field Value
LocalFullPath
public string? LocalFullPath
Field Value
Stream
public readonly Stream? Stream
Field Value
Uri
public readonly string? Uri
Field Value
Properties
FilePath
public string? FilePath { get; }
Property Value
Methods
Equals(DownloadManagerFile?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(DownloadManagerFile? other)
Parameters
otherDownloadManagerFileAn object to compare with this object.
Returns
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
objobjectThe object to compare with the current object.
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
IsLocalFileValid()
public bool IsLocalFileValid()
Returns
SetLocalPath(string, string)
public void SetLocalPath(string path, string decryptedFilePath)