private VersionDataProxy(string versionHash, string filepath, string filename, Stream data, DirectoryStructure directory) : base(filename, data, "") { this.directory = directory; this.versionHash = versionHash; this.filepath = filepath; }
/// <param name="hash">The hash of this Version</param> /// <param name="directory">The directory to load dependencies</param> /// <param name="changelog">An optional changelog to load VersionData hashes</param> public VersionProxy(string hash, DirectoryStructure directory, Changelog changelog = null) : base(null, hash) { this.directory = directory; this.changelog = changelog; }
/// <param name="hash">This Commit's hash</param> /// <param name="directory">The directory to load dependencies</param> public CommitProxy(string hash, DirectoryStructure directory) : base((Commit[])null, null, null, null, hash) { this.directory = directory; }
/// <param name="hash">The changelog's hash</param> /// <param name="directory">The directory to load dependencies</param> public ChangelogProxy(string hash, DirectoryStructure directory) : base(hash) { changelog = null; this.directory = directory; }
/// <summary> /// /// </summary> /// <param name="versionHash">The identifier of the version the data is contained in</param> /// <param name="filepath">The relative path from the top level version folder</param> /// <param name="directory"></param> /// <returns></returns> public static VersionDataProxy Create(string versionHash, string filepath, string filename, DirectoryStructure directory, string hash) { return(new VersionDataProxy(versionHash, filepath, filename, (Stream)null, directory, hash)); }