本文整理匯總了Java中org.hisp.dhis.client.sdk.android.api.D2.isConfigured方法的典型用法代碼示例。如果您正苦於以下問題:Java D2.isConfigured方法的具體用法?Java D2.isConfigured怎麽用?Java D2.isConfigured使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類org.hisp.dhis.client.sdk.android.api.D2
的用法示例。
在下文中一共展示了D2.isConfigured方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: logout
import org.hisp.dhis.client.sdk.android.api.D2; //導入方法依賴的package包/類
@Override
public void logout(final IDataSourceCallback<Void> callback) {
if (D2.isConfigured()) {
D2.me().signOut()
.subscribeOn(Schedulers.io())
.observeOn(AndroidSchedulers.mainThread())
.subscribe(new Action1<Boolean>() {
@Override
public void call(Boolean result) {
callback.onSuccess(null);
}
}, new Action1<Throwable>() {
@Override
public void call(Throwable throwable) {
callback.onError(throwable);
}
});
} else {
//The user is never logged
callback.onSuccess(null);
}
}
示例2: providesCurrentUserInteractor
import org.hisp.dhis.client.sdk.android.api.D2; //導入方法依賴的package包/類
@Provides
@Nullable
@PerUser
@Override
public CurrentUserInteractor providesCurrentUserInteractor() {
if (D2.isConfigured()) {
return D2.me();
}
return null;
}
示例3: providesUserOrganisationUnitInteractor
import org.hisp.dhis.client.sdk.android.api.D2; //導入方法依賴的package包/類
@Provides
@Nullable
@PerUser
public UserOrganisationUnitInteractor providesUserOrganisationUnitInteractor() {
if (D2.isConfigured()) {
return D2.me().organisationUnits();
}
return null;
}
示例4: providesUserProgramInteractor
import org.hisp.dhis.client.sdk.android.api.D2; //導入方法依賴的package包/類
@Provides
@Nullable
@PerUser
public UserProgramInteractor providesUserProgramInteractor() {
if (D2.isConfigured()) {
return D2.me().programs();
}
return null;
}
示例5: providesProgramStageInteractor
import org.hisp.dhis.client.sdk.android.api.D2; //導入方法依賴的package包/類
@Provides
@Nullable
@PerUser
public ProgramStageInteractor providesProgramStageInteractor() {
if (D2.isConfigured()) {
return D2.programStages();
}
return null;
}
示例6: providesProgramStageSectionInteractor
import org.hisp.dhis.client.sdk.android.api.D2; //導入方法依賴的package包/類
@Provides
@Nullable
@PerUser
public ProgramStageSectionInteractor providesProgramStageSectionInteractor() {
if (D2.isConfigured()) {
return D2.programStageSections();
}
return null;
}
示例7: providesProgramStageDataElementInteractor
import org.hisp.dhis.client.sdk.android.api.D2; //導入方法依賴的package包/類
@Provides
@Nullable
@PerUser
public ProgramStageDataElementInteractor providesProgramStageDataElementInteractor() {
if (D2.isConfigured()) {
return D2.programStageDataElements();
}
return null;
}
示例8: providesOrganisationUnitInteractor
import org.hisp.dhis.client.sdk.android.api.D2; //導入方法依賴的package包/類
@Provides
@Nullable
@PerUser
public OrganisationUnitInteractor providesOrganisationUnitInteractor() {
if (D2.isConfigured()) {
return D2.organisationUnits();
}
return null;
}
示例9: providesProgramInteractor
import org.hisp.dhis.client.sdk.android.api.D2; //導入方法依賴的package包/類
@Provides
@Nullable
@PerUser
public ProgramInteractor providesProgramInteractor() {
if (D2.isConfigured()) {
return D2.programs();
}
return null;
}
示例10: providesOptionSetInteractor
import org.hisp.dhis.client.sdk.android.api.D2; //導入方法依賴的package包/類
@Provides
@Nullable
@PerUser
public OptionSetInteractor providesOptionSetInteractor() {
if (D2.isConfigured()) {
return D2.optionSets();
}
return null;
}
示例11: providesEventInteractor
import org.hisp.dhis.client.sdk.android.api.D2; //導入方法依賴的package包/類
@Provides
@Nullable
@PerUser
public EventInteractor providesEventInteractor() {
if (D2.isConfigured()) {
return D2.events();
}
return null;
}
示例12: provideTrackedEntityDataValueInteractor
import org.hisp.dhis.client.sdk.android.api.D2; //導入方法依賴的package包/類
@Provides
@Nullable
@PerUser
public TrackedEntityDataValueInteractor provideTrackedEntityDataValueInteractor() {
if (D2.isConfigured()) {
return D2.trackedEntityDataValues();
}
return null;
}
示例13: providesProgramRuleInteractor
import org.hisp.dhis.client.sdk.android.api.D2; //導入方法依賴的package包/類
@Provides
@Nullable
@PerUser
public ProgramRuleInteractor providesProgramRuleInteractor() {
if (D2.isConfigured()) {
return D2.programRules();
}
return null;
}
示例14: providesProgramRuleActionInteractor
import org.hisp.dhis.client.sdk.android.api.D2; //導入方法依賴的package包/類
@Provides
@Nullable
@PerUser
public ProgramRuleActionInteractor providesProgramRuleActionInteractor() {
if (D2.isConfigured()) {
return D2.programRuleActions();
}
return null;
}
示例15: providesProgramRuleVariableInteractor
import org.hisp.dhis.client.sdk.android.api.D2; //導入方法依賴的package包/類
@Provides
@Nullable
@PerUser
public ProgramRuleVariableInteractor providesProgramRuleVariableInteractor() {
if (D2.isConfigured()) {
return D2.programRuleVariables();
}
return null;
}