/**
* Copyright (c) 2014-2017 by the respective copyright holders.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*/
package org.eclipse.smarthome.core.thing.dto;
import java.util.Map;
import java.util.Set;
import org.eclipse.smarthome.core.types.StateDescription;
/**
* This is a data transfer object that is used to serialize channel definitions.
*
* @author Dennis Nobel - Initial contribution
* @author Chris Jackson - Added properties
*/
public class ChannelDefinitionDTO {
public String description;
public String id;
public String label;
public Set<String> tags;
public Map<String, String> properties;
public String category;
public StateDescription stateDescription;
public boolean advanced;
public String typeUID;
public ChannelDefinitionDTO() {
}
public ChannelDefinitionDTO(String id, String typeUID, String label, String description, Set<String> tags,
String category, StateDescription stateDescription, boolean advanced, Map<String, String> properties) {
this.description = description;
this.label = label;
this.id = id;
this.typeUID = typeUID;
this.tags = tags;
this.category = category;
this.stateDescription = stateDescription;
this.advanced = advanced;
this.properties = properties;
}
}