Naanou.Common
Structure Metadata

Metadata - an piece of meta information about a file. Properties should only be read from.

Field Summary
Naanou.Common.Metadata Empty
         Empty metadata
string Hash
         Distillled, hashed value of Keyword:Value (e.g album:big calm)
bool Indexed
         Should data be indexed in Naanou (otherwise it is just used for filtering)
string Keyword
         Keyword
string Value
         Value. Will only ever save first 200 chars

Constructor Summary
Metadata(string keyword, string val)
         Indexed metadata
Metadata(string keyword, string val, bool indexed)
         Indexed metadata
Metadata(string keyword, string val, string valHash, bool indexed)
         Indexed metadata

Property Summary
bool IsEmpty
         Is this metadata empty?

Methods inherited from class System.ValueType
Equals, GetHashCode, ToString

Methods inherited from class System.Object
Finalize, GetType, MemberwiseClone


Field Detail

Empty

public Naanou.Common.Metadata Empty

Empty metadata


Hash

public string Hash

Distillled, hashed value of Keyword:Value (e.g album:big calm)


Indexed

public bool Indexed

Should data be indexed in Naanou (otherwise it is just used for filtering)


Keyword

public string Keyword

Keyword


Value

public string Value

Value. Will only ever save first 200 chars

Constructor Detail

Metadata

public Metadata(string keyword,
                string val)

Indexed metadata

Parameters:
keyword - Keyword
val - Associated value

Metadata

public Metadata(string keyword,
                string val,
                bool indexed)

Indexed metadata

Parameters:
keyword - Keyword
val - Associated value
indexed - Should data be indexed

Metadata

public Metadata(string keyword,
                string val,
                string valHash,
                bool indexed)

Indexed metadata

Parameters:
keyword - Keyword
val - Associated value
indexed - Should data be indexed
valHash - Pre-computed hash serial for value
Property Detail

IsEmpty

public bool IsEmpty

Is this metadata empty?