/**
 * This class represent a model video in javascript side.
 * Compatible : IE, Firefox, Safari, Opera
 * @package DHL::CONTENT
 * @author Inoveo technologie inc.
 */
if (DHL == undefined) var DHL = {};
if (DHL.CONTENT == undefined) DHL.CONTENT = {};
(DHL.CONTENT.RATING_ENTRY = function () {

	this.intRatingConfigId = 0;
	this.intId = 0;
	this.intUserId = 0;
	this.intSiteId = 0;
	this.intValue = 0;
	
	DHL.CONTENT.RATING_ENTRY.prototype.__wakeUp = function __wakeUp(arrData) {
		this.intId = arrData["intId"];
		this.intUserId = arrData["intUserId"];
		this.intValue = arrData["intValue"];
		this.intSiteId = arrData["inSiteId"];
	}
		
	DHL.CONTENT.RATING_ENTRY.prototype.getObjectKey = function getObjectKey() {
		return "DHL.CONTENT.RATING_ENTRY[" + this.intId + "]";
	}
	
	DHL.CONTENT.RATING_ENTRY.prototype.getValue = function getValue() {
		return this.intValue;
	}
	DHL.CONTENT.RATING_ENTRY.prototype.setValue = function setValue(intValue) {
		this.intValue = intValue;
	}
	
	DHL.CONTENT.RATING_ENTRY.prototype.getUserId = function getUserId() {
		return this.intUserId;
	}
	
	DHL.CONTENT.RATING_ENTRY.prototype.getSiteId = function getSiteId() {
		return this.intSiteId;
	}
	
	DHL.CONTENT.RATING_ENTRY.prototype.getId = function getId() {
		return this.intId;
	}
	
	DHL.CONTENT.RATING_ENTRY.prototype.getConfigId = function getConfigId() {
		return this.intRatingConfigId;
	}

	// Static members definition {{{

	if (DHL.CONTENT.RATING_ENTRY.className == undefined) { 

		var arrInstance = new Object();

		DHL.CONTENT.RATING_ENTRY.wakeup = function(arrData) {
			var objRatingEntry = arrInstance[arrData['intId']];
			if (objRatingEntry == undefined) {
				objRatingEntry = new DHL.CONTENT.RATING_ENTRY();
				objRatingEntry.__wakeUp(arrData);
				arrInstance[arrData['intId']] = objRatingEntry;
			}
			return objRatingEntry;
		}

		DHL.CONTENT.RATING_ENTRY.unmap = function unmap(strAlias, arrData) {
			objRatingEntry = new DHL.CONTENT.RATING_ENTRY();
			objRatingEntry.intRatingConfigId = arrData[strAlias + "ratingConfigId"];
			objRatingEntry.intId = arrData[strAlias + "id"];
			objRatingEntry.intUserId = arrData[strAlias + "userId"];
			objRatingEntry.intSiteId = arrData[strAlias + "siteId"];
			objRatingEntry.intValue = arrData[strAlias + "value"];
			
			return objRatingEntry;
		}

		DHL.CONTENT.RATING_ENTRY.getInstance = function (intId) {
			return arrInstance[intId];
		}

		DHL.CONTENT.RATING_ENTRY.className = 'DHL.CONTENT.RATING_ENTRY';
		DHL.CONTENT.RATING_ENTRY.prototype.className = 'DHL.CONTENT.RATING_ENTRY';
	}

	// }}}
	
	this.jsClass = DHL.CONTENT.RATING_ENTRY;
	
})(); 