It also makes quota enabled backends return an instance of this interface instead of the quota components separately. This way, getting quota stats requires only a single remote request on backends like Google Drive and OneDrive.
22 lines
501 B
C#
22 lines
501 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Duplicati.Library.Interface
|
|
{
|
|
public class QuotaInfo : IQuotaInfo
|
|
{
|
|
public QuotaInfo(long totalSpace, long freeSpace)
|
|
{
|
|
this.TotalQuotaSpace = totalSpace;
|
|
this.FreeQuotaSpace = freeSpace;
|
|
}
|
|
|
|
public long TotalQuotaSpace { get; private set; }
|
|
|
|
public long FreeQuotaSpace { get; private set; }
|
|
}
|
|
}
|