use of org.eyeseetea.malariacare.data.database.model.Partner in project pictureapp by EyeSeeTea.
the class PopulateDBStrategy method createDummyOrganisationInDB.
@Override
public void createDummyOrganisationInDB() {
Partner testOrganisation = new Partner();
testOrganisation.setName(PreferencesState.getInstance().getContext().getString(R.string.test_partner_name));
testOrganisation.setUid(PreferencesState.getInstance().getContext().getString(R.string.test_partner_uid));
testOrganisation.insert();
}
use of org.eyeseetea.malariacare.data.database.model.Partner in project pictureapp by EyeSeeTea.
the class PopulateRow method populateOrganisations.
/**
* Method to populate each row of Partner.csv.
*
* @param line The row of the csv to populate.
*/
static Partner populateOrganisations(String[] line, @Nullable Partner partner) {
if (partner == null) {
partner = new Partner();
}
partner.setUid(line[1]);
partner.setName(line[2]);
return partner;
}
Aggregations