internal void UnsubscribeEvent(LinkUpEventLabel linkUpEventLabel) { LinkUpEventUnsubscribeRequest eventUnsubscribeRequest = new LinkUpEventUnsubscribeRequest(); eventUnsubscribeRequest.Identifier = linkUpEventLabel.ChildIdentifier; _Connector?.SendPacket(eventUnsubscribeRequest.ToPacket()); }
internal static LinkUpLabel CreateNew(LinkUpLabelType type, byte[] options) { switch (type) { case LinkUpLabelType.Node: return(null); case LinkUpLabelType.Function: return(LinkUpFunctionLabel.CreateNew(options)); case LinkUpLabelType.Event: return(LinkUpEventLabel.CreateNew(options)); case LinkUpLabelType.Property: return(LinkUpPropertyLabelBase.CreateNew(options)); default: return(null); } }