示例#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;
 }
示例#2
0
 public string getallergy_type()
 {
     return(ax.ToString());
 }