Skip to main content
1-Visitor
Apr 2, 2019 11:30 AM UTC
Question

Service for Inserting a service into entities

How can i go for duplicating a service of a specific thing inside other entities like things or thing templates?

8 replies

22-Sapphire I
Apr 2, 2019 4:12 PM UTC

I'm not sure why you need to duplicate a service.

You could just create a central helper Thing with services and then invoke that service from the other Entities.

Especially if it is doing the same evaluation.

Translate
12-Amethyst
Apr 3, 2019 6:20 AM UTC

Why not implement the shared service in a ThingShape and both entities will implement that shape?

Translate
muzzammil1-VisitorAuthor
1-Visitor
Apr 3, 2019 6:24 AM UTC

@ashaban Thank you. I hope this will help me

Translate