using IWS5.Core.Enums;

namespace IWS5.Core.Models;

public record CodeResponse<T> where T : class
{
    public CodeResponse(ResponseCode code, string? message = null, T? responseModel = null)
    {
        Code = code;
        Message = message ?? string.Empty;
        ResponseModel = responseModel;
    }

    public T? ResponseModel { get; private set; }
    public string? Message { get; private set; }
    public ResponseCode Code { get; private set; }
}