main.com.wisetrack.sdk.WiseTrackThirdPartySharing.kt Maven / Gradle / Ivy
The newest version!
package com.wisetrack.sdk
/**
@author hamed (@hamed-hsb)
* @since 06th October 2021
*/
class WiseTrackThirdPartySharing(val isEnabled: Boolean?) {
var granularOptions: HashMap> = HashMap()
public fun addGranularOption(partnerName: String?, key: String?, value: String?) {
if (partnerName.isNullOrEmpty() || key.isNullOrEmpty() || value.isNullOrEmpty()) {
WiseTrackFactory.getLogger().error("Can not add granular option with any null value")
return
}
var partnerOptions = granularOptions[partnerName]
if (partnerOptions == null) {
partnerOptions = HashMap()
granularOptions[partnerName] = partnerOptions
}
partnerOptions[key] = value
}
}