What would be the most appropriate way of creating a retrofit instance?(not necessarily between the 3 options below) What are the differences between these 3 ways?
Option 1
object BuffApi {
val retrofitService : BuffApiService by lazy {
retrofit.create(BuffApiService::class.java)
}
}
Option 2
object BuffApi {
val retrofitService2: BuffApiService = retrofit.create(BuffApiService::class.java)
}
Option 3
class BuffApi {
val retrofitService: BuffApiService = retrofit.create(BuffApiService::class.java)
}