public VideoLocal_PlaceVM(Contract_VideoLocal_Place contract)
 {
     this.VideoLocal_Place_ID = contract.VideoLocal_Place_ID;
     this.VideoLocalID = contract.VideoLocalID;
     this.FilePath = contract.FilePath;
     this.ImportFolderID = contract.ImportFolderID;
     this.ImportFolderType = contract.ImportFolderType;
     ImportFolder = new ImportFolderVM(contract.ImportFolder);
 }
示例#2
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);
        }
示例#3
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);
        }
示例#4
0
        public void RefreshImportFolders()
        {
            ImportFolders.Clear();

            if (!ServerOnline)
            {
                return;
            }
            try
            {
                List <JMMServerBinary.Contract_ImportFolder> importFolders = Instance.clientBinaryHTTP.GetImportFolders();

                foreach (JMMServerBinary.Contract_ImportFolder ifolder in importFolders)
                {
                    ImportFolderVM grpNew = new ImportFolderVM(ifolder);
                    ImportFolders.Add(grpNew);
                }
            }
            catch (Exception ex)
            {
                BaseConfig.MyAnimeLog.Write("RefreshImportFolders: " + ex.ToString());
            }
        }
示例#5
0
        public void RefreshImportFolders()
        {
            ImportFolders.Clear();

            if (!ServerOnline) return;
            try
            {
                List<JMMServerBinary.Contract_ImportFolder> importFolders = Instance.clientBinaryHTTP.GetImportFolders();

                foreach (JMMServerBinary.Contract_ImportFolder ifolder in importFolders)
                {
                    ImportFolderVM grpNew = new ImportFolderVM(ifolder);
                    ImportFolders.Add(grpNew);
                }
            }
            catch (Exception ex)
            {
                BaseConfig.MyAnimeLog.Write("RefreshImportFolders: " + ex.ToString());
            }
        }