Selector/Selector.Model/Extensions/UserExtensions.cs

18 lines
478 B
C#
Raw Normal View History

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Selector.Model.Extensions
{
public static class UserExtensions
{
public static bool LastFmConnected(this ApplicationUser user)
=> !string.IsNullOrEmpty(user.LastFmUsername);
public static bool ScrobbleSavingEnabled(this ApplicationUser user)
=> user.LastFmConnected() && user.SaveScrobbles;
}
}