   (swap! (.state this) assoc :url url)
   this)
 
-(defn -getApiUrl [this]
-  (:url @(.state this)))
-
 (defn -setAppId [this ^String appId]
   (swap! (.state this) assoc :appId appId)
   this)

(defn -build [this]
  (EventLogger. @(.state this)))



(defn -sendToSamsara [this]
  (if (clojure.string/blank? (:url @(.state this)))
    false

  (swap! (.state this) assoc :sourceId sourceId)
  this)

(defn -setPublishInterval [this ^Long interval]
  (swap! (.state this) assoc :publish-interval interval)
  this)

(defn -setMinBufferSize [this ^Long min-size]
  (swap! (.state this) assoc :min-buffer-size min-size)
  this)

(defn -setMaxBufferSize [this ^Long max-size]
  (swap! (.state this) assoc :max-buffer-size max-size)
  this)

(defn -setCompression[this ^String s]
  (if-let [compress-type (str->compress-type s)]
