package policy.price.outline;
|
|
import foundation.json.IJSONProvider;
|
import foundation.json.IJSONWriter;
|
|
public class OnsiteOutline implements IJSONProvider {
|
|
private int cnt_forProductLine;
|
private int cnt_forProduct;
|
private int cnt_forSKU;
|
private OnsiteUpdateList updateList;
|
|
|
public OnsiteOutline() {
|
cnt_forProductLine = 0;
|
cnt_forProduct = 0;
|
cnt_forSKU = 0;
|
}
|
|
public void setCnt_forProductLine(int cnt_forProductLine) {
|
this.cnt_forProductLine = cnt_forProductLine;
|
}
|
|
public void setCnt_forProduct(int cnt_forProduct) {
|
this.cnt_forProduct = cnt_forProduct;
|
}
|
|
public void setCnt_forSKU(int cnt_forSKU) {
|
this.cnt_forSKU = cnt_forSKU;
|
}
|
|
public void setUpdateList(OnsiteUpdateList updateList) {
|
this.updateList = updateList;
|
}
|
|
@Override
|
public void writeJSON(IJSONWriter writer) {
|
writer.beginObject();
|
|
writer.write("cnt_forProductLine", cnt_forProductLine);
|
writer.write("cnt_forProduct", cnt_forProduct);
|
writer.write("cnt_forSKU", cnt_forSKU);
|
|
if (updateList == null) {
|
writer.writeNull("update_list");
|
}
|
else {
|
writer.beginArray("update_list");
|
|
for (OnsiteUpdateRecord updateRecord: updateList) {
|
updateRecord.writeJSON(writer);
|
}
|
|
writer.endArray();
|
}
|
|
writer.endObject();
|
}
|
|
}
|