Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto-Switch durch Abstraktionslayer #3

Open
IHFSchwarz opened this issue May 7, 2018 · 0 comments
Open

Auto-Switch durch Abstraktionslayer #3

IHFSchwarz opened this issue May 7, 2018 · 0 comments

Comments

@IHFSchwarz
Copy link
Collaborator

Aus
DecentralizedAmateurPagingNetwork/DAPNETApp#58
DecentralizedAmateurPagingNetwork/DAPNETApp#61
wird jetzt ein switch bei logout/login in der app und bei Bedarf ein automatischer switch in der library, quasi als Injection.
Dafür sollte in einer Abstraktionsklasse bei einem Fehler in Retrofit als Fallback der jeweils nächstrelevante Server getestet werden.
Beispiel:

  • User eingeloggt über hampager.de
  • Request timeout
  • Automatischer check von db0sda.ampr.org
  • Bei Erfolg: db0sda beibehalten. Bei Misserfolg: hampager.de beibehalten.

Ähnliches gilt für custom Server, aber mit

  1. Custom
  2. Hampager.de
  3. DB0SDA

DB0SDA vor hampager.de wäre auch möglich, jedoch vermutlich langsamer da eine Verbindung ohne HAMNET wahrscheinlicher ist.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant