This repository has been archived by the owner on Mar 11, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 100
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 #165 from allantl/feature/71
Support all standard params for filter, sample statuses and user events
- Loading branch information
Showing
10 changed files
with
76 additions
and
42 deletions.
There are no files selected for viewing
9 changes: 9 additions & 0 deletions
9
src/main/scala/com/danielasfregola/twitter4s/entities/enums/FilterLevel.scala
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,9 @@ | ||
package com.danielasfregola.twitter4s.entities.enums | ||
|
||
object FilterLevel extends Enumeration { | ||
type FilterLevel = Value | ||
|
||
val None = Value("none") | ||
val Low = Value("low") | ||
val Medium = Value("medium") | ||
} |
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
4 changes: 3 additions & 1 deletion
4
.../danielasfregola/twitter4s/http/clients/streaming/statuses/parameters/StatusFilters.scala
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 |
---|---|---|
@@ -1,9 +1,11 @@ | ||
package com.danielasfregola.twitter4s.http.clients.streaming.statuses.parameters | ||
|
||
import com.danielasfregola.twitter4s.entities.enums.FilterLevel.FilterLevel | ||
import com.danielasfregola.twitter4s.entities.enums.Language.Language | ||
|
||
private[twitter4s] final case class StatusFilters(follow: Seq[Long], | ||
track: Seq[String], | ||
locations: Seq[Double], | ||
language: Seq[Language], | ||
stall_warnings: Boolean) | ||
stall_warnings: Boolean, | ||
filter_level: FilterLevel) |
6 changes: 5 additions & 1 deletion
6
...fregola/twitter4s/http/clients/streaming/statuses/parameters/StatusSampleParameters.scala
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 |
---|---|---|
@@ -1,6 +1,10 @@ | ||
package com.danielasfregola.twitter4s.http.clients.streaming.statuses.parameters | ||
|
||
import com.danielasfregola.twitter4s.entities.enums.FilterLevel.FilterLevel | ||
import com.danielasfregola.twitter4s.entities.enums.Language.Language | ||
import com.danielasfregola.twitter4s.http.marshalling.Parameters | ||
|
||
private[twitter4s] final case class StatusSampleParameters(language: Seq[Language], stall_warnings: Boolean) extends Parameters | ||
private[twitter4s] final case class StatusSampleParameters(language: Seq[Language], | ||
stall_warnings: Boolean, | ||
tracks: Seq[String], | ||
filter_level: FilterLevel) extends Parameters |
Oops, something went wrong.