Esempio n. 1
0
        public override void Process(ViscaRxPacket viscaRxPacket)
        {
#if SSHARP
            if (_completionAction != null)
            {
                _completionAction(EnumBaseType <T> .GetByKey(viscaRxPacket.PayLoad[0]));
            }
#else
            _completionAction?.Invoke(EnumBaseType <T> .GetByKey(viscaRxPacket.PayLoad[0]));
#endif
        }
Esempio n. 2
0
 public override string ToString()
 {
     return(String.Format("Camera{0} {1} set to {2}", this.Destination, _commandName, EnumBaseType <T> .GetByKey(_mode.Value)));
 }