SRNicoNico.ViewModels.VideoViewModel.VideoViewModel C# (CSharp) Метод

VideoViewModel() публичный Метод

public VideoViewModel ( string videoUrl, PlayListViewModel playList = null ) : System.Threading.Tasks
videoUrl string
playList PlayListViewModel
Результат System.Threading.Tasks
        public VideoViewModel(string videoUrl, PlayListViewModel playList = null) : base(videoUrl.Substring(30)) {

            PlayList = playList;

            if(videoUrl.Contains("?")) {

                videoUrl = videoUrl.Split('?')[0];
                Name = videoUrl.Substring(30);
            }

            VideoUrl = videoUrl;
            Cmsid = Name;

            Mylist = new VideoMylistViewModel(this);
            Comment = new VideoCommentViewModel(this);
            Handler = new VideoFlashHandler(this);
            Time = new VideoTime();
            VideoData = new VideoData();
            InitializeView();
        }