Package com.espacogeek.geek.services
Interface DailyQuoteArtworkService
- All Known Implementing Classes:
DailyQuoteArtworkServiceImpl
public interface DailyQuoteArtworkService
-
Method Summary
Modifier and TypeMethodDescriptionfindByDate(Date date) Finds the daily quote and artwork for a specific date.Gets or creates the daily quote and artwork for today.save(DailyQuoteArtworkModel dailyQuoteArtwork) Saves a new daily quote and artwork.
-
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
-