mirror of
https://github.com/sphildreth/roadie
synced 2024-11-23 04:33:16 +00:00
18 lines
553 B
C#
18 lines
553 B
C#
|
using Roadie.Library.Models.Users;
|
|||
|
using System.Threading.Tasks;
|
|||
|
|
|||
|
namespace Roadie.Library.Scrobble
|
|||
|
{
|
|||
|
public interface IScrobbleHandler
|
|||
|
{
|
|||
|
/// <summary>
|
|||
|
/// When a user starts playing a track.
|
|||
|
/// </summary>
|
|||
|
Task<OperationResult<bool>> NowPlaying(User user, ScrobbleInfo scrobble);
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// When a user has either played more than 4 minutes of the track or the entire track.
|
|||
|
/// </summary>
|
|||
|
Task<OperationResult<bool>> Scrobble(User user, ScrobbleInfo scrobble);
|
|||
|
}
|
|||
|
}
|