private Milestone(int id, int milestoneDueDate, MilestoneCategory category, string title, string questionText, string helpfulText, string media) { this.ID = id; this.MilestoneDueDate = milestoneDueDate; this.Category = category.ToString(); this.Title = title; this.QuestionText = questionText; this.HelpfulText = helpfulText; this.Media = media; }
public static String GetStringForCategoryString(String categoryString) { try { MilestoneCategory category = GetCategoryFromString(categoryString); return(_stringRepresentations[category]); } catch (Exception e) { return(categoryString); } }
public String GetStringForCategory(MilestoneCategory category) { return(_stringRepresentations[category]); }
public MilestoneBuilder WithCategory(MilestoneCategory category) { this._category = category; return(this); }