E
Size: a a a
E
РН
E
П
@Component
@Scope(proxyMode = ScopedProxyMode.TARGET_CLASS, value = "prototype")
open class ChatSocketHelper() : BaseRepository() {
var socket: Socket? = null
@Volatile
private var threadIsRunning = true
@Autowired
lateinit var accountRepository: AccountRepository
private var user = fun(token: String) = when (val getUser = accountRepository.loginByToken(token)) {
is OperationStatus.Error -> throw getUser.exception
is OperationStatus.OK -> getUser.body!!.
mapToUserEntity()
}
TS
П
AE
@Component
@Scope(proxyMode = ScopedProxyMode.TARGET_CLASS, value = "prototype")
open class ChatSocketHelper() : BaseRepository() {
var socket: Socket? = null
@Volatile
private var threadIsRunning = true
@Autowired
lateinit var accountRepository: AccountRepository
private var user = fun(token: String) = when (val getUser = accountRepository.loginByToken(token)) {
is OperationStatus.Error -> throw getUser.exception
is OperationStatus.OK -> getUser.body!!.
mapToUserEntity()
}
П
П
ChatSocketHelper().
also { it.socket = socket
} вот так.AE
ChatSocketHelper().
also { it.socket = socket
} вот так.AE
ChatSocketHelper().
also { it.socket = socket
} вот так.П
AE
П
Д
AE
Д
VS
AE
YG