// SPDX-FileCopyrightText: 2023 Unity Technologies and the glTFast authors
// SPDX-License-Identifier: Apache-2.0
using System;
using Unity.Collections;
using UnityEngine;
namespace GLTFast.Loading
{
///
/// Provides a mechanism to inspect the progress and result of a download
/// or file access request
///
public interface IDownload : IDisposable
{
///
/// True, if the request was successful
///
bool Success { get; }
///
/// Error message in case the request failed. Null otherwise.
///
string Error { get; }
///
/// Resulting data as managed byte array.
///
byte[] Data { get; }
///
/// Resulting data as text
///
string Text { get; }
///
/// True if the result is a glTF-binary, false if it is not.
/// No value if determining the glTF type was not possible or failed.
///
bool? IsBinary { get; }
}
}