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.
25 lines
750 B
C#
25 lines
750 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Duplicati.Library.Interface
|
|
{
|
|
public interface IQuotaInfo
|
|
{
|
|
/// <summary>
|
|
/// The total number of bytes available on the backend,
|
|
/// This may return -1 if the particular host implementation
|
|
/// does not support quotas, but the backend does
|
|
/// </summary>
|
|
long TotalQuotaSpace { get; }
|
|
/// <summary>
|
|
/// The total number of unused bytes on the backend,
|
|
/// This may return -1 if the particular host implementation
|
|
/// does not support quotas, but the backend does
|
|
/// </summary>
|
|
long FreeQuotaSpace { get; }
|
|
}
|
|
}
|