/// <summary>
        /// コンストラクタ
        /// </summary>
        /// <param name="inChannelId">チャンネルID</param>
        public YoutubeLiveController(string inChannelId, string inAPIKey)
        {
            //自分のチャンネルID、api使って情報取る際に使う
            MyChannelId = inChannelId;

            LiveComments          = new Dictionary <string, LiveChatMessage>();
            SubscriptionNameAndId = new Dictionary <string, string>();
            LiveChatIds           = new Dictionary <string, string>();

            //DB接続、チャンネルとか取る
            dataBaseAccess = new DataBaseAccess();
            var channels = dataBaseAccess.GetChannels();

            //var streams  = dataBaseAccess.GetYoutubeLiveStreamInfo();
            //dataBaseAccess.GetYoutubeLiveComments(streams[0]);

            //DBから取ってきた取得済みチャンネルリスト
            Channels = new List <Channels>();
            Channels.AddRange(channels);

            YoutubeLiveStreamInfos = new List <YoutubeLiveStreamInfo>();
            ApiService             = new YoutubeApiService(inAPIKey);
        }
 public SubscriptionMenuModel(DataBaseAccess inDataBaseAccess, YoutubeApiService inYoutubeApiService)
 {
     m_DataBaseAccess    = inDataBaseAccess;
     m_YoutubeApiService = inYoutubeApiService;
     m_Channels          = new List <Channels>();
 }
 public SubscriptionMenuModel()
 {
     m_DataBaseAccess    = null;
     m_YoutubeApiService = null;
     m_Channels          = new List <Channels>();
 }