Table of Contents

Class DownloadManagerFile

Namespace
CapCognition.Net.Core.Utils
Assembly
CapCognition.Net.Core.dll

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

stream Stream
filename string
decryptionPWFunc Func<string>

DownloadManagerFile(Stream, string, Func<string>?, string?)

public DownloadManagerFile(Stream stream, string filename, Func<string>? decryptionPWFunc, string? hash)

Parameters

stream Stream
filename string
decryptionPWFunc Func<string>
hash string

DownloadManagerFile(string, string?, Func<string>?)

public DownloadManagerFile(string uri, string? hash, Func<string>? decryptionPWFunc)

Parameters

uri string
hash string
decryptionPWFunc Func<string>

Fields

DecryptedFilePath

public string? DecryptedFilePath

Field Value

string

DecryptionPWFunc

public Func<string>? DecryptionPWFunc

Field Value

Func<string>

FileName

public readonly string FileName

Field Value

string

FileSizeInBytes

public long FileSizeInBytes

Field Value

long

Hash

public readonly string? Hash

Field Value

string

LocalFullPath

public string? LocalFullPath

Field Value

string

Stream

public readonly Stream? Stream

Field Value

Stream

Uri

public readonly string? Uri

Field Value

string

Properties

FilePath

public string? FilePath { get; }

Property Value

string

Methods

Equals(DownloadManagerFile?)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(DownloadManagerFile? other)

Parameters

other DownloadManagerFile

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

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

bool

SetLocalPath(string, string)

public void SetLocalPath(string path, string decryptedFilePath)

Parameters

path string
decryptedFilePath string