public void Setup() { network_ = new NicoNetwork(); msgout_ = new TestMessageOut(); cancel_object_ = new CancelObject(); network_manager_ = new NicoNetworkManager(network_, msgout_, cancel_object_); NicoTools.NicoNetworkManager.StringDelegate string_delegate = delegate(string str) { Console.WriteLine(str); }; network_manager_.SetDelegateSetDonwloadInfo(string_delegate); }
public NicoRankManager(NicoRankManagerMsgReceiver msg_receiver) { msg_receiver_ = msg_receiver; nico_download_ = new NicoNetworkManager(niconico_network_, msg_receiver_, cancel_object_); video_translater_ = new VideoConverter(msg_receiver_, cancel_object_); nico_list_manager_ = new NicoListManager(msg_receiver_); nico_mylist_ = new NicoMylist(niconico_network_, msg_receiver_, cancel_object_); tag_manager_ = new NicoTagManager(niconico_network_, msg_receiver_, cancel_object_); comment_manager_ = new NicoCommentManager(niconico_network_, msg_receiver_, cancel_object_); nico_download_.SetDelegateSetDonwloadInfo(msg_receiver_.SetDownloadInfo); }