예제 #1
0
        public VideoLocalVM(JMMServerBinary.Contract_VideoLocal contract)
        {
            this.CRC32           = contract.CRC32;
            this.DateTimeUpdated = contract.DateTimeUpdated;
            this.FilePath        = contract.FilePath;
            this.FileSize        = contract.FileSize;
            this.Hash            = contract.Hash;
            this.HashSource      = contract.HashSource;
            this.ImportFolderID  = contract.ImportFolderID;
            this.IsWatched       = contract.IsWatched;
            this.IsIgnored       = contract.IsIgnored;
            this.MD5             = contract.MD5;
            this.SHA1            = contract.SHA1;
            this.VideoLocalID    = contract.VideoLocalID;
            this.WatchedDate     = contract.WatchedDate;

            ImportFolder = new ImportFolderVM(contract.ImportFolder);
        }
예제 #2
0
 public VideoLocalVM(JMMServerBinary.Contract_VideoLocal contract)
 {
     this.CRC32           = contract.CRC32;
     this.DateTimeUpdated = contract.DateTimeUpdated;
     this.FileName        = contract.FileName;
     this.FileSize        = contract.FileSize;
     this.Hash            = contract.Hash;
     this.HashSource      = contract.HashSource;
     this.IsWatched       = contract.IsWatched;
     this.IsIgnored       = contract.IsIgnored;
     this.IsVariation     = contract.IsVariation;
     this.ResumePosition  = contract.ResumePosition;
     this.MD5             = contract.MD5;
     this.SHA1            = contract.SHA1;
     this.VideoLocalID    = contract.VideoLocalID;
     this.WatchedDate     = contract.WatchedDate;
     this.Media           = contract.Media;
     this.Duration        = contract.Duration;
     this.Places          = contract.Places.Select(a => new VideoLocal_PlaceVM(a)).ToList();
 }