pull/297/head
hevinci 2024-04-26 16:05:37 +08:00
parent bef90bf3b8
commit c9cc09cbed
1 changed files with 10 additions and 10 deletions

View File

@ -14,52 +14,52 @@ namespace YooAsset
/// <summary> /// <summary>
/// 任务状态 /// 任务状态
/// </summary> /// </summary>
public ERequestStatus Status { get; } ERequestStatus Status { get; }
/// <summary> /// <summary>
/// 下载进度0f~1f /// 下载进度0f~1f
/// </summary> /// </summary>
public float DownloadProgress { get; } float DownloadProgress { get; }
/// <summary> /// <summary>
/// 已经下载的总字节数 /// 已经下载的总字节数
/// </summary> /// </summary>
public ulong DownloadedBytes { get; } ulong DownloadedBytes { get; }
/// <summary> /// <summary>
/// 返回的网络错误 /// 返回的网络错误
/// </summary> /// </summary>
public string RequestNetError { get; } string RequestNetError { get; }
/// <summary> /// <summary>
/// 返回的HTTP CODE /// 返回的HTTP CODE
/// </summary> /// </summary>
public long RequestHttpCode { get; } long RequestHttpCode { get; }
/// <summary> /// <summary>
/// 创建任务 /// 创建任务
/// </summary> /// </summary>
public void Create(string url, BundleInfo bundleInfo, params object[] args); void Create(string url, BundleInfo bundleInfo, params object[] args);
/// <summary> /// <summary>
/// 更新任务 /// 更新任务
/// </summary> /// </summary>
public void Update(); void Update();
/// <summary> /// <summary>
/// 终止任务 /// 终止任务
/// </summary> /// </summary>
public void Abort(); void Abort();
/// <summary> /// <summary>
/// 是否已经完成(无论成功或失败) /// 是否已经完成(无论成功或失败)
/// </summary> /// </summary>
public bool IsDone(); bool IsDone();
/// <summary> /// <summary>
/// 获取请求的对象 /// 获取请求的对象
/// </summary> /// </summary>
public object GetRequestObject(); object GetRequestObject();
} }
} }