internal void CallFunction(LinkUpFunctionLabel linkUpFunctionLabel, byte[] data) { LinkUpFunctionCallRequest functionCallRequest = new LinkUpFunctionCallRequest(); functionCallRequest.Identifier = linkUpFunctionLabel.ChildIdentifier; functionCallRequest.Data = data; _Connector?.SendPacket(functionCallRequest.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); } }