Exemplo n.º 1
0
 public allergy(allergy_type a, String symptoms, String reactions, String reporter, String severity)
 {
     if (a.ToString() == "" || a.ToString() == null || symptoms.Trim().Length == 0 || symptoms == null || reactions.Trim().Length == 0 || reactions == null || reporter.Trim().Length == 0 || reporter == null || severity.Trim().Length == 0 || severity == null)
     {
         throw new Exception("Illegal arguments passed");
     }
     this.ax        = a;
     this.symptoms  = symptoms;
     this.reactions = reactions;
     this.reporter  = reporter;
     this.severity  = severity;
 }
Exemplo n.º 2
0
 public void setallergy_type(allergy_type a)
 {
     this.ax = a;
 }