2021-10-01 13:34:11 +08:00
|
|
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
|
|
|
// See the LICENCE file in the repository root for full licence text.
|
|
|
|
|
|
|
|
#nullable enable
|
|
|
|
|
2021-10-01 15:31:11 +08:00
|
|
|
namespace osu.Game.Database
|
2021-10-01 13:34:11 +08:00
|
|
|
{
|
|
|
|
public interface IHasOnlineID
|
|
|
|
{
|
|
|
|
/// <summary>
|
2021-10-20 14:24:27 +08:00
|
|
|
/// The server-side ID representing this instance, if one exists. Any value 0 or less denotes a missing ID.
|
2021-10-01 13:34:11 +08:00
|
|
|
/// </summary>
|
2021-10-20 14:24:27 +08:00
|
|
|
/// <remarks>
|
|
|
|
/// Generally we use -1 when specifying "missing" in code, but values of 0 are also considered missing as the online source
|
|
|
|
/// is generally a MySQL autoincrement value, which can never be 0.
|
|
|
|
/// </remarks>
|
2021-10-18 14:35:51 +08:00
|
|
|
int OnlineID { get; }
|
2021-10-01 13:34:11 +08:00
|
|
|
}
|
|
|
|
}
|