Naanou.LookupService
Class ModManager

Field Summary
int CACHE_KARMA_MINUTES
System.Collections.Hashtable cachedKarma
int INITIAL_START
System.DateTime lastModerateAction
int MODERATE_MAX_SPEED_MINUTES
int MODERATION_KEY_EXPIRY_MINUTES
Naanou.LookupService.Node node
int ownKarma

Constructor Summary
ModManager(Naanou.LookupService.Node node)

Method Summary
bool CanModerate(int k)
int LookupKarma(Naanou.Common.BasicAddress address)
         Looks up the karma for an address, or INITIAL_START if unavailable
void Moderate(Naanou.Common.BasicAddress address, int k)

Methods inherited from class System.Object
Equals, Finalize, GetHashCode, GetType, MemberwiseClone, ToString


Field Detail

CACHE_KARMA_MINUTES

public int CACHE_KARMA_MINUTES


cachedKarma

private System.Collections.Hashtable cachedKarma


INITIAL_START

private int INITIAL_START


lastModerateAction

private System.DateTime lastModerateAction


MODERATE_MAX_SPEED_MINUTES

private int MODERATE_MAX_SPEED_MINUTES


MODERATION_KEY_EXPIRY_MINUTES

private int MODERATION_KEY_EXPIRY_MINUTES


node

private Naanou.LookupService.Node node


ownKarma

private int ownKarma

Constructor Detail

ModManager

public ModManager(Naanou.LookupService.Node node)

Method Detail

CanModerate

public bool CanModerate(int k)


LookupKarma

public int LookupKarma(Naanou.Common.BasicAddress address)

Looks up the karma for an address, or INITIAL_START if unavailable

Parameters:
address -
Returns:

Moderate

public void Moderate(Naanou.Common.BasicAddress address,
                     int k)