C# Class FuddleVote, Fuddle

This class handles all up votes and down votes for images.
ファイルを表示 Open project: btevfik/Fuddle

Public Methods

Method Description
FuddleVote ( ) : System
addToDownCount ( int image_id ) : void
addToUpCount ( int image_id ) : void
alreadyCuddled ( System.Guid user_id, int image_id ) : bool
checkIfVoted ( int image_id, System.Guid user_id ) : string
cuddleIt ( System.Guid user_id, int img_id ) : int
dbGarbageCollector ( ) : void
getCuddleCount ( int image_id ) : int
getCuddles ( System.Guid user_id ) : List
getDownCount ( int image_id ) : int
getUpCount ( int image_id ) : int
removeCuddle ( System.Guid user_id, int image_id ) : void
removeFromDownCount ( int image_id ) : void
removeFromUpCount ( int image_id ) : void

Method Details

FuddleVote() public method

public FuddleVote ( ) : System
return System

addToDownCount() public static method

public static addToDownCount ( int image_id ) : void
image_id int
return void

addToUpCount() public static method

public static addToUpCount ( int image_id ) : void
image_id int
return void

alreadyCuddled() public static method

public static alreadyCuddled ( System.Guid user_id, int image_id ) : bool
user_id System.Guid
image_id int
return bool

checkIfVoted() public static method

public static checkIfVoted ( int image_id, System.Guid user_id ) : string
image_id int
user_id System.Guid
return string

cuddleIt() public static method

public static cuddleIt ( System.Guid user_id, int img_id ) : int
user_id System.Guid
img_id int
return int

dbGarbageCollector() public static method

public static dbGarbageCollector ( ) : void
return void

getCuddleCount() public static method

public static getCuddleCount ( int image_id ) : int
image_id int
return int

getCuddles() public static method

public static getCuddles ( System.Guid user_id ) : List
user_id System.Guid
return List

getDownCount() public static method

public static getDownCount ( int image_id ) : int
image_id int
return int

getUpCount() public static method

public static getUpCount ( int image_id ) : int
image_id int
return int

removeCuddle() public static method

public static removeCuddle ( System.Guid user_id, int image_id ) : void
user_id System.Guid
image_id int
return void

removeFromDownCount() public static method

public static removeFromDownCount ( int image_id ) : void
image_id int
return void

removeFromUpCount() public static method

public static removeFromUpCount ( int image_id ) : void
image_id int
return void