Commit Graph

8 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 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 e0d65c8572 Call /api/v1/user/current to check the login status 2018-11-02 19:50:26 +01:00
0xboobface 95a3e2dc79 Don't open login dialog, if login has captcha
The login dialog doesn't work anyways. So it makes more sense to
show a reasonable error dialog at the moment.
2018-11-02 19:50:22 +01:00
0xboobface d6b443b05a Implement follow and unfollow for CamsodaModel 2018-10-30 23:18:50 +01:00
0xboobface 5333e427ad Add CamSoda login dialog
This dialog is shown, if the normal login didn't work. For example,
if you log in several times in a short amount of time, they respond
with "Please confirm that you are not a robot" and you have to log
in with a captcha
2018-10-30 21:13:48 +01:00
0xboobface 8fd09fd521 Implemented followed tab for CamSoda 2018-10-28 21:23:58 +01:00