mobile/src/main/java/drost_stein/fbg/hsbo/de/urbantrackingapp/NetworkReceiver.java
public boolean hasPrefferedConnection() {
        switch (this.prefferedConnectivity) {
            case MOBILE:
                return checkIsOnline();
            case WIFI:
                return checkHasWIFI();
            default:
                return checkHasWIFI();
        }
    }
/**
     * checks if there is an online connection dependent on the preferred connection type
     *
     * @return
     */
checks if there is an online connection dependent on the preferred connection type
@return
checks if there is an online connection dependent on the preferred connection type @return
public boolean hasPrefferedConnection() {
        switch (this.prefferedConnectivity) {
            case MOBILE:
                return checkIsOnline();
            case WIFI:
                return checkHasWIFI();
            default:
                return checkHasWIFI();
        }
    }
public boolean hasPrefferedConnection ( ) { switch ( this . prefferedConnectivity ) { case MOBILE : return checkIsOnline ( ) ; case WIFI : return checkHasWIFI ( ) ; default : return checkHasWIFI ( ) ; } }
checks if there is an online connection dependent on the preferred connection type
 @return
checks if there is an online connection dependent on the preferred connection type @return