Resolves #183 Service call support for glance card

This commit is contained in:
Yegor Vialov
2018-11-16 23:35:08 +02:00
parent 82c9bd26d1
commit ab67b557ca
3 changed files with 71 additions and 16 deletions

View File

@ -6,6 +6,8 @@ class EntityWrapper {
String icon;
String tapAction;
String holdAction;
String actionService;
Map<String, dynamic> actionServiceData;
Entity entity;
@ -14,7 +16,9 @@ class EntityWrapper {
String icon,
String displayName,
this.tapAction: EntityTapAction.moreInfo,
this.holdAction
this.holdAction,
this.actionService,
this.actionServiceData
}) {
this.icon = icon ?? entity.icon;
this.displayName = displayName ?? entity.displayName;