本文整理汇总了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;
}