use of com.github.moko256.twitlatte.model.impl.OAuthModelImpl in project twicalico by moko256.
the class OAuthActivity method initType.
private void initType(int authClientType) {
switch(authClientType) {
case CLIENT_TYPE_TWITTER:
model = new OAuthModelImpl(OAuthApiClientGeneratorKt.generateTwitterOAuthApiClient());
break;
case CLIENT_TYPE_MASTODON:
model = new OAuthModelImpl(OAuthApiClientGeneratorKt.generateMastodonOAuthApiClient(OkHttpHolderKt.getAppOkHttpClientInstance()));
break;
default:
model = null;
authClientType = CLIENT_TYPE_NOTHING;
break;
}
this.authClientType = authClientType;
}
Aggregations