棒読みちゃんへ接続するためのクラス。
Inheritance: IDisposable
 void StopBoyomi()
 {
     try
     {
         var BouyomiChan = new BouyomiChanClient();
         int taskId = BouyomiChan.AddTalkTask2("むおん");
         BouyomiChan.Dispose();
     }
     catch
     {
     }
 }
Example #2
0
        /// <summary>
        /// 初期化
        /// </summary>
        private void init()
        {
            if (disposed)
            {
                return;
            }

            // 棒読みちゃんクライアント
            bouyomiChanClient = new BouyomiChanClient();
        }
Example #3
0
        /// <summary>
        /// 使用中のリソースをすべてクリーンアップします。
        /// </summary>
        /// <param name="disposing">マネージ リソースが破棄される場合 true、破棄されない場合は false です。</param>
        protected virtual void Dispose(bool disposing)
        {
            if (!disposed)
            {
                // 棒読みちゃんクライアント破棄処理
                if (bouyomiChanClient != null)
                {
                    bouyomiChanClient.Dispose();
                    bouyomiChanClient = null;
                }

                disposed = true;
            }
        }
 public BouyomiClientWrapper()
     : base()
 {
     this.client = new BouyomiChanClient();
 }
Example #5
0
 public BouyomiClientWrapper()
     : base()
 {
     this.client = new BouyomiChanClient();
     this.config = Config.GetConfig();
 }