BOSynchronizeController

class BOSynchronizeController: NSObject

The BOSynchronizeController communicates with the REST-API and stores the responses in the local Database. This will synchronize the online Backend with the local App-Backend.

  • Undocumented

    Declaration

    Swift

    class BOSynchronizeController: NSObject
  • Makes a total database synchronization of all tables. It starts all Requests for each Database table and stores all repsones. This should only be used at the first start of the app, when no data is in it. Also be carfeully with loading too much data over cellular

    Declaration

    Swift

    func totalDatabaseSynchronization()
  • Undocumented

    Declaration

    Swift

    class BOSynchronizeController: NSObject
  • Undocumented

    Declaration

    Swift

    class BOSynchronizeController: NSObject
  • Undocumented

    Declaration

    Swift

    class BOSynchronizeController: NSObject
  • Checks wether the current internet reachability is known (if not, start the check) and returns the current status.

    Author

    Leo Käßner

    Declaration

    Swift

    func internetReachabilityStatus() -> String

    Return Value

    String of current reachability status (unknown, wifi, cellular, not_reachable)

  • Starts the Internet Reachability check and registers a notification observer, so that the app gets notified if internet reachability changes.

    The current reachability status is stored in the ‘internetReachability’ var and has one of the following values: ‘unknown’, 'wifi’, 'cellular’ or 'not_reachable’

    Declaration

    Swift

    func checkForInternetReachability()
  • Undocumented

    Declaration

    Swift

    class BOSynchronizeController: NSObject
  • Get total list of all teams and store response in Database.

    Declaration

    Swift

    func loadTotalTeamList()
  • Get only updates of the team list till specified date and store response in Database.

    Declaration

    Swift

    func loadUpdatesOfTeamList(_ date: Date)
  • calculates the last update of the team list and loads new team list updates since then. It uses the loadUpdatesOfTeamList Function.

    Declaration

    Swift

    func loadUpdatesOfTeamListSinceLastUpdate()
  • Undocumented

    Declaration

    Swift

    class BOSynchronizeController: NSObject
  • Undocumented

    Declaration

    Swift

    class BOSynchronizeController: NSObject
  • Undocumented

    Declaration

    Swift

    class BOSynchronizeController: NSObject
  • Undocumented

    Declaration

    Swift

    class BOSynchronizeController: NSObject