![JAR search and dependency download from the Maven repository](/logo.png)
com.evrythng.thng.resource.model.store.content.PhysicalAssetContent Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of thng-resource-model Show documentation
Show all versions of thng-resource-model Show documentation
Models for REST resources representations.
/*
* (c) Copyright 2013 EVRYTHNG Ltd London / Zurich
* www.evrythng.com
*/
package com.evrythng.thng.resource.model.store.content;
import com.fasterxml.jackson.annotation.JsonIgnore;
import java.util.Map;
/**
* Model for a physical asset.
*/
public class PhysicalAssetContent extends Content {
private static final long serialVersionUID = -1264841415344769295L;
private Map media;
private Integer stock;
private String product;
private Integer stockChange;
private Integer cost;
private Integer granted;
public PhysicalAssetContent() {
}
public Map getMedia() {
return media;
}
public void setMedia(Map media) {
this.media = media;
}
public Integer getStock() {
return stock;
}
public void setStock(Integer stock) {
this.stock = stock;
}
public String getProduct() {
return product;
}
public void setProduct(String product) {
this.product = product;
}
public Integer getStockChange() {
return stockChange;
}
public void setStockChange(Integer stockChange) {
this.stockChange = stockChange;
}
public Integer getCost() {
return cost;
}
@JsonIgnore
public int getCostOrZero() {
return cost != null ? cost : 0;
}
public void setCost(Integer cost) {
this.cost = cost;
}
public Integer getGranted() {
return granted;
}
public void setGranted(Integer granted) {
this.granted = granted;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy