Table of Contents

Class TemplateDownload

Namespace
Stride.Core.Assets.Templates
Assembly
Stride.Core.Assets.dll

A template package being downloaded, or one whose download failed.

public sealed record TemplateDownload : IEquatable<TemplateDownload>
Inheritance
object
TemplateDownload
Implements
Extension Methods

Constructors

TemplateDownload(string, long, long, int, int, bool)

A template package being downloaded, or one whose download failed.

public TemplateDownload(string PackageId, long DownloadedBytes, long TotalBytes = 0, int Index = 1, int Count = 1, bool Failed = false)

Parameters

PackageId string

The package.

DownloadedBytes long

Bytes downloaded so far.

TotalBytes long

Size of the download, 0 until it starts.

Index int

Position of this package in its batch, from 1.

Count int

Number of packages in the batch.

Failed bool

Whether the download failed (the package is not available).

Properties

Count

Number of packages in the batch.

public int Count { get; init; }

Property Value

int

DownloadedBytes

Bytes downloaded so far.

public long DownloadedBytes { get; init; }

Property Value

long

Failed

Whether the download failed (the package is not available).

public bool Failed { get; init; }

Property Value

bool

Fraction

Progress from 0 to 1, or null while the size is not known.

public double? Fraction { get; }

Property Value

double?

Index

Position of this package in its batch, from 1.

public int Index { get; init; }

Property Value

int

PackageId

The package.

public string PackageId { get; init; }

Property Value

string

TotalBytes

Size of the download, 0 until it starts.

public long TotalBytes { get; init; }

Property Value

long