function Result() {
	this.code = 0;
	this.desc = '';
	this.params = null; //Hashtable
}

// page
function Page(){
	this.id = '';
	this.current_page = 0;
	this.page_count = 0;
	this.item_per_page = 0;
}

// user 
function User(){
	this.id='';
	this.cid='';
	this.old_username='';
	this.username='';
	this.displayname='';
	this.online='';
}

//folder
function Folder(){
	this.id = '';
	this.fdefault = '';
	this.name ='';
	this.fnew ='';
	this.description='';
	this.display = '';
	this.display_order = '';
	this.comment = '';
	this.privacy = '';
	this.view = '';
}


//category
function Category(){
	this.id = '';
	this.name ='';
}


// VDO
function VDO(){
	this.vdoid = '';
	this.folderid = '';
	this.foldername = '';
	this.folderdisplay = '' ;
	this.foldercomment = '' ;
	this.folderprivacy = '' ;
	this.vdoname = '' ;
	this.vdodescription = '' ;
	this.vdocategory = '' ;
	this.vdoduration = '' ;
	this.vdooriginal_url = '' ;
	this.vdothumbnail_url = '' ;
	this.vdocreation_date = '' ;
	this.vdoplay = '' ;
	this.vdoratingcount = 0 ;
	this.vdorating = '' ;
	this.vdotaggings = '';
	this.vdoisEC = '' ;
	this.vdouser = '' ;
}


function VDOList(){
	this.vdos = '';
	this.vdo_count = 0;
	this.current_page = 0;
	this.page_count = 0;
	this.item_per_page=0;
	this.index_tags = '';
}

// Rating
function vdoRate(){
	this.id = ''
	this.item_id = '';
	this.owner_id = '';
	this.type = '';
	this.count = 0;
	this.value = 0;
}

// Editor Choice
function editorChoice(){
	this.id = ''
	this.item_id = '';
	this.description = '';
	this.url = '';
	this.post_datetime = '';
}

// Editor Choice
function vdotag(){
	this.id = ''
	this.value = '';
}





//photo
function PHOTO(){
	this.photoid = '';
	this.folderid = '';
	this.foldername = '';
	this.folderdisplay = '' ;
	this.foldercomment = '' ;
	this.folderprivacy = '' ;
	this.photoname = '' ;
	this.photodescription = '' ;
	this.photooriginal_url = '' ;
	this.photothumbnail_url = '' ;
	this.photoscrap = '' ;
	this.photoratingcount = 0 ;
	this.photoscrap_counter = '' ;
	this.photopost_datetime = '' ;
	this.photorating = '' ;
	this.phototaggings = '';
	this.photoisEC = '' ;
	this.photouser = '' ;
}

function Photo2(){
	this.id = '';
	this.username = '';
	this.user_id = '';
	this.displayname = '';
	this.name ='';
	this.description = '';
	this.album_id ='';
	this.thumbnail = '';
	this.rating = '';
	this.rating_count = '';
}


function PHOTOList(){
	this.photos = '';
	this.photo_count = 0;
	this.current_page = 0;
	this.page_count = 0;
	this.item_per_page=0;
	this.index_tags = '';
}


//blog
function BLOG(){
	this.blogid = '';
	this.blogname = '' ;
	this.blogdescription = '' ;
	this.blogoriginal_url = '' ;
	this.blogthumbnail_url = '' ;
	this.blogscrap = '' ;
	this.blogratingcount = 0 ;
	this.blogscrap_counter = '' ;
	this.blogpost_datetime = '' ;
	this.blograting = '' ;
	this.blogtaggings = '';
	this.blogisEC = '' ;
	this.bloguser = '' ;
}


function BLOGList(){
	this.blogs = '';
	this.blog_count = 0;
	this.current_page = 0;
	this.page_count = 0;
	this.item_per_page=0;
	this.index_tags = '';
}

function RantingValue(){
	this.id = '';
	this.owner_id = '';
	this.ratingcount = 0;
	this.ratingvalue = 0;
}
