C# Class Persistence.KademliaKeyword

Class used to represent a keyword inside Kademlia Network. A kademlia keyword has one or more tags associated.
Inheritance: IDocumentType, ILoadable
Show file Open project: zencoders/sambatyon Class Usage Examples

Public Methods

Method Description
GetAsDatabaseType ( ) : dynamic

Returns the object itself because it's ready to be loaded in the repository (and implements IDocumentType!)

GetDatabaseType ( ) : Type

Returns the Type of the KadmeliaKeyword class.

KademliaKeyword ( ) : System

Default keyword constructor.

KademliaKeyword ( string key ) : System

Main keyword constructor. This just initializes the fields with the given values

LoadFromDatabaseType ( dynamic data ) : bool

Loads keyword information from a dynamic object loaded from repository

Method Details

GetAsDatabaseType() public method

Returns the object itself because it's ready to be loaded in the repository (and implements IDocumentType!)
public GetAsDatabaseType ( ) : dynamic
return dynamic

GetDatabaseType() public method

Returns the Type of the KadmeliaKeyword class.
public GetDatabaseType ( ) : Type
return System.Type

KademliaKeyword() public method

Default keyword constructor.
public KademliaKeyword ( ) : System
return System

KademliaKeyword() public method

Main keyword constructor. This just initializes the fields with the given values
public KademliaKeyword ( string key ) : System
key string keyword itself used as identifier
return System

LoadFromDatabaseType() public method

Loads keyword information from a dynamic object loaded from repository
public LoadFromDatabaseType ( dynamic data ) : bool
data dynamic Data Object loaded from repository
return bool