public class FfbMobileClient extends Object
| Constructor and Description |
|---|
FfbMobileClient(FfbClientConfiguration config)
Konstruktor for tests and internal uses only.
|
FfbMobileClient(FfbLoginKennung user,
FfbPin pin)
Erstellt ein Retriever, der von der FFB über die Mobile-Schnittstelle Daten empfängt.
|
FfbMobileClient(FfbLoginKennung user,
FfbPin pin,
FfbClientConfiguration config)
Erstellt ein Retriever, der von der FFB über die Mobile-Schnittstelle Daten empfängt.
|
| Modifier and Type | Method and Description |
|---|---|
MyFfbResponse |
fetchAccountData()
Diese Methode ermittelt die aktuellen Depotbestände und weitere Informationen aus der Gesamtheit aller Depots.
|
Map<String,javax.ws.rs.core.NewCookie> |
getCookies() |
FfbDispositionenResponse |
getDispositionen()
Response with pending transactions.
|
FfbPerformanceResponse |
getPerformance()
Gibt die Performance für alle Depots dieses Logins aus.
|
FfbUmsatzResponse |
getUmsaetze(FfbAuftragsTyp auftragsTyp,
java.time.LocalDate from,
java.time.LocalDate until) |
boolean |
isLoggedIn() |
LoginResponse |
loginInformation() |
void |
logon()
Login über Cookies.
|
boolean |
logout() |
String |
toString()
Returns the
FfbMobileClient as String, including internal information like webClient, user, loginstatus (but not the PIN), and
the GSON object. |
public FfbMobileClient(FfbClientConfiguration config)
FfbMobileClient(FfbLoginKennung, FfbPin) instead.
Wird der Client wie hier ohne User und Pin erstellt, kann gar nichts klappen.
config - Die Konfiguration, die für diese Client-Instanz genutzt werden soll.public FfbMobileClient(FfbLoginKennung user, FfbPin pin)
user - Der Login. Meistens die Depotnummer. Bei mehreren Depots mit selbem Login einfach ebenfalls das Login.pin - das Passwort fürs Login.public FfbMobileClient(FfbLoginKennung user, FfbPin pin, FfbClientConfiguration config)
user - Der Login. Meistens die Depotnummer. Bei mehreren Depots mit selbem Login einfach ebenfalls das Login.pin - das Passwort fürs Login.config - the configuration to usepublic MyFfbResponse fetchAccountData() throws FfbClientError
Hinweis: Zuvor muss ein logon() aufgerufen worden sein, sonst gibt es eine IllegalStateException.
FfbClientError - Error while getting account data.public void logon()
throws FfbClientError
FfbClientError - Error logging in. Wrong login data?public FfbPerformanceResponse getPerformance() throws FfbClientError
FfbPerformanceResponse mit einigen Performance-Infos.FfbClientError - Falls es zuvor keinen (derzeit noch) gültigen Login gab.IllegalStateException - if not logged in.public FfbDispositionenResponse getDispositionen() throws FfbClientError
FfbClientError - login error etc.IllegalStateException - if not logged in.public FfbUmsatzResponse getUmsaetze(FfbAuftragsTyp auftragsTyp, java.time.LocalDate from, java.time.LocalDate until)
auftragsTyp - der gewünschte Auftragstyp.from - beginn-Zeitraum.until - Ende-ZeitraumIllegalArgumentException - falls der Zeitraum FROM zu lange her ist.public boolean logout()
throws FfbClientError
FfbClientErrorpublic boolean isLoggedIn()
public LoginResponse loginInformation()
public String toString()
FfbMobileClient as String, including internal information like webClient, user, loginstatus (but not the PIN), and
the GSON object.Copyright © 2018. All rights reserved.