コード例 #1
0
 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
ファイル: VideoLocalVM.cs プロジェクト: dizzydezz/jmm
        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
ファイル: JMMServerVM.cs プロジェクト: ewelike23/jmm
        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
ファイル: JMMServerVM.cs プロジェクト: dizzydezz/jmm
        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());
            }
        }