func setEventPropertyState()

in Sasquatch/Sasquatch/ViewControllers/Sections/TargetPropertiesTableSection.swift [76:89]


  func setEventPropertyState(_ state: PropertyState, forTarget target: AnalyticsTransmissionTarget) {
    switch state.type {
    case .String:
      target.propertyConfigurator.setEventProperty(state.value as! String, forKey: state.key)
    case .Boolean:
      target.propertyConfigurator.setEventProperty(state.value as! Bool, forKey: state.key)
    case .Double:
      target.propertyConfigurator.setEventProperty(state.value as! Double, forKey: state.key)
    case .Long:
      target.propertyConfigurator.setEventProperty(state.value as! Int64, forKey: state.key)
    case .DateTime:
      target.propertyConfigurator.setEventProperty(state.value as! Date, forKey: state.key)
    }
  }