using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Winbooks.TORM.OM;

namespace Winbooks.Apis.Services
{
    public class BaseEntitySetting
    {
        private bool _isShowId = true;

        public bool IsShowId
        {
            get { return _isShowId; }
            set { _isShowId = value; }
        }

        private int _getEntityLevel = 1;

        public int GetEntityLevel
        {
            get { return _getEntityLevel; }
            set
            {
                if (value > 0)
                {
                    _getEntityLevel = value;
                }
                else
                {
                    _getEntityLevel = 1;
                }
            }
        }


        private int _sendEntityLevel = 1;

        public int SendEntityLevel
        {
            get { return _sendEntityLevel; }
            set
            {
                if (value > 0)
                {
                    _sendEntityLevel = value;
                }
                else
                {
                    _sendEntityLevel = 1;
                }
            }
        }

        private ResultState _stateGettingObj = ResultState.None;

        public ResultState StateGettingObj
        {
            get { return _stateGettingObj; }
            set
            {
                _stateGettingObj = value;
            }
        }

        private bool _isValidate = true;

        public bool IsValidate
        {
            get { return _isValidate; }
            set
            {
                _isValidate = value;
            }
        }

        private bool _isTranslateId = false;

        public bool IsTranslacteId
        {
            get { return _isTranslateId; }
            set
            {
                _isTranslateId = value;
            }
        }

        private bool reUpdateData = false;
        public bool IsReUpdateData
        {
            get { return reUpdateData; }
            set { reUpdateData = value; }
        }
        public BaseEntitySetting()
        {

        }
    }
}
