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

com.kushkipagos.android.ValidateAnswers.kt Maven / Gradle / Ivy

package com.kushkipagos.android

import org.json.JSONArray
import org.json.JSONObject

class ValidateAnswers(private val secureServiceId: String, private val secureService:String,
                      private val questionnaireCode: String, private val answers: JSONArray ) {

    fun toJsonObject(): JSONObject {

        val request = JSONObject()
        val confrontaInfo = JSONObject()

        confrontaInfo
                .put("questionnaireCode",questionnaireCode)
                .put("answers",answers)

        return request
                .put("secureServiceId",secureServiceId)
                .put("secureService",secureService)
                .put("confrontaInfo",confrontaInfo)
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy