Classes

The following classes are available globally.

  • Configurations for the DALIapi framework can be stored and handled using this

    Example usage:

    let file = NSDictionary(dictionary: [
        "server_url": "https://dalilab-api.herokuapp.com/"
    ])
    let config = DALIConfig(dict: file)
    DALIapi.configure(config: config)
    
    See more

    Declaration

    Swift

    open class DALIConfig
  • A set of errors used by the DALIapi framework to signal the user when there is an issue

    See more

    Declaration

    Swift

    open class DALIError
  • An interface for getting and setting information about food in the lab

    See more

    Declaration

    Swift

    public class DALIFood
  • A class for controlling the lights in the lab

    See more

    Declaration

    Swift

    public class DALILights
  • A static struct that contains all location updates and queries

    Example:

    DALILocation.Tim.get { (tim, error) in
        // ...
        if tim.inDALI {
            // ...
        } else if tim.inOffice {
            // ...
        }
    }
    
    See more

    Declaration

    Swift

    public class DALILocation
  • Photo class for getting a list of all photos from the API

    See more

    Declaration

    Swift

    public class DALIPhoto
  • Static class to configure and handle general requests for the DALI api framework

    See more

    Declaration

    Swift

    public class DALIapi