using System.Diagnostics.CodeAnalysis;

namespace User.Insight.Tracker.DataContracts
{
    [ExcludeFromCodeCoverage]
    public class Payload<T>
    {
        /// <summary>
        /// Gets or sets the data payload.
        /// </summary>
        public T Data { get; set; }

        /// <summary>
        /// Gets or sets the informational message related to the payload.
        /// </summary>
        public string Message { get; set; } = string.Empty;

        /// <summary>
        /// Gets or sets a value indicating whether the operation was successful.
        /// </summary>
        public bool IsSuccess { get; set; } = false;
    }
}
