/**
 * 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.FAVORITE_ENTRY = function () {

	this.intId = 0;
	this.intUserId = 0;
	this.intSiteId = 0;
	this.intOwnedClassId = 0;
	this.intOwnedObjectId = 0;
	this.intMediaSectionId = 0;

	DHL.CONTENT.FAVORITE_ENTRY.prototype.__wakeUp = function __wakeUp(arrData) {
		this.intId = arrData['intId'];
		this.intUserId = arrData['intUserId'];
		this.intSiteId = arrData['intSiteId'];
		this.intOwnedClassId = arrData['intOwnedClassId'];
		this.intOwnedObjectId = arrData['intOwnedObjectId'];
		this.intMediaSectionId = arrData['intMediaSectionId'];
	}

	DHL.CONTENT.FAVORITE_ENTRY.prototype.getId = function getId() {
		return this.intId;
	}

	DHL.CONTENT.FAVORITE_ENTRY.prototype.getObjectKey = function getObjectKey() {
		return "DHL.CONTENT.FAVORITE_ENTRY[" + this.intId + "]";
	}

	DHL.CONTENT.FAVORITE_ENTRY.prototype.getUserId = function getUserId() {
		return this.intUser;
	}

	DHL.CONTENT.FAVORITE_ENTRY.prototype.getSiteId = function getSiteId() {
		return this.intSiteId;
	}
	
	DHL.CONTENT.FAVORITE_ENTRY.prototype.getOwnedClassId = function getOwnedClassId() {
		return this.intOwnedClassId;
	}
	
	DHL.CONTENT.FAVORITE_ENTRY.prototype.getOwnedObjectId = function getOwnedObjectId() {
		return this.intOwnedObjectId;
	}

	DHL.CONTENT.FAVORITE_ENTRY.prototype.getMediaSectionId = function getMediaSectionId() {
		return this.intMediaSectionId;
	}

	// Static members definition {{{

	if (DHL.CONTENT.FAVORITE_ENTRY.className == undefined) { 

		var arrInstance = new Object();

		DHL.CONTENT.FAVORITE_ENTRY.wakeup = function(arrData) {
			var objFavoriteEntry = arrInstance[arrData['intId']];
			if (objFavoriteEntry == undefined) {
				objFavoriteEntry = new DHL.CONTENT.FAVORITE_ENTRY();
				objFavoriteEntry.__wakeUp(arrData);
				arrInstance[arrData['intId']] = objFavoriteEntry;
			}
			return objFavoriteEntry;
		}

		DHL.CONTENT.FAVORITE_ENTRY.unmap = function unmap(strAlias, arrData) {
			objFavoriteEntry = new DHL.CONTENT.FAVORITE_ENTRY();
			objFavoriteEntry.intId = arrData[strAlias + "id"];
			objFavoriteEntry.intUserId = arrData[strAlias + "userId"];
			objFavoriteEntry.intSiteId = arrData[strAlias + "siteId"];
			objFavoriteEntry.intOwnedClassId = arrData[strAlias + "ownedClassId"];
			objFavoriteEntry.intOwnedObjectId = arrData[strAlias + "ownedObjectId"];
			objFavoriteEntry.intMediaSectionId = arrData[strAlias + "mediaSectionId"];
			return objFavoriteEntry;
		}

		DHL.CONTENT.FAVORITE_ENTRY.getInstance = function (intId) {
			return arrInstance[intId];
		}

		DHL.CONTENT.FAVORITE_ENTRY.className = 'DHL.CONTENT.FAVORITE_ENTRY';
		DHL.CONTENT.FAVORITE_ENTRY.prototype.className = 'DHL.CONTENT.FAVORITE_ENTRY';
	}

	// }}}
	
	this.jsClass = DHL.CONTENT.FAVORITE_ENTRY;
	
})(); 