public Log(Int16 currentStreak, Int16 longestStreak, Int16 logCount, DateTime[] logs) { this.CurrentStreak = currentStreak; this.LongestStreak = longestStreak; this.LogCount = logCount; this.Logs = HabitLogs.SetLogs(logs); }
public static HabitResponse AddLog(Guid userID, Guid id) { var data = HabitLogs.AddLog(userID, id); if (data == null) { return(null); } UserLogged.Notify(data); return(data); }