/// <summary> /// Gets the AllowedDays for a Month /// </summary> /// <param name="month">The month.</param> /// <returns></returns> public static int GetAllowedDays(this DSAMonth month) { switch (month) { case DSAMonth.Praios: case DSAMonth.Rondra: case DSAMonth.Efferd: case DSAMonth.Travia: case DSAMonth.Boron: case DSAMonth.Hesinde: case DSAMonth.Firun: case DSAMonth.Tsa: case DSAMonth.Phex: case DSAMonth.Peraine: case DSAMonth.Ingerimm: case DSAMonth.Rahja: return(30); case DSAMonth.Nameless: return(5); default: return(-1); } }
/// <summary> /// Initializes a new instance of the <see cref="DSADate" /> class. /// </summary> /// <param name="day">The day.</param> /// <param name="month">The month.</param> /// <param name="year">The year.</param> public DSADate(int day, DSAMonth month, int year) { Day = day; Month = month; Year = year; }