Hi all, im an c# user and i never used kotlin/java before.
I have this working code on kotlin but im not able to convert into c# or to convert to java then to c#.
Any idea how to convert this class?
is an lightstreamer request, maybe an extend class of this class SessionRequest()
//code start
//---------------------------------------------------------------
package com.lightstreamer.client.requests
import com.lightstreamer.client.session.InternalConnectionDetails
import com.lightstreamer.client.session.InternalConnectionOptions
class CreateSessionRequest(targetServer: String, polling: Boolean, cause: String?, options: InternalConnectionOptions, details: InternalConnectionDetails, delay: Long, password: String?, oldSession: String?) : SessionRequest(polling, delay) {
init {
this.setServer(targetServer)
this.addParameter("LS_op2", "create")
this.addParameter("LS_polling", "true")
if (cause != null) {
this.addParameter("LS_cause", cause)
}
var requestedPollingInterval = 0L
var requestedIdleTimeout = 0L
if (polling) {
requestedPollingInterval = options.pollingInterval + delay
requestedIdleTimeout = options.idleTimeout
}
}
override fun getRequestName(): String {
return "create_session"
}
override fun isSessionRequest(): Boolean {
return true
}
}
//code end
//---------------------------------------------------------------