namespace OliverBooth.Data.Blog; /// /// Represents a user which can log in to the blog. /// public interface IUser { /// /// Gets the URL of the user's avatar. /// /// The URL of the user's avatar. Uri AvatarUrl { get; } /// /// Gets the email address of the user. /// /// The email address of the user. string EmailAddress { get; } /// /// Gets the display name of the author. /// /// The display name of the author. string DisplayName { get; } /// /// Gets the unique identifier of the user. /// /// The unique identifier of the user. Guid Id { get; } /// /// Gets the date and time the user registered. /// /// The registration date and time. DateTimeOffset Registered { get; } /// /// Gets the URL of the user's avatar. /// /// The size of the avatar. /// The URL of the user's avatar. Uri GetAvatarUrl(int size = 28); /// /// Returns a value indicating whether the specified password is valid for the user. /// /// The password to test. /// /// if the specified password is valid for the user; otherwise, /// . /// bool TestCredentials(string password); }