﻿using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Text;

namespace Blatella.Common
{//comentario
    public class Return<T>
    {
        #region properties

        /// <summary>
        /// 
        /// </summary>
        public bool theresError { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string message { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public Error error { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public T data { get; set; }

        #endregion

        #region constructors

        /// <summary>
        /// 
        /// </summary>
        [DebuggerHidden]
        public Return()
        {
            InitializeValues();
        }

        #endregion

        #region private methods

        [DebuggerHidden]
        private void InitializeValues()
        {
            theresError = false;
            message = string.Empty;
            error = new Error();
        }

        #endregion
    }
}
