Example #1
0
 /// <summary>
 ///     Replaces the matching date entries.
 /// </summary>
 /// <postcondition>
 ///     Removes all entries with the matching date of the entry passed in
 /// </postcondition>
 /// <param name="fitbitEntry">The fitbit entry.</param>
 public void ReplaceMatchingDateEntries(FitbitEntry fitbitEntry)
 {
     this.Entries.RemoveAll(entry => entry.Date.Equals(fitbitEntry.Date));
     this.AddEntry(fitbitEntry);
 }
Example #2
0
 /// <summary>
 ///     Adds the entry.
 /// </summary>
 /// <param name="fitbitEntry"> The entry to be added to fitbit collection</param>
 public void AddEntry(FitbitEntry fitbitEntry)
 {
     this.Entries.Add(fitbitEntry ?? throw new ArgumentException("Fitbit must not be null"));
 }