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 io.swagger.annotations.ApiModelProperty;
import static com.devicehive.json.strategies.JsonPolicyDef.Policy.*;
public class DeviceVO implements HiveEntity {
@SerializedName("sid")
private Long id;
@SerializedName("id")
@JsonPolicyDef({DEVICE_PUBLISHED, NETWORK_PUBLISHED})
private String guid;
@SerializedName("name")
@JsonPolicyDef({DEVICE_PUBLISHED, DEVICE_SUBMITTED, NETWORK_PUBLISHED})
private String name;
@SerializedName("data")
@JsonPolicyDef({DEVICE_PUBLISHED, DEVICE_SUBMITTED, NETWORK_PUBLISHED})
private JsonStringWrapper data;
@SerializedName("network")
@JsonPolicyDef({DEVICE_PUBLISHED, DEVICE_SUBMITTED})
private NetworkVO network;
@SerializedName("deviceClass")
@JsonPolicyDef({DEVICE_PUBLISHED, DEVICE_SUBMITTED, NETWORK_PUBLISHED})
private DeviceClassVO deviceClass;
@SerializedName("isBlocked")
@ApiModelProperty(name="isBlocked")
@JsonPolicyDef({DEVICE_PUBLISHED, DEVICE_SUBMITTED, NETWORK_PUBLISHED})
private Boolean blocked;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getGuid() {
return guid;
}
public void setGuid(String guid) {
this.guid = guid;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public JsonStringWrapper getData() {
return data;
}
public void setData(JsonStringWrapper data) {
this.data = data;
}
public NetworkVO getNetwork() {
return network;
}
public void setNetwork(NetworkVO network) {
this.network = network;
}
public DeviceClassVO getDeviceClass() {
return deviceClass;
}
public void setDeviceClass(DeviceClassVO deviceClass) {
this.deviceClass = deviceClass;
}
public Boolean getBlocked() {
return blocked;
}
public void setBlocked(Boolean blocked) {
this.blocked = blocked;
}
}