yy1717
2021-02-07 cea2a94fc97e79897cdfd217be8250c075974a1a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package safeluck.drive.evaluation.httpmodule
 
import retrofit2.Retrofit
 
class RetrofitCreator{
    companion object{
        private val BASE_URL = "https://trainsim-api.aaej.cn/"
        private val RETROFIT_CLIENT = Retrofit.Builder().baseUrl(BASE_URL)
                .addConverterFactory(GsonConverterFactory.create()).build()
 
        private val REST_SERVICE = RETROFIT_CLIENT.create(AYApiService::class.java)
 
        fun getRestService()=REST_SERVICE
    }
 
 
}