Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7c3a6486 authored by Vincent Bourgmayer's avatar Vincent Bourgmayer
Browse files

add FlashingProcess as a field into Device instance

parent 3fcbfcdc
Loading
Loading
Loading
Loading
+22 −0
Original line number Diff line number Diff line
@@ -16,6 +16,8 @@
 */
package ecorp.easy.installer.models;

import ecorp.easy.installer.models.Process;

/**
 * Encapsulate data about the device
 * @author Vincent Bourgmayer
@@ -32,6 +34,8 @@ public class Phone {
    private boolean adbAuthorized = false;
     //private boolean isReady = false; //tell if preparation process succeed
    
    private Process flashingProcess;

 /**
     * get Device internal Code
     * @return 
@@ -141,4 +145,22 @@ public class Phone {
    public void setAdbAuthorized(boolean adbAuthorized) {
        this.adbAuthorized = adbAuthorized;
    }
    
    /**
     * Get the flashing process of the phone
     * Can return null if not setted
     * @return 
     */
    public Process getFlashingProcess() {
        return flashingProcess;
    }

    
    /**
     * Set the flashing process of the phone
     * @param flashingProcess 
     */
    public void setFlashingProcess(Process flashingProcess) {
        this.flashingProcess = flashingProcess;
    }
}