Files
basic-computer-games/83_Stock_Market/csharp/TransactionResult.cs
2022-01-17 11:56:20 +02:00

26 lines
639 B
C#

namespace Game
{
/// <summary>
/// Enumerates the different possible outcomes of applying a transaction.
/// </summary>
public enum TransactionResult
{
/// <summary>
/// The transaction was successful.
/// </summary>
Ok,
/// <summary>
/// The transaction failed because the seller tried to sell more shares
/// than he or she owns.
/// </summary>
Oversold,
/// <summary>
/// The transaction failed because the net cost was greater than the
/// seller's available cash.
/// </summary>
Overspent
}
}