1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-14 01:33:20 +08:00

Fix order

This commit is contained in:
naoey 2019-06-11 21:30:25 +05:30
parent 06a558c4b7
commit d903ad2186
No known key found for this signature in database
GPG Key ID: 670DA9BE3DF7EE60

View File

@ -72,15 +72,9 @@ namespace osu.Game.Database
return true; 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 bool IsAvailableLocally(TModel model) => modelStore.ConsumableItems.Any(m => m.Equals(model));
/// <summary> /// <summary>
/// Downloads a <see cref="TModel"/> with optional parameters for the download request. /// Downloads a <see cref="TModel"/> with optional parameters for the download request.
/// This will post notifications tracking progress.
/// </summary> /// </summary>
/// <param name="model">The <see cref="TModel"/> to be downloaded.</param> /// <param name="model">The <see cref="TModel"/> to be downloaded.</param>
/// <param name="extra">Optional parameters to be used for creating the download request.</param> /// <param name="extra">Optional parameters to be used for creating the download request.</param>
@ -96,6 +90,13 @@ namespace osu.Game.Database
return true; 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 bool IsAvailableLocally(TModel model) => modelStore.ConsumableItems.Any(m => m.Equals(model));
/// <summary> /// <summary>
/// Gets an existing <see cref="TModel"/> download request if it exists. /// Gets an existing <see cref="TModel"/> download request if it exists.
/// </summary> /// </summary>