ProgressInfo.cs
1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
using System;
namespace Unity.Cloud.Collaborate.Models.Structures
{
internal struct ProgressInfo : IProgressInfo
{
public ProgressInfo(string title = default, string details = default, int currentCount = default, int totalCount = default, string lastErrorString = default, ulong lastError = default, bool canCancel = false, bool percentageProgressType = false, int percentageComplete = default)
{
Title = title;
Details = details;
CurrentCount = currentCount;
TotalCount = totalCount;
LastErrorString = lastErrorString;
LastError = lastError;
CanCancel = canCancel;
PercentageProgressType = percentageProgressType;
PercentageComplete = percentageComplete;
}
public string Title { get; }
public string Details { get; }
public int CurrentCount { get; }
public int TotalCount { get; }
public string LastErrorString { get; }
public ulong LastError { get; }
public bool CanCancel { get; }
public bool PercentageProgressType { get; }
public int PercentageComplete { get; }
}
}