Files
DigitalData.Core/DigitalData.Core.Contracts/CleanArchitecture/Application/IServiceMessage.cs
Developer 02 67d5385c56 initial commit
2024-03-06 16:14:36 +01:00

21 lines
980 B
C#

namespace DigitalData.Core.Contracts.CleanArchitecture.Application
{
/// <summary>
/// Defines a basic structure for service messages, including a success flag and a collection of messages.
/// This interface is intended to be a base for more specific service result types, offering a way to communicate
/// operation outcomes (success or failure) along with relevant messages.
/// </summary>
public interface IServiceMessage
{
/// <summary>
/// Gets or sets a value indicating whether the service operation was successful.
/// </summary>
bool IsSuccess { get; set; }
/// <summary>
/// Gets or sets a collection of messages associated with the service operation. These messages can be error descriptions,
/// success notifications, or other relevant information related to the operation's outcome.
/// </summary>
List<string> Messages { get; set; }
}
}