public MovieFileData(IMovieFileData data) { Key = data.Identifier; Path = data.Path; Size = data.Size; Hash = data.Hash; m_labels = data.Labels; }
private bool HasUsm(IMovieFileData data) { if (data == null) { return(false); } // バージョン不一致 if (!m_cacheDB.IsSameVersion(data)) { return(false); } if (IsBreakFile(data.Path, data.Size)) { return(false); } return(true); }
public static string ToDetail(this IMovieFileData self) { ms_builder.Length = 0; ms_builder .AppendLine("[Path]") .AppendLine(self.Path) .AppendFormat("Hash : {0}", self.Hash).AppendLine() .AppendLine() .AppendFormat("Size : {0}MB({1})", self.Size / 1024 / 1024, self.Size).AppendLine() .AppendLine() ; ms_builder.AppendLine("[Labels]"); foreach (var label in self.Labels) { ms_builder.Append(" -").AppendLine(label); } return(ms_builder.ToString()); }
public static IAccessLocation ToLocation(this IMovieFileData self, IAccessPoint storage) { return(storage.ToLocation(self.Path)); }
public void Add(IMovieFileData data) { m_list.Add(new MovieFileData(data)); }
public IAccessLocation GetServerLocation(IMovieFileData data) { return(data.ToLocation(m_server)); }
public IAccessLocation GetSaveLocation(IMovieFileData data) { return(data.ToLocation(m_storage)); }