コード例 #1
0
ファイル: SongList.cs プロジェクト: lordofire/vocadb
        public virtual ArchivedSongListVersion CreateArchivedVersion(SongListDiff diff, AgentLoginData author, EntryEditEvent reason)
        {
            var archived = new ArchivedSongListVersion(this, diff, author, reason);

            ArchivedVersionsManager.Add(archived);

            return(archived);
        }
コード例 #2
0
        public virtual ArchivedSongListVersion CreateArchivedVersion(SongListDiff diff, AgentLoginData author, EntryEditEvent reason, string notes)
        {
            var archived = new ArchivedSongListVersion(this, diff, author, Status, reason, notes);

            ArchivedVersionsManager.Add(archived);
            Version++;

            return(archived);
        }
コード例 #3
0
        public ArchivedSongListVersion(SongList songList, SongListDiff diff, AgentLoginData author,
                                       EntryStatus status,
                                       EntryEditEvent commonEditEvent, string notes)
            : base(null, author, songList.Version, status, notes)
        {
            ParamIs.NotNull(() => diff);

            SongList        = songList;
            Diff            = diff;
            CommonEditEvent = commonEditEvent;
        }
コード例 #4
0
        public ArchivedSongListVersion(SongList songList, SongListDiff diff, AgentLoginData author,
                                       EntryEditEvent commonEditEvent)
            : base(null, author, 0, EntryStatus.Finished, string.Empty)
        {
            ParamIs.NotNull(() => diff);

            SongList        = songList;
            Diff            = diff;
            CommonEditEvent = commonEditEvent;

            Status = EntryStatus.Finished;
        }