de.hattrickorganizer.gui.utils
Class OnlineWorker

java.lang.Object
  extended by de.hattrickorganizer.gui.utils.OnlineWorker

public class OnlineWorker
extends java.lang.Object

DOCUMENT ME!

Author:
thomas.werth

Field Summary
protected static LoginWaitDialog waitDialog
          wait Dialog
 
Constructor Summary
OnlineWorker()
          Creates a new instance of OnlineWorker
 
Method Summary
protected  void assureLogin()
           
protected  Matchdetails fetchDetails(int matchID, LoginWaitDialog waitDialog)
          TODO Missing Method Documentation
protected  MatchLineup fetchLineup(int matchID, int teamID)
          TODO Missing Method Documentation
 void getAllLineups()
          Holt für alle Kurzinfos die Lineups, wenn diese noch nicht vorhanden sind
protected  java.lang.String getDate()
          generiert ein String Datum
 boolean getHrf()
          saugt das HRF
 boolean getMatchArchiv(int teamId, java.util.GregorianCalendar firstDate)
          saugt das Archiv
 boolean getMatchDetails(int matchId)
          DOCUMENT ME!
 boolean getMatches(int teamId, boolean forceRefresh)
          saugt den Spielplan
 boolean getMatchlineup(int matchId, int teamId1, int teamId2)
          saugt das Matchlineup
 boolean getSpielplan(int season, int ligaID)
          saugt den Spielplan
protected  java.io.File saveFile(java.lang.String dateiname, java.lang.String inhalt)
          speichert in die Angegebene Datei den übergebenen Inhalt
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

waitDialog

protected static LoginWaitDialog waitDialog
wait Dialog

Constructor Detail

OnlineWorker

public OnlineWorker()
Creates a new instance of OnlineWorker

Method Detail

getHrf

public final boolean getHrf()
saugt das HRF

Returns:
TODO Missing Return Method Documentation

getMatchArchiv

public final boolean getMatchArchiv(int teamId,
                                    java.util.GregorianCalendar firstDate)
saugt das Archiv

Parameters:
teamId - null falls unnötig sonst im Format 2004-02-01
firstDate - null falls unnötig sonst im Format 2004-02-01
Returns:
TODO Missing Return Method Documentation

getMatchDetails

public final boolean getMatchDetails(int matchId)
DOCUMENT ME!

Parameters:
matchId - Die ID des Matches
Returns:
TODO Missing Return Method Documentation

getMatches

public final boolean getMatches(int teamId,
                                boolean forceRefresh)
saugt den Spielplan

Parameters:
teamId - angabe der Saison ( optinal < 1 für aktuelle
forceRefresh - TODO Missing Constructuor Parameter Documentation
Returns:
TODO Missing Return Method Documentation

getMatchlineup

public final boolean getMatchlineup(int matchId,
                                    int teamId1,
                                    int teamId2)
saugt das Matchlineup

Parameters:
matchId - Die ID des Matches
teamId1 - Erste Teamid (pflicht)
teamId2 - Zweite Teamid (optional auch -1)
Returns:
TODO Missing Return Method Documentation

getSpielplan

public final boolean getSpielplan(int season,
                                  int ligaID)
saugt den Spielplan

Parameters:
season - angabe der Saison ( optinal < 1 für aktuelle
ligaID - TODO Missing Constructuor Parameter Documentation
Returns:
TODO Missing Return Method Documentation

getDate

protected final java.lang.String getDate()
generiert ein String Datum

Returns:
TODO Missing Return Method Documentation

assureLogin

protected final void assureLogin()

fetchDetails

protected final Matchdetails fetchDetails(int matchID,
                                          LoginWaitDialog waitDialog)
TODO Missing Method Documentation

Parameters:
matchID - TODO Missing Method Parameter Documentation
waitDialog - TODO Missing Method Parameter Documentation
Returns:
TODO Missing Return Method Documentation

fetchLineup

protected final MatchLineup fetchLineup(int matchID,
                                        int teamID)
TODO Missing Method Documentation

Parameters:
matchID - TODO Missing Method Parameter Documentation
teamID - TODO Missing Method Parameter Documentation
Returns:
TODO Missing Return Method Documentation

saveFile

protected final java.io.File saveFile(java.lang.String dateiname,
                                      java.lang.String inhalt)
speichert in die Angegebene Datei den übergebenen Inhalt

Parameters:
dateiname - TODO Missing Constructuor Parameter Documentation
inhalt - TODO Missing Constructuor Parameter Documentation
Returns:
TODO Missing Return Method Documentation

getAllLineups

public void getAllLineups()
Holt für alle Kurzinfos die Lineups, wenn diese noch nicht vorhanden sind