1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 08:22:56 +08:00

Fix doc move derp

This commit is contained in:
naoey 2019-06-12 00:02:53 +05:30
parent c320b6110c
commit c69d3e2d38
No known key found for this signature in database
GPG Key ID: 670DA9BE3DF7EE60
2 changed files with 8 additions and 8 deletions

View File

@ -71,13 +71,13 @@ namespace osu.Game.Database
return true;
}
/// <summary>
/// Checks whether a given <see cref="TModel"/> is available in the local store already.
/// </summary>
/// <param name="model">The <see cref="TModel"/> whose existence needs to be checked.</param>
/// <returns>Whether the <see cref="TModel"/> exists locally.</returns>
public virtual bool IsAvailableLocally(TModel model) => modelStore.ConsumableItems.Any(m => m.Equals(model) && !m.DeletePending);
/// <summary>
/// Gets an existing <see cref="TModel"/> download request if it exists.
/// </summary>
/// <param name="model">The <see cref="TModel"/> whose request is wanted.</param>
/// <returns>The <see cref="ArchiveDownloadModelRequest{TModel}"/> object if it exists, otherwise null.</returns>
public ArchiveDownloadModelRequest<TModel> GetExistingDownload(TModel model) => currentDownloads.Find(r => r.Info.Equals(model));
private bool canDownload(TModel model) => GetExistingDownload(model) == null && api != null;

View File

@ -39,10 +39,10 @@ namespace osu.Game.Database
bool Download(TModel model, params object[] extra);
/// <summary>
/// Checks whether a given <see cref="TModel"/> is available in the local store already.
/// Gets an existing <see cref="TModel"/> download request if it exists.
/// </summary>
/// <param name="model">The <see cref="TModel"/> whose existence needs to be checked.</param>
/// <returns>Whether the <see cref="TModel"/> exists locally.</returns>
/// <param name="model">The <see cref="TModel"/> whose request is wanted.</param>
/// <returns>The <see cref="ArchiveDownloadModelRequest{TModel}"/> object if it exists, otherwise null.</returns>
ArchiveDownloadModelRequest<TModel> GetExistingDownload(TModel model);
}
}