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

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
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy