public final class WeChatMpApiClient extends Object
| Modifier and Type | Field and Description |
|---|---|
private MpApp |
mpApp |
private retrofit2.Retrofit |
retrofit |
| Constructor and Description |
|---|
WeChatMpApiClient(MpApp mpApp,
retrofit2.Retrofit retrofit)
Instantiates a new Work we chat api client.
|
| Modifier and Type | Method and Description |
|---|---|
MpApp |
getMpApp()
Gets mp app.
|
static <T extends TokenApi> |
init(T tokenApi,
okhttp3.ConnectionPool connectionPool,
okhttp3.logging.HttpLoggingInterceptor.Level level)
Instantiates a new Work we chat api client.
|
(package private) retrofit2.Retrofit |
retrofit()
Retrofit retrofit.
|
private final MpApp mpApp
private final retrofit2.Retrofit retrofit
WeChatMpApiClient(MpApp mpApp, retrofit2.Retrofit retrofit)
mpApp - the mp appretrofit - the retrofitpublic static <T extends TokenApi> WeChatMpApiClient init(T tokenApi, okhttp3.ConnectionPool connectionPool, okhttp3.logging.HttpLoggingInterceptor.Level level)
T - the type parametertokenApi - the token apiconnectionPool - the connection poollevel - the levelpublic MpApp getMpApp()
retrofit2.Retrofit retrofit()
Copyright © 2023. All rights reserved.