Esempio n. 1
0
        internal void GetProperty(LinkUpPropertyLabelBase linkUpPrimitiveBaseLabel)
        {
            LinkUpPropertyGetRequest propertyGetRequest = new LinkUpPropertyGetRequest();

            propertyGetRequest.Identifier = linkUpPrimitiveBaseLabel.ChildIdentifier;
            _Connector?.SendPacket(propertyGetRequest.ToPacket());
        }
Esempio n. 2
0
        internal void SetProperty(LinkUpPropertyLabelBase linkUpPrimitiveBaseLabel, byte[] data)
        {
            LinkUpPropertySetRequest propertySetRequest = new LinkUpPropertySetRequest();

            propertySetRequest.Identifier = linkUpPrimitiveBaseLabel.ChildIdentifier;
            propertySetRequest.Data       = data;
            _Connector?.SendPacket(propertySetRequest.ToPacket());
        }
Esempio n. 3
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);
            }
        }