public void AddMsgSingle(bool result, ErrorMsg error, LegalData jsonData)
 {
     if (result)
     {
         this.result   = "SUCCESS";
         this.errors   = null;
         this.jsonData = jsonData;
     }
     else
     {
         this.result = "FAILURE";
         this.errors.Add(error);
         this.jsonData = null;
     }
 }
 public void AddMsg(bool result, List <ErrorMsg> error, LegalData jsonData)
 {
     if (result)
     {
         this.result   = "SUCCESS";
         this.errors   = null;
         this.jsonData = jsonData;
     }
     else
     {
         this.result = "FAILURE";
         foreach (var e in error)
         {
             this.errors.Add(e);
         }
         this.jsonData = null;
     }
 }
 public GetLegalResponse()
 {
     this.errors = new List <ErrorMsg>();
     this.data   = new LegalData();
 }