Search in sources :

Example 1 with WidgetTypeInfo

use of org.thingsboard.server.common.data.widget.WidgetTypeInfo in project thingsboard by thingsboard.

the class WidgetTypeInfoEntity method toData.

@Override
public WidgetTypeInfo toData() {
    BaseWidgetType baseWidgetType = super.toBaseWidgetType();
    WidgetTypeInfo widgetTypeInfo = new WidgetTypeInfo(baseWidgetType);
    widgetTypeInfo.setImage(image);
    widgetTypeInfo.setDescription(description);
    widgetTypeInfo.setWidgetType(widgetType);
    return widgetTypeInfo;
}
Also used : BaseWidgetType(org.thingsboard.server.common.data.widget.BaseWidgetType) WidgetTypeInfo(org.thingsboard.server.common.data.widget.WidgetTypeInfo)

Aggregations

BaseWidgetType (org.thingsboard.server.common.data.widget.BaseWidgetType)1 WidgetTypeInfo (org.thingsboard.server.common.data.widget.WidgetTypeInfo)1