Package com.treescrub.spedran.data
Class RunVideos
- java.lang.Object
-
- com.treescrub.spedran.data.RunVideos
-
public class RunVideos extends Object
Has information about all video links in the run.
Includes the main video section and videos linked in the description.
If the main video section contains more than just a video link,textis set.
This class is immutable and thread-safe.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Link>getLinks()Gets the video links mentioned in the run.Optional<String>getText()Gets the full text of the main video section if it contains more than just a video link.StringtoString()
-
-
-
Method Detail
-
getText
public Optional<String> getText()
Gets the full text of the main video section if it contains more than just a video link.- Returns:
- an
Optionalwith the full text
-
getLinks
public List<Link> getLinks()
Gets the video links mentioned in the run.
If the main video section contains a valid video link, it will be at the end of the returned list.- Returns:
- an unmodifiable
ListofLinks to videos
-
-