All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.io.dyte.mobilecorebridge.CallDetailsBuilder.kt Maven / Gradle / Ivy

package io.dyte.mobilecorebridge

class CallDetailsBuilder {

  private val callDetails = HashMap()

  fun addMethodName(name: String): CallDetailsBuilder {
    callDetails["name"] = name
    return this
  }

  fun addArguments(args: HashMap): CallDetailsBuilder {
    callDetails["args"] = args
    return this
  }

  fun flush(): CallDetailsBuilder {
    callDetails.clear()
    return this
  }

  fun build(): HashMap {
    if (!callDetails.containsKey("args")) {
      callDetails["args"] = null
    }
    return callDetails
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy