示例#1
0
        internal void UnsubscribeEvent(LinkUpEventLabel linkUpEventLabel)
        {
            LinkUpEventUnsubscribeRequest eventUnsubscribeRequest = new LinkUpEventUnsubscribeRequest();

            eventUnsubscribeRequest.Identifier = linkUpEventLabel.ChildIdentifier;
            _Connector?.SendPacket(eventUnsubscribeRequest.ToPacket());
        }
示例#2
0
        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);
            }
        }