public class DomainConverter
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
intToKey(int i)
Use a base 36 string for the REST video key.
|
static int |
keyToInt(java.lang.String key)
Use a base 36 string for the REST video key.
|
static LibrarySection |
toLibrarySection(Directory directory)
Convert a plex Directory to a BuckoVidLib LibrarySection
|
static RestDetailedVideo |
toRestDetailedVideo(Video video)
Convert a Video to a RestDetailedVideo.
|
static RestTVSeason |
toRestTVSeason(TVSeason season) |
static RestUser |
toRestUser(User user)
Convert a BuckoVidLib User to a RestUser
|
static RestVideo |
toRestVideo(VideoBase video)
Convert a VideoBase to a RestVideo.
|
static TVSeason |
toTVSeason(Directory d)
Convert a plex Directory to a BuckoVidLib TVSeason
|
static TVShow |
toTVShow(Directory d)
Convert a plex Directory to a BuckoVidLib TVShow
|
static Video |
toVideo(Video video)
Convert a plex Video to a BuckoVidLib Video
|
public static LibrarySection toLibrarySection(Directory directory)
directory
- Directory inpublic static Video toVideo(Video video)
video
- Video inpublic static TVShow toTVShow(Directory d)
d
- Directory inpublic static TVSeason toTVSeason(Directory d)
d
- Directory inpublic static java.lang.String intToKey(int i)
i
- The integer to convertpublic static int keyToInt(java.lang.String key)
key
- The screwy string to convertpublic static RestVideo toRestVideo(VideoBase video)
video
- Video inpublic static RestDetailedVideo toRestDetailedVideo(Video video)
video
- Video inpublic static RestTVSeason toRestTVSeason(TVSeason season)