Exemplo n.º 1
0
 public static ListeningMode Chose(EListeningMode peListeningMode, Device poDevice)
 {
     return(new ListeningMode()
     {
         CommandMessage = "LMD{0}".FormatWith(((int)peListeningMode).ConverIntValueToHexString())
     });
 }
Exemplo n.º 2
0
        public void EListeningModeTest()
        {
            EListeningMode le = EListeningMode.DIRECT;

            Assert.AreEqual(le.ToString(), le.ToDescription());
            le = EListeningMode.ACTION;
            Assert.AreEqual("ACTION Game-Action", le.ToDescription());
        }
Exemplo n.º 3
0
        public override bool Match(string psStatusMessage)
        {
            var loMatch = Regex.Match(psStatusMessage, @"!1LMD(\w\w)");

            if (loMatch.Success)
            {
                this.CurrentListeningMode = loMatch.Groups[1].Value.ConvertHexValueToInt().ToEnum <EListeningMode>();
                return(true);
            }
            return(false);
        }
Exemplo n.º 4
0
        public void ToEnum1Test()
        {
            EListeningMode le = "STUDIOMIX".ToEnum <EListeningMode>();

            Assert.AreEqual(EListeningMode.STUDIOMIX, le);
        }