Commit Graph

10 Commits

Author SHA1 Message Date
0xboobface 5b8d65ab27 Introduced new HttpException for unsuccessful HTTP responses
Instead of throwing an IOException with String message, use the new
HttpException. The exception handling code can then use the status
code to be more specific how to handle the exception.

Also: use try-with-resources for the okhttp response where possible
2018-11-14 14:43:26 +01:00
0xboobface ba0cc591d3 Add setting for HTTP User-Agent header
Replace all occurences of the User-Agent header with the user-agent
string from the settings
2018-11-07 13:49:56 +01:00
0xboobface a2f048fe0d Add a cookie to define the sorting for BongaCams
The cookie is set to sort by popularity
2018-11-06 23:17:01 +01:00
0xboobface 1b11af8872 Try to restore HTTP session with cookies before login in
All the HTTP clients now check, if loading the cookies was sufficient
to restore the HTTP session. If yes, we assume that we are logged in.
If not, the normal login procedure is done.
2018-11-06 22:17:30 +01:00
0xboobface a136c9ccd2 Prepare code to persist http cookies
Save and reload the cookies might help to avoid logins between sessions.
2018-11-06 19:32:21 +01:00
0xboobface f15b57ce9a Remove websocket stuff 2018-11-06 18:56:31 +01:00
0xboobface d768cbb1ff Implement tipping for bongacams 2018-11-06 18:38:20 +01:00
0xboobface 69194e2800 Add login dialog for BongaCams 2018-11-06 00:17:41 +01:00
0xboobface 46c3feeb1f More stuff for BongaCams 2018-11-05 19:00:26 +01:00
0xboobface 1fec124bbc Add BongaCams
This is the first working version. Follow / unfollow and tipping are not
implemented.
2018-11-05 00:41:22 +01:00