-
Notifications
You must be signed in to change notification settings - Fork 0
/
IEnvelope.cs
33 lines (29 loc) · 965 Bytes
/
IEnvelope.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
33
// <copyright file="IEnvelope.cs" company="Michael Bradvica LLC">
// Copyright (c) Michael Bradvica LLC. All rights reserved.
// </copyright>
namespace MediatorBuddy
{
/// <summary>
/// Base interface for all application responses.
/// </summary>
/// <typeparam name="TResponse">The response type.</typeparam>
public interface IEnvelope<out TResponse>
{
/// <summary>
/// Gets a value indicating what status code is present.
/// </summary>
public int Status { get; }
/// <summary>
/// Gets a brief description of the error, if one exists.
/// </summary>
public string Title { get; }
/// <summary>
/// Gets the details of the error, if one exists.
/// </summary>
public string Detail { get; }
/// <summary>
/// Gets a value indicating the Response.
/// </summary>
public TResponse Response { get; }
}
}