Interface DailyQuoteArtworkService

All Known Implementing Classes:
DailyQuoteArtworkServiceImpl

public interface DailyQuoteArtworkService
  • Method Details

    • findByDate

      Finds the daily quote and artwork for a specific date.
      Parameters:
      date - The date to search for
      Returns:
      Optional containing the DailyQuoteArtworkModel if found
    • save

      Saves a new daily quote and artwork.
      Parameters:
      dailyQuoteArtwork - The model to save
      Returns:
      The saved DailyQuoteArtworkModel
    • getTodayQuoteArtwork

      DailyQuoteArtworkModel getTodayQuoteArtwork()
      Gets or creates the daily quote and artwork for today. If one doesn't exist for today, fetches a new random quote and artwork.
      Returns:
      The DailyQuoteArtworkModel for today