var frontControllerURL = './php/index.php';

function Login(config) {    
	
	this.username = null;
	this.password = null;
	if (config != null){
		this.username = config.username;
		this.password = config.password;
	}	
}

function Dispatcher(config){
	this.action=null;
	this.page=null;
	if (config != null){
		this.page = config.page;
		this.action = config.action;
	}
};

function LookUp(config){
	 this.code=null; 	
	 this.description=null;
	 if (config != null){
			this.code = config.code;
			this.description = config.description;
	 }	 
};

function Password(){
	this.id=null;
    this.email=null; 
    this.password=null; 
    this.newPassword=null;
    this.cfmPassword=null;
};

function UserGroup(){
	this.id=null; 	
	this.name=null;
	this.email=null;
};

function User(){
	this.id=null; 	
	this.firstName=null; 
    this.lastName=null; 
    this.email=null; 
    this.role=null;
    this.type=null;
    this.password=null; 
    this.phoneNumber=null;
    this.level=null;
    this.isActive=null;
    this.newEventAlert=null;
    this.userGroup=null;
};

function Response(){
	this.has_error=null;
	this.errors=null;
	this.result=null;
	this.warning=null;
};

function Error(){
	this.id=null;
	this.message=null;
}

function Event(){
	this.id = null;
	this.description = null;
	this.startDate = null;
	this.endDate = null;
	this.cost = null;
	this.spaceLimit = null;
	this.minRequired = null;
	this.location = null;
	this.recurGroupId = null;
	this.frequency = null;
	this.occurrence = null;
	this.attendance = null;
	this.notify = null;
	this.restrictLevel = null;
	this.notes = null;
        this.alert = null;
}

function HomeEvent(){	
	this.id = null;
	this.description = null;
	this.startDate = null;
	this.endDate = null;
	this.cost = null;
	this.spaceLimit = null;
	this.location = null;
	this.restrictLevel = null;  
	this.notes = null;
	this.spaceRemain = null;  
}

function Location(){	
	this.id = null;
	this.name = null;
	this.address1 = null;
	this.address2 = null;
	this.city = null;
	this.postalCd = null;	
	this.province = null;	
}

function Attendance(){
	this.eventId = null;
	this.userId = null;
	this.isRegular = null;
	this.freeSpaceAlert = null;
	this.statusCd = null;
}

function EventAttendance(){
	this.eventId = null;
	this.user = null;
	this.isRegular = null;
	this.freeSpaceAlert = null;
	this.statusCd = null;
}

function DateRange(config){
	this.fromDate = null;
	this.toDate = null;
	if (config != null){
			this.fromDate = config.fromDate;
			this.toDate = config.toDate;
	}	
}

function Match(){	
	this.id = null;
	this.name = null;
	this.date = null;
	this.location = null;
	this.cost = null;
	this.red = null;
	this.white = null;
}

function Player(){	
	this.id = null;
	this.firstName = null;
	this.lastName = null;
	this.email = null;
	this.phoneNumber = null;
	this.level = null;
	this.isRegular = null;
}

function Team(){	
	this.roster = null;
	this.strength = null;
	this.count = null;	
}
	 
