This repository has been archived by the owner on Aug 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from Dasiu/slick-update
Made articles list filters independent
- Loading branch information
Showing
26 changed files
with
576 additions
and
695 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package articles.models | ||
|
||
import commons.models.Username | ||
|
||
sealed trait ArticlesPageRequest { | ||
def limit: Long | ||
def offset: Long | ||
} | ||
|
||
case class ArticlesAll(limit: Long, offset: Long) extends ArticlesPageRequest | ||
case class ArticlesByTag(tag: String, limit: Long, offset: Long) extends ArticlesPageRequest | ||
case class ArticlesByAuthor(author: Username, limit: Long, offset: Long) extends ArticlesPageRequest | ||
case class ArticlesByFavorited(favoritedBy: Username, limit: Long, offset: Long) extends ArticlesPageRequest |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.