public void SetPointOfInterest(string key, string value) { var e = Event(key); if (e == null) { _object["events"].AddObject(key, ArtiObject.Create("{}")); e = new ArtiSwInstanceEvent(Name, key, _object["events"][key]); _events.Add(e); } e.EnsureValue("POI", value); e.PointOfInterest = value; }
private static string NameFor(ArtiSwInstance inst, ArtiSwInstanceEvent evt) { return($"{inst.Name}.{evt.Name}"); }