package com.devicehive.vo; /* * #%L * DeviceHive Common Dao Interfaces * %% * Copyright (C) 2016 DataArt * %% * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * #L% */ import com.devicehive.json.strategies.JsonPolicyDef; import com.devicehive.model.HiveEntity; import com.devicehive.model.JsonStringWrapper; import com.google.gson.annotations.SerializedName; import java.util.Date; import static com.devicehive.json.strategies.JsonPolicyDef.Policy.DEVICE_EQUIPMENT_SUBMITTED; public class DeviceEquipmentVO implements HiveEntity { @SerializedName("sid") private Long id; @SerializedName("id") @JsonPolicyDef(DEVICE_EQUIPMENT_SUBMITTED) private String code; @JsonPolicyDef(DEVICE_EQUIPMENT_SUBMITTED) private Date timestamp; @SerializedName("parameters") @JsonPolicyDef(DEVICE_EQUIPMENT_SUBMITTED) private JsonStringWrapper parameters; public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getCode() { return code; } public void setCode(String code) { this.code = code; } public Date getTimestamp() { return timestamp; } public void setTimestamp(Date timestamp) { this.timestamp = timestamp; } public JsonStringWrapper getParameters() { return parameters; } public void setParameters(JsonStringWrapper parameters) { this.parameters = parameters; } }