Yahor Berdnikau
c917bcb1a6
Update ktlint to 0.12.1 version.
...
Also updated ktlint-gradle to 2.3.0 version. Added ktlint reports to
circle CI.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-11-16 22:04:38 +01:00
Yahor Berdnikau
9cecebb314
Add getChatMessages() call.
...
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-11-16 21:19:24 +01:00
Yahor Berdnikau
6b74a3e563
Add getUser api call.
...
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-11-14 22:46:51 +01:00
Yahor Berdnikau
5ea9eb7818
Increase default read timeout to 60 sec.
...
Default Okhttp read timeout is 10 sec, and as subsonic servers may be
not fast, better to increase timeout.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-11-14 22:11:03 +01:00
Yahor Berdnikau
10e25e8597
Add getSongsByGenre api call.
...
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-11-14 21:57:28 +01:00
Yahor Berdnikau
1502c4c9c8
Add getGenres app call.
...
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-11-12 00:00:11 +01:00
Yahor Berdnikau
1012e41620
Add createShare api call.
...
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-11-11 20:31:20 +01:00
Yahor Berdnikau
d5cdc18174
Add getShares call.
...
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-11-10 21:15:36 +01:00
Yahor Berdnikau
947a1ce3b5
Add jukebox control call.
...
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-11-07 21:26:44 +01:00
Yahor Berdnikau
ba412721ac
Add stream call.
...
Also introduced helper method in SubsonicApiClient that handles error
cases.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-11-05 22:21:25 +01:00
Yahor Berdnikau
c8c8766b55
Increase read timeout.
...
When range interceptor modifies request it also increases read timeout,
that allows server to do transcoding of the response and skip bytes
to offset value.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-11-05 22:21:25 +01:00
Yahor Berdnikau
72333f245f
Add Range header modifier.
...
Add interceptor that modifies call "Range" header. It changes header
value to "bytes=value-".
2017-11-05 18:44:31 +01:00
Yahor Berdnikau
48e6788224
Add method to get cover art.
...
As this call should return byte stream: I've introduced helper method
in client to do the actual call and parse possible json error response.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-10-17 21:48:37 +02:00
Yahor Berdnikau
f85759eb58
Add getStarred2() call.
...
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-09-16 22:57:39 +02:00
Yahor Berdnikau
bad5cf5a9a
Add getStarred call.
...
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-09-16 22:19:17 +02:00
Yahor Berdnikau
0abc71cf9f
Add getRandomSongs call.
...
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-09-16 20:47:11 +02:00
Yahor Berdnikau
14fac18978
Add getAlbumList2 request.
...
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-09-16 19:56:38 +02:00
Yahor Berdnikau
8e895685fc
Add method to map string type to AlbumListType enum.
...
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-09-14 22:32:24 +02:00
Yahor Berdnikau
2d12aea79f
Enable setting to not fail parsing on unknown field.
...
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-09-14 21:51:56 +02:00
Yahor Berdnikau
046baf0ffe
Add missing user rating and average rating to MusicDirectoryChild.
...
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-09-14 21:50:20 +02:00
Yahor Berdnikau
cd617c7dd8
Add getAlbumList call.
...
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-09-13 22:45:10 +02:00
Yahor Berdnikau
9892805517
Add scrobble call.
...
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-09-04 21:20:22 +02:00
Yahor Berdnikau
9844fb1282
Add getLyrics call.
...
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-09-03 22:09:13 +02:00
Yahor Berdnikau
636968f03c
Add getPodcasts call.
...
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-09-03 16:10:48 +02:00
Yahor Berdnikau
8bf9399e48
Add updatePlaylist() call.
...
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-09-03 10:25:36 +02:00
Yahor Berdnikau
e09476daea
Add deletePlaylist() call.
...
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-09-02 21:07:19 +02:00
Yahor Berdnikau
bb64b9e3ca
Add createPlaylist api call.
...
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-09-02 20:42:55 +02:00
Yahor Berdnikau
e4728af320
Add getPlaylists api call.
...
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-09-01 22:46:10 +02:00
Yahor Berdnikau
47012c7909
Use same approach to all integration tests.
...
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-08-29 22:25:29 +02:00
Yahor Berdnikau
b73cc0f816
Add getPlaylist call to subsonic api.
...
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-08-27 22:12:23 +02:00
Yahor Berdnikau
d97590b346
Add new search3 api call.
...
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-08-27 11:39:38 +02:00
Yahor Berdnikau
dd115757b6
Add search2 api request.
...
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-08-25 21:32:36 +02:00
Yahor Berdnikau
9bf0176984
Add function to assert right request param.
...
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-08-25 21:31:57 +02:00
Yahor Berdnikau
5a20082938
Add search api call.
...
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-08-24 22:04:53 +02:00
Yahor Berdnikau
bb4de9d065
Migrate subsonic api module to new gradle dependencies system.
...
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-08-21 22:08:42 +02:00
Yahor Berdnikau
6c0f43b2ff
Add getAlbum api call.
...
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-08-20 22:04:41 +02:00
Yahor Berdnikau
8899260977
Change cover art to be a string.
...
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-08-20 21:14:09 +02:00
Yahor Berdnikau
f4680ffeac
Add getArtist request.
...
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-08-20 19:45:42 +02:00
Yahor Berdnikau
0920cc94a8
Use default values for getMusicDirectory response.
...
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-08-20 15:10:34 +02:00
Yahor Berdnikau
34b49f67a2
Add unstar request.
...
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-08-17 23:00:51 +02:00
Yahor Berdnikau
fdd9540f75
Add star request.
...
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-08-17 22:06:20 +02:00
Yahor Berdnikau
b3dde1938f
Split Subsonic API integration test into a smaller classes.
...
It will be easier to maintain and add new tests.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-08-16 21:37:58 +02:00
Yahor Berdnikau
84198d38c8
Add getArtists call.
...
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-08-16 06:59:25 +02:00
Yahor Berdnikau
13cf2cd8bf
Add parsing shortcuts info.
...
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-08-12 21:19:46 +02:00
Yahor Berdnikau
d66556e307
Update kotlin to 1.1.3-2 version.
...
Also have to update jackson to 2.9.0 that uses the same kotlin version.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-08-12 20:17:32 +02:00
Yahor Berdnikau
437877750c
Make models for getIndexes have default values.
...
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-08-11 21:01:02 +02:00
Yahor Berdnikau
23fd3b03fb
Increase API log level to full.
...
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-08-11 20:48:55 +02:00
Yahor Berdnikau
76c61409a4
Added code coverage.
...
Only show kotlin code coverage.
2017-08-09 21:56:20 +02:00
Yahor Berdnikau
317ccd2ed8
Fix detekt issues.
...
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-07-30 22:23:25 +02:00
Yahor Berdnikau
3907d10950
Fix ktLint issues.
...
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-07-29 22:52:02 +02:00