Duplicate File Locator 1.0
Loading...
Searching...
No Matches
ProofOfConcept.DuplicatedImage Class Reference

Public Member Functions

 DuplicatedImage ()
 DuplicatedImage (string hash)
 DuplicatedImage (string hash, string duplicatePath)
 DuplicatedImage (string hash, string originalPath, List< string > duplicateImages)
void AddDuplicate (string path)
override string ToString ()

Properties

string Hash [get]
string OriginalPath [get, set]
List< string > DuplicateImages [get]

Detailed Description

Definition at line 11 of file DuplicatedImage.cs.

Constructor & Destructor Documentation

◆ DuplicatedImage() [1/4]

ProofOfConcept.DuplicatedImage.DuplicatedImage ( )

Definition at line 37 of file DuplicatedImage.cs.

38 {
39 _hash = string.Empty;
40 _originalPath = string.Empty;
41 _duplicateImages = new List<string>();
42 }

◆ DuplicatedImage() [2/4]

ProofOfConcept.DuplicatedImage.DuplicatedImage ( string hash)

Definition at line 44 of file DuplicatedImage.cs.

44 : this()
45 {
46 _hash = hash;
47 }

◆ DuplicatedImage() [3/4]

ProofOfConcept.DuplicatedImage.DuplicatedImage ( string hash,
string duplicatePath )

Definition at line 49 of file DuplicatedImage.cs.

49 : this(hash)
50 {
51 DuplicateImages.Add(duplicatePath);
52 }

◆ DuplicatedImage() [4/4]

ProofOfConcept.DuplicatedImage.DuplicatedImage ( string hash,
string originalPath,
List< string > duplicateImages )

Definition at line 55 of file DuplicatedImage.cs.

55 : this(hash)
56 {
57 _originalPath = originalPath;
58 _duplicateImages = duplicateImages;
59 }

Member Function Documentation

◆ AddDuplicate()

void ProofOfConcept.DuplicatedImage.AddDuplicate ( string path)

Definition at line 61 of file DuplicatedImage.cs.

62 {
63 if (!_duplicateImages.Contains(path))
64 _duplicateImages.Add(path);
65 }

◆ ToString()

override string ProofOfConcept.DuplicatedImage.ToString ( )

Definition at line 67 of file DuplicatedImage.cs.

68 {
69 string output = "Hash : " + _hash + "\nOriginal : " + _originalPath + "\nDuplicates : \n";
70 foreach (string image in _duplicateImages)
71 {
72 output += "\t\t" + image + "\n";
73 }
74 return output;
75 }

Property Documentation

◆ DuplicateImages

List<string> ProofOfConcept.DuplicatedImage.DuplicateImages
get

Definition at line 32 of file DuplicatedImage.cs.

33 {
34 get { return _duplicateImages; }
35 }

◆ Hash

string ProofOfConcept.DuplicatedImage.Hash
get

Definition at line 18 of file DuplicatedImage.cs.

19 {
20 get { return _hash; }
21 private set { _hash = value; }
22 }

◆ OriginalPath

string ProofOfConcept.DuplicatedImage.OriginalPath
getset

Definition at line 25 of file DuplicatedImage.cs.

26 {
27 get { return _originalPath; }
28 set { _originalPath = value; }
29 }

The documentation for this class was generated from the following file: