Exemplo n.º 1
0
 public Log(Int16 currentStreak, Int16 longestStreak, Int16 logCount, DateTime[] logs)
 {
     this.CurrentStreak = currentStreak;
     this.LongestStreak = longestStreak;
     this.LogCount      = logCount;
     this.Logs          = HabitLogs.SetLogs(logs);
 }
Exemplo n.º 2
0
        public static HabitResponse AddLog(Guid userID, Guid id)
        {
            var data = HabitLogs.AddLog(userID, id);

            if (data == null)
            {
                return(null);
            }

            UserLogged.Notify(data);

            return(data);
        }