Class MoodEntry

java.lang.Object
com.wellnessapp.model.mood.MoodEntry
All Implemented Interfaces:
IMoodEntry

public class MoodEntry extends Object implements IMoodEntry
  • Constructor Details

    • MoodEntry

      public MoodEntry(com.wellnessapp.enums.MoodType mood, LocalDateTime timestamp, String comment)
      Represents an entry in the mood log with various constructors for different use cases. Each mood entry records the user's mood at a specific time along with optional comments.
      Parameters:
      mood - The mood recorded in this entry. Should be one of the enum MoodType.
      timestamp - (*) The date and time when the mood changed. This parameter is optional and defaults to the current system time if not specified.
      comment - (*) Additional text provided by the user about their mood at the time of the entry. This parameter is optional and defaults to an empty string if not specified.
    • MoodEntry

      public MoodEntry(com.wellnessapp.enums.MoodType mood)
      Constructs a mood entry with only the mood specified, using the current time as the timestamp and no comment.
      Parameters:
      mood - The mood recorded in this entry.
      See Also:
  • Method Details