refactoring DeviceRegistrationFragment
This commit is contained in:
parent
3ab4c1c6e6
commit
9f0c7ca0ba
|
|
@ -89,14 +89,16 @@ public class VehOwnAppClientDummy implements IVehOwnAppClient {
|
|||
customerVehicles.add(customerVehicleA);
|
||||
|
||||
|
||||
deviceArticleDtos = new ArrayList<>();
|
||||
|
||||
DeviceDto deviceA = new DeviceDto();
|
||||
deviceA.setName("DEVICE_A");
|
||||
deviceA.setDeviceNumber("RANDOM_NUMBER");
|
||||
deviceA.setManufacturer("CSC");
|
||||
|
||||
DeviceArticleDto deviceArticleDtoA = new DeviceArticleDto();
|
||||
deviceArticleDtoA.setSerialnumber("s");
|
||||
deviceArticleDtoA.setDevice(deviceA);
|
||||
deviceArticleDtos = new ArrayList<>();
|
||||
deviceArticleDtos.add(deviceArticleDtoA);
|
||||
}
|
||||
|
||||
|
|
@ -112,7 +114,8 @@ public class VehOwnAppClientDummy implements IVehOwnAppClient {
|
|||
|
||||
List<LanguageDto> result = new ArrayList<>();
|
||||
|
||||
result.add(new LanguageDto("en", "English"));
|
||||
result.add(new LanguageDto("en", "English", true));
|
||||
result.add(new LanguageDto("de", "Deutsch"));
|
||||
|
||||
return new OfflineDummyCall<List<LanguageDto>>(result);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,6 +2,9 @@ package eu.csc.vehown.data.model;
|
|||
|
||||
|
||||
import android.graphics.Bitmap;
|
||||
|
||||
import com.google.gson.annotations.Expose;
|
||||
|
||||
import eu.csc.vehown.Helper;
|
||||
import lombok.Getter;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
|
@ -24,6 +27,7 @@ public class CustomerDevice
|
|||
private String name;
|
||||
private String manufacture;
|
||||
|
||||
@Expose(serialize = false, deserialize = false)
|
||||
private Bitmap image;
|
||||
|
||||
public void setBitmap(Bitmap bitmap) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue