Files
basic-computer-games/83_Stock_Market/csharp/src/TransactionResult.cs
Chris Reuter d26dbf036a Removed spaces from top-level directory names.
Spaces tend to cause annoyances in a Unix-style shell environment.
This change fixes that.
2021-11-21 18:30:21 -05: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
}
}