Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
The Tor Project
Applications
android-components
Commits
fcbbe247
Commit
fcbbe247
authored
Mar 07, 2019
by
Michael Comella
Committed by
Sebastian Kaspari
Mar 12, 2019
Browse files
Issue #651 - review: Add kdoc for PocketGlobalVideoRecommendation properties; Author.
parent
b49c5afd
Changes
1
Hide whitespace changes
Inline
Side-by-side
components/service/pocket/src/main/java/mozilla/components/service/pocket/data/PocketGlobalVideoRecommendation.kt
View file @
fcbbe247
...
...
@@ -6,6 +6,18 @@ package mozilla.components.service.pocket.data
/**
* A recommended video as returned from the Pocket Global Video Recommendation endpoint v2.
*
* @property id a unique identifier for this recommendation.
* @property url a url to the video.
* @property tvURL a url to the video on pages formatted for TV form factors (e.g. YouTube.com/tv).
* @property title the title of the video.
* @property excerpt a summary of the video.
* @property domain the domain where the video appears, e.g. "youtube.com".
* @property imageSrc a url to a still image representing the video.
* @property publishedTimestamp unknown: please ask for clarification if needed. This may be "0".
* @property sortId the index of this recommendation in the list which is sorted by date added to the API results.
* @property popularitySortId the index of this recommendation in the list if the list was sorted by popularity.
* @property authors the authors or publishers of this recommendation; unclear if this can be empty.
*/
data class
PocketGlobalVideoRecommendation
(
val
id
:
Int
,
...
...
@@ -21,6 +33,13 @@ data class PocketGlobalVideoRecommendation(
val
authors
:
List
<
Author
>
)
{
/**
* An author or publisher of a [PocketGlobalVideoRecommendation].
*
* @property id a unique identifier for this author.
* @property name the name of this author.
* @property url a url to the author's video content channel (e.g. a YouTube channel).
*/
data class
Author
(
val
id
:
String
,
val
name
:
String
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment