public interface ThingType extends TopicSupport
TopicSupport| 限定符和类型 | 方法和说明 |
|---|---|
String |
getId() |
String |
getName() |
default String |
getTopicPrefix(String templateId,
String thingId)
根据物类型,获取topic前缀
|
default boolean |
isEmbedded() |
default boolean |
isSameType(ThingType thingType) |
static ThingType |
of(String id)
根据id创建ThingType,如果ThingType未定义,则创建新的ThingType
|
String getId()
String getName()
default boolean isEmbedded()
default boolean isSameType(ThingType thingType)
default String getTopicPrefix(String templateId, String thingId)
TopicSupportgetTopicPrefix 在接口中 TopicSupporttemplateId - 模版IDthingId - 物IDCopyright © 2019–2022. All rights reserved.