org.bidib.wizard.api.model.firmware.FirmwareVersion Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bidibwizard-api Show documentation
Show all versions of bidibwizard-api Show documentation
jBiDiB BiDiB Wizard API POM
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);
}
}