﻿// ----------------------------------------------
// File:		StateSnapshot.js
// Author:		Nathan Derksen
// Description:	Value Object - stores model information about one particular set of product data
// ----------------------------------------------

function LocationsStateSnapshotVO()
{
	this.searchTerms = "";
	this.popup = "";
	this.flash = "";
	this.mapMode = "splitList";
	this.listMode = "map";
	this.latitude = "";
	this.longitude = "";
	this.zoomLevel = "";
	this.directionsAddress = "";
	this.directionsMode = "to";
	this.infoDirectionsOpen = false;
	this.storeId = "";
	this.infoWindowId = "";
	this.infoTab = 0;
}


LocationsStateSnapshotVO.prototype.toString = function()
{
	var str = "";
	str += "searchTerms:             " + this.searchTerms + "\n";
	str += "popup:                   " + this.popup + "\n";
	str += "flash:                   " + this.flash + "\n";
	str += "mapMode:                 " + this.mapMode + "\n";
	str += "listMode:                " + this.listMode + "\n";
	str += "latitude:                " + this.latitude + "\n";
	str += "longitude:               " + this.longitude + "\n";
	str += "zoomLevel:               " + this.zoomLevel + "\n";
	str += "directionsAddress:       " + this.directionsAddress + "\n";
	str += "directionsMode:          " + this.directionsMode + "\n";
	str += "infoDirectionsOpen:      " + this.infoDirectionsOpen + "\n";
	str += "storeId:                 " + this.storeId + "\n";
	str += "infoWindowId:            " + this.infoWindowId + "\n";
	str += "infoTab:                 " + this.infoTab + "\n";	
	
	return str;
};