예제 #1
0
 public SpeechControllerState(SpeechControllerState copyFrom)
 {
     session          = copyFrom.session;
     errorCode        = copyFrom.errorCode;
     recognizedSpeech = copyFrom.recognizedSpeech;
     sequenceNumber   = copyFrom.sequenceNumber;
 }
예제 #2
0
 public SpeechControllerState()
 {
     session          = SCSession.Inactive;
     errorCode        = SCErrorCode.no_error;
     recognizedSpeech = "";
     sequenceNumber   = -2;
 }
예제 #3
0
 public void CopyFrom(SpeechControllerState other)
 {
     session          = other.session;
     errorCode        = other.errorCode;
     recognizedSpeech = other.recognizedSpeech;
     sequenceNumber   = other.sequenceNumber;
 }
예제 #4
0
        public void RequestRegisterClose()
        {
            // arrange
            var session = new SCSession("scdemo://shortcut.sc/demo/73734?sc_link_id=2cjog8");
            var client  = new SCServerRequestRegisterClose(session);

            // act
            var response = client.DoRequest();

            // assert
            Assert.IsNotNull(response);
            Assert.AreNotEqual(response, String.Empty);
            StringAssert.Contains(response, ":");
        }
예제 #5
0
        public void RequestRegisterFirstOpen()
        {
            // arrange
            var session = new SCSession();
            var client  = new SCServerRequestRegisterFirstOpen(session);

            // act
            var response = client.DoRequest();

            // assert
            Assert.IsNotNull(response);
            Assert.AreNotEqual(response, String.Empty);
            StringAssert.Contains(response, ":");
        }