Yahor Berdnikau
3fddef0ec5
Check call if it supported by current server version.
...
Add a api wrapper that checks if current protocol version is supported
for this call and fail fast if not.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-12-10 10:48:41 +01:00
Yahor Berdnikau
336f505ba5
Replace ServerTooOldException with more proper ApiNotSupportedException.
2017-12-03 14:14:01 +01:00
Yahor Berdnikau
491d8423c4
Merge pull request #86 from ultrasonic/handle-server-versions
...
Adapt client to server version
2017-12-02 21:58:37 +01:00
Yahor Berdnikau
d384bcc3c5
Update dynamically client version.
...
Now subsonic api client will update dynamically to the supported server
api version when it doing the requests.
2017-12-02 21:51:26 +01:00
Yahor Berdnikau
e838750ee2
Add proxy password interceptor.
...
It passes request chain either to hex password interceptor or
to md5+salt interceptor depending on current protocol version.
2017-12-02 21:51:26 +01:00
Yahor Berdnikau
0c5ac61402
Add 1.16.0 subsonic version.
2017-12-02 21:51:26 +01:00
Yahor Berdnikau
c76d25e1ba
Add version interceptor.
...
This interceptor add version param to request and peeks into response
to parse server version.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-12-02 21:51:26 +01:00
Yahor Berdnikau
1c56d6459b
Fix subsonic accepts only lowercase md5 password hash.
...
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-12-02 11:48:23 +01:00
Yahor Berdnikau
0deed54a9e
Merge pull request #82 from ultrasonic/introduce-auth-interceptors
...
Extract password param providing in separate interceptors.
2017-11-22 22:01:52 +01:00
Yahor Berdnikau
6b950f7b28
Extract password param providing in separate interceptors.
...
Added interceptor for api version before 1.12.0 and after.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-11-22 21:56:16 +01:00
Yahor Berdnikau
b9cfc0ed6d
Merge pull request #81 from ultrasonic/add-stream-url
...
Add stream url
2017-11-21 21:33:52 +01:00
Yahor Berdnikau
c4f28280f9
Use getStreamUrl() method for video urls.
...
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-11-21 21:29:24 +01:00
Yahor Berdnikau
6503ce2e4c
Add method to get final stream url.
...
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-11-21 21:29:24 +01:00
Yahor Berdnikau
1607f923b6
Merge pull request #78 from ultrasonic/update-get-video-url
...
Update get video url
2017-11-19 22:27:12 +01:00
Yahor Berdnikau
d1256d2b77
Remove unused Apache http client.
...
Finally!
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-11-19 22:13:46 +01:00
Yahor Berdnikau
4b789e4c88
Disable getVideoUrl() method.
...
This method uses some assuptions on endpoint urls.
The right way is to use stream() api call to get video stream.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-11-19 22:10:34 +01:00
Yahor Berdnikau
7f5e04ebb2
Merge pull request #76 from ultrasonic/add-get-avatar
...
Add get avatar
2017-11-19 21:50:57 +01:00
Yahor Berdnikau
91d93b713d
Remove unused methods.
...
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-11-19 21:47:58 +01:00
Yahor Berdnikau
662e99ff5a
Use new getAvatar() api call.
...
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-11-19 21:40:27 +01:00
Yahor Berdnikau
f2ce22ef08
Fix response check NPE
...
Fix response check doens't take into account that body will be null
if response is not successfull.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-11-19 21:39:13 +01:00
Yahor Berdnikau
52545bc714
Add getAvatar() call.
...
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-11-19 21:19:33 +01:00
Yahor Berdnikau
3e5159a1a2
Merge pull request #75 from ultrasonic/add-update-share
...
Add update share
2017-11-19 15:53:43 +01:00
Yahor Berdnikau
48f8d35e4f
Use new api updateShare() call.
...
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-11-19 15:51:15 +01:00
Yahor Berdnikau
22ec570b69
Add updateShare() call.
...
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-11-19 15:25:31 +01:00
Yahor Berdnikau
81bb21c841
Merge pull request #74 from ultrasonic/add-delete-share
...
Add delete share
2017-11-19 15:04:34 +01:00
Yahor Berdnikau
b1f7e7a14c
Use new api deleteShare() call.
...
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-11-19 14:41:31 +01:00
Yahor Berdnikau
a1d5450515
Add deleteShare() call.
...
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-11-19 14:36:41 +01:00
Yahor Berdnikau
fe12c440e7
Merge pull request #73 from ultrasonic/add-get-videos
...
Add get videos
2017-11-19 14:01:15 +01:00
Yahor Berdnikau
51ed43978b
Use new api getVideos() call.
...
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-11-19 13:58:48 +01:00
Yahor Berdnikau
d26b6dce7d
Add getVideos() call.
...
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-11-19 13:51:20 +01:00
Yahor Berdnikau
c5bf541c45
Merge pull request #72 from ultrasonic/add-delete-bookmark
...
Add delete bookmark
2017-11-18 22:21:34 +01:00
Yahor Berdnikau
a9516ecab6
Use new api deleteBookmark() call.
...
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-11-18 22:19:00 +01:00
Yahor Berdnikau
ca2ffc7279
Add deleteBookmark() call.
...
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-11-18 22:14:48 +01:00
Yahor Berdnikau
c6ad07f56f
Merge pull request #71 from ultrasonic/add-create-bookmark
...
Add create bookmark
2017-11-18 22:04:42 +01:00
Yahor Berdnikau
445c3a4944
Use new api createBookmark() call.
...
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-11-18 22:01:33 +01:00
Yahor Berdnikau
010d7679b9
Add createBookmark() call.
...
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-11-18 21:55:07 +01:00
Yahor Berdnikau
f583006ad6
Merge pull request #70 from ultrasonic/add-get-bookmarks
...
Add get bookmarks
2017-11-18 21:39:37 +01:00
Yahor Berdnikau
59ff48860a
Use new api getBookmarks() call.
...
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-11-18 21:37:11 +01:00
Yahor Berdnikau
6b2a682646
Add helper functions to convert api Bookmark entity to domain entity.
...
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-11-18 21:34:03 +01:00
Yahor Berdnikau
0cc0bbedaf
Add getBookmarks() api call.
...
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-11-18 21:33:02 +01:00
Yahor Berdnikau
b4e18f9bfb
Merge pull request #69 from ultrasonic/add-chat-message
...
Add chat message
2017-11-16 22:25:26 +01:00
Yahor Berdnikau
4d2d7b9318
Use new api addChatMessage() call.
...
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-11-16 22:20:25 +01:00
Yahor Berdnikau
c618538b14
Add addChatMessage() call.
...
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-11-16 22:18:13 +01:00
Yahor Berdnikau
87a28990d7
Merge pull request #68 from ultrasonic/update-ktlint
...
Update ktlint to 0.12.1 version.
2017-11-16 22:07:51 +01:00
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
7c3d19b048
Merge pull request #67 from ultrasonic/update-detekt
...
Update detekt to 1.0.0.RC5-4 version.
2017-11-16 21:55:16 +01:00
Yahor Berdnikau
f7b1140b2c
Update detekt to 1.0.0.RC5-4 version.
...
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-11-16 21:49:53 +01:00
Yahor Berdnikau
2cfca3ff26
Merge pull request #66 from ultrasonic/update-gradle
...
Update gradle wrapper to 4.3.1 version.
2017-11-16 21:43:43 +01:00
Yahor Berdnikau
deb734c8e5
Update gradle wrapper to 4.3.1 version.
...
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-11-16 21:40:35 +01:00
Yahor Berdnikau
52f63cb2b9
Merge pull request #65 from ultrasonic/add-get-chat-messages
...
Add get chat messages
2017-11-16 21:36:55 +01:00