-
Notifications
You must be signed in to change notification settings - Fork 0
/
ICard.cs
32 lines (28 loc) · 937 Bytes
/
ICard.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
using DeckOfPlayingCards.Core.Enums;
namespace DeckOfPlayingCards.Core
{
/// <summary>
/// Expose properties to get suits and card numbers.
/// </summary>
public interface ICard
{
/// <summary>
/// Different suits of a deck.
/// </summary>
Suits Suits { get; set; }
/// <summary>
/// Different card number of a deck.
/// </summary>
CardNumbers CardNumbers { get; set; }
/// <summary>
/// Get suit of this card i.e. one of the value from <see cref="Suits"/>.
/// </summary>
/// <returns>Value of <see cref="Suits"/>.</returns>
int GetSuit();
/// <summary>
/// Get value of this card i.e. one of the value from <see cref="CardNumbers"/>.
/// </summary>
/// <returns>Value of <see cref="CardNumbers"/>.</returns>
int GetValue();
}
}