
namespace RB_MES_API.Models
{
    public class CloudResult
    {
        public KDResult Result {get;set;}
        public class KDResult
        {
            public KDResponse ResponseStatus { get; set; } = new KDResponse();
            public object NeedReturnData { get; set; } = new object();


            public class KDResponse
            {
                public bool IsSuccess { get; set; } = false;
                public List<KDErrors> Errors { get; set; } = new List<KDErrors>();
                public List<KDSuccessEntitys> SuccessEntitys { get; set; } = new List<KDSuccessEntitys>();
                public List<KDSuccessMessages> SuccessMessages { get; set; } = new List<KDSuccessMessages>();
                public int ErrorCode { get; set; } = 0;
                public int MsgCode { get; set; } = 0;
            }
            public class KDErrors
            {
                public string FieldName { get; set; } = string.Empty;
                public string Message { get; set; } = string.Empty;
                public int DIndex { get; set; } = 0;
                public string MsgCode { get; set; } = string.Empty;
            }
            public class KDSuccessEntitys
            {
                public int Id { get; set; }
                public string Number { get; set; } = string.Empty;
                public int DIndex { get; set; } = 0;
            }
            public class KDSuccessMessages
            {
                public string FieldName { get; set; } = string.Empty;
                public string Message { get; set; } = string.Empty;
                public int DIndex { get; set; } = 0;
            }
        }
   
    }
}
