All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.bidib.wizard.api.model.firmware.FirmwareVersion Maven / Gradle / Ivy

The newest version!
package org.bidib.wizard.api.model.firmware;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import org.bidib.api.json.types.firmware.FirmwareVersionType.FirmwareRepoOriginType;
import org.bidib.api.json.types.firmware.FirmwareVersionType.FirmwareStatusType;
import org.bidib.jbidibc.messages.SoftwareVersion;

public class FirmwareVersion {

    private final FirmwareStatusType state;

    private final FirmwareRepoOriginType repoOrigin;

    private final SoftwareVersion softwareVersion;

    public FirmwareVersion(final FirmwareStatusType state, final FirmwareRepoOriginType repoOrigin,
        final SoftwareVersion softwareVersion) {
        this.state = state;
        this.repoOrigin = repoOrigin;
        this.softwareVersion = softwareVersion;
    }

    public FirmwareStatusType getState() {
        return state;
    }

    public FirmwareRepoOriginType getRepoOrigin() {
        return repoOrigin;
    }

    public SoftwareVersion getSoftwareVersion() {
        return softwareVersion;
    }

    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this, ToStringStyle.SHORT_PREFIX_STYLE);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy