ds/MenuItem.js

/**
 * @fileoverview Exposed data type for use outside of VdsClient.
 *               All properties should be exposed to allow use from uncompiled
 *               code.
 *
 * @author anders.rejdebrant@spark-vision.com (Anders Rejdebrant)
 */

goog.provide('spv.ds.MenuItem');

goog.require('spv.ds.DisplayPrice');




/**
 * @export
 * @struct
 * @constructor
 * @param {string} category
 * @param {string} id
 * @param {boolean} visible
 * @param {boolean} selected
 * @param {boolean} disabled
 * @param {string} short_text
 * @param {string} medium_text
 * @param {string} long_text
 * @param {string} detail_text
 * @param {boolean} has_long_text
 * @param {string} gui_group
 * @param {spv.ds.DisplayPrice} price
 * @param {string} price_text
 * @param {string} icon
 * @param {string} swf
 * @param {string} movie
 * @param {string} image
 * @param {string} background_image
 * @param {string} music
 * @param {?number} loan
 */
spv.ds.MenuItem = function(
	category,
	id,
	visible,
	selected,
	disabled,
	selectable,
	short_text,
	medium_text,
	long_text,
	detail_text,
	has_long_text,
	gui_group,
	price,
	price_text,
	icon,
	swf,
	movie,
	image,
	background_image,
	music,
	loan)
{
	/**
	 * @type {string}
	 * @nocollapse
	 */
	this.category = category;

	/**
	 * @type {string}
	 * @nocollapse
	 */
	this.id = id;

	/**
	 * @type {boolean}
	 * @nocollapse
	 */
	this.visible = visible;

	/**
	 * @type {boolean}
	 * @nocollapse
	 */
	this.selected = selected;

	/**
	 * @type {boolean}
	 * @nocollapse
	 */
	this.selectable = selectable;

	/**
	 * @type {boolean}
	 * @nocollapse
	 */
	this.disabled = disabled;

	/**
	 * @type {string}
	 * @nocollapse
	 */
	this.short_text = short_text;

	/**
	 * @type {string}
	 * @nocollapse
	 */
	this.medium_text = medium_text;

	/**
	 * @type {string}
	 * @nocollapse
	 */
	this.detail_text = detail_text;

	/**
	 * @type {string}
	 * @nocollapse
	 */
	this.long_text = long_text;

	/**
	 * @type {boolean}
	 * @nocollapse
	 */
	this.has_long_text = has_long_text;

	/**
	 * @type {string}
	 * @nocollapse
	 */
	this.gui_group = gui_group;

	/**
	 * Please refer to the spv.ds.DisplayPrice documentation.
	 * @type {spv.ds.DisplayPrice}
	 * @nocollapse
	 */
	this.price = price;

	/**
	 * @type {string}
	 * @deprecated Use the price {spv.ds.DisplayPrice} property instead.
	 * @nocollapse
	 */
	this.price_text = price_text;

	/**
	 * @type {string}
	 * @nocollapse
	 */
	this.icon = icon;

	/**
	 * @type {string}
	 * @nocollapse
	 */
	this.swf = swf;

	/**
	 * @type {string}
	 * @nocollapse
	 */
	this.movie = movie;

	/**
	 * @type {string}
	 * @nocollapse
	 */
	this.image = image;

	/**
	 * @type {string}
	 * @nocollapse
	 */
	this.background_image = background_image;

	/**
	 * @type {string}
	 * @nocollapse
	 */
	this.music = music;

	/**
	 * @type {?number}
	 * @nocollapse
	 */
	this.loan = loan;
};