public PointHistoryForUserQueryResult(DateTimeOffset date, string text, int points, double co2Saving, SufficientType type) { Date = date; Text = text; Points = points; Co2Saving = co2Saving; Type = type; }
public static string AsString(this SufficientType obj) { switch (obj) { case SufficientType.Increment: return("increment"); case SufficientType.Decrement: return("decrement"); case SufficientType.None: return("none"); default: throw new ArgumentOutOfRangeException(nameof(obj), obj, null); } }
public SufficientTypesQueryResult(SufficientType type, double points, double co2Savings) { Type = type; Points = points; Co2Savings = co2Savings; }