ProgressInfo.cs 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. using System;
  2. namespace Unity.Cloud.Collaborate.Models.Structures
  3. {
  4. internal struct ProgressInfo : IProgressInfo
  5. {
  6. 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)
  7. {
  8. Title = title;
  9. Details = details;
  10. CurrentCount = currentCount;
  11. TotalCount = totalCount;
  12. LastErrorString = lastErrorString;
  13. LastError = lastError;
  14. CanCancel = canCancel;
  15. PercentageProgressType = percentageProgressType;
  16. PercentageComplete = percentageComplete;
  17. }
  18. public string Title { get; }
  19. public string Details { get; }
  20. public int CurrentCount { get; }
  21. public int TotalCount { get; }
  22. public string LastErrorString { get; }
  23. public ulong LastError { get; }
  24. public bool CanCancel { get; }
  25. public bool PercentageProgressType { get; }
  26. public int PercentageComplete { get; }
  27. }
  28. }