Okay I have an interface which has few interfaces in it and the code looks like this in Kotlin
interface IStreamRepository : IBaseRepository {
interface OnAddStreamCallback {
fun onSuccess()
fun onError(message: String)
}
interface OnGetAllStreamsCallback {
fun onSuccess(streams: ArrayList<Stream>)
fun onError(message: String)
}
interface OnGetStreamByNameCallback {
fun onSuccess(stream: Stream)
fun onError(message: String)
}
interface OnDeleteStreamCallback {
fun onSuccess()
fun onError(message: String)
}
}
and when I try to do
getAllStreamsCallBack = IStreamRepository.OnGetAllStreamsCallback() {
//and override methods in OnGetAllStreamsCallback interface
}
the compiler throws the following error OnGetAllStreamsCallback does not have constructors
, How can I solve this issue?