コード例 #1
0
        public void can_build_say_string()
        {
            var options = new SayOptions
            {
                ModuleName = "en",
                Gender     = SayGender.Feminine,
                Method     = SayMethod.Iterated,
                Type       = SayType.Number,
                Text       = "1234"
            };

            var toString = options.ToString();

            Assert.Equal("en NUMBER iterated FEMININE 1234", toString);
        }
コード例 #2
0
 public Task Say(SayOptions options)
 {
     return(RunIfAnswered(() => eventSocket.Say(UUID, options)));
 }
コード例 #3
0
 public static Task <EventMessage> Say(this EventSocket eventSocket, string uuid, SayOptions options)
 {
     return(eventSocket.ExecuteApplication(uuid, "say", options.ToString()));
 }