Type.registerNamespace('WeightChart.Site');
WeightChart.Site.PublicJSService=function() {
WeightChart.Site.PublicJSService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
WeightChart.Site.PublicJSService.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return WeightChart.Site.PublicJSService._staticInstance.get_path();},
CalculateBMI:function(heightUnit,height,weightUnit,weight,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'CalculateBMI',false,{heightUnit:heightUnit,height:height,weightUnit:weightUnit,weight:weight},succeededCallback,failedCallback,userContext); },
CalculateBMR:function(heightUnit,height,weightUnit,weight,age,gender,activityLevel,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'CalculateBMR',false,{heightUnit:heightUnit,height:height,weightUnit:weightUnit,weight:weight,age:age,gender:gender,activityLevel:activityLevel},succeededCallback,failedCallback,userContext); },
CalculateWHR:function(waist,waistUnit,hip,hipUnit,gender,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'CalculateWHR',false,{waist:waist,waistUnit:waistUnit,hip:hip,hipUnit:hipUnit,gender:gender},succeededCallback,failedCallback,userContext); },
GetFoodItems:function(query,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetFoodItems',false,{query:query},succeededCallback,failedCallback,userContext); },
SearchFoodData:function(query,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'SearchFoodData',false,{query:query},succeededCallback,failedCallback,userContext); }}
WeightChart.Site.PublicJSService.registerClass('WeightChart.Site.PublicJSService',Sys.Net.WebServiceProxy);
WeightChart.Site.PublicJSService._staticInstance = new WeightChart.Site.PublicJSService();
WeightChart.Site.PublicJSService.set_path = function(value) { WeightChart.Site.PublicJSService._staticInstance.set_path(value); }
WeightChart.Site.PublicJSService.get_path = function() { return WeightChart.Site.PublicJSService._staticInstance.get_path(); }
WeightChart.Site.PublicJSService.set_timeout = function(value) { WeightChart.Site.PublicJSService._staticInstance.set_timeout(value); }
WeightChart.Site.PublicJSService.get_timeout = function() { return WeightChart.Site.PublicJSService._staticInstance.get_timeout(); }
WeightChart.Site.PublicJSService.set_defaultUserContext = function(value) { WeightChart.Site.PublicJSService._staticInstance.set_defaultUserContext(value); }
WeightChart.Site.PublicJSService.get_defaultUserContext = function() { return WeightChart.Site.PublicJSService._staticInstance.get_defaultUserContext(); }
WeightChart.Site.PublicJSService.set_defaultSucceededCallback = function(value) { WeightChart.Site.PublicJSService._staticInstance.set_defaultSucceededCallback(value); }
WeightChart.Site.PublicJSService.get_defaultSucceededCallback = function() { return WeightChart.Site.PublicJSService._staticInstance.get_defaultSucceededCallback(); }
WeightChart.Site.PublicJSService.set_defaultFailedCallback = function(value) { WeightChart.Site.PublicJSService._staticInstance.set_defaultFailedCallback(value); }
WeightChart.Site.PublicJSService.get_defaultFailedCallback = function() { return WeightChart.Site.PublicJSService._staticInstance.get_defaultFailedCallback(); }
WeightChart.Site.PublicJSService.set_path("/PublicJSService.asmx");
WeightChart.Site.PublicJSService.CalculateBMI= function(heightUnit,height,weightUnit,weight,onSuccess,onFailed,userContext) {WeightChart.Site.PublicJSService._staticInstance.CalculateBMI(heightUnit,height,weightUnit,weight,onSuccess,onFailed,userContext); }
WeightChart.Site.PublicJSService.CalculateBMR= function(heightUnit,height,weightUnit,weight,age,gender,activityLevel,onSuccess,onFailed,userContext) {WeightChart.Site.PublicJSService._staticInstance.CalculateBMR(heightUnit,height,weightUnit,weight,age,gender,activityLevel,onSuccess,onFailed,userContext); }
WeightChart.Site.PublicJSService.CalculateWHR= function(waist,waistUnit,hip,hipUnit,gender,onSuccess,onFailed,userContext) {WeightChart.Site.PublicJSService._staticInstance.CalculateWHR(waist,waistUnit,hip,hipUnit,gender,onSuccess,onFailed,userContext); }
WeightChart.Site.PublicJSService.GetFoodItems= function(query,onSuccess,onFailed,userContext) {WeightChart.Site.PublicJSService._staticInstance.GetFoodItems(query,onSuccess,onFailed,userContext); }
WeightChart.Site.PublicJSService.SearchFoodData= function(query,onSuccess,onFailed,userContext) {WeightChart.Site.PublicJSService._staticInstance.SearchFoodData(query,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('WeightChart.Presentation.Service');
if (typeof(WeightChart.Presentation.Service.BMIResult) === 'undefined') {
WeightChart.Presentation.Service.BMIResult=gtc("WeightChart.Presentation.Service.BMIResult");
WeightChart.Presentation.Service.BMIResult.registerClass('WeightChart.Presentation.Service.BMIResult');
}
if (typeof(WeightChart.Presentation.Service.BMRResult) === 'undefined') {
WeightChart.Presentation.Service.BMRResult=gtc("WeightChart.Presentation.Service.BMRResult");
WeightChart.Presentation.Service.BMRResult.registerClass('WeightChart.Presentation.Service.BMRResult');
}
if (typeof(WeightChart.Presentation.Service.WaistHipRatioResult) === 'undefined') {
WeightChart.Presentation.Service.WaistHipRatioResult=gtc("WeightChart.Presentation.Service.WaistHipRatioResult");
WeightChart.Presentation.Service.WaistHipRatioResult.registerClass('WeightChart.Presentation.Service.WaistHipRatioResult');
}
if (typeof(WeightChart.Presentation.Service.FoodItemResult) === 'undefined') {
WeightChart.Presentation.Service.FoodItemResult=gtc("WeightChart.Presentation.Service.FoodItemResult");
WeightChart.Presentation.Service.FoodItemResult.registerClass('WeightChart.Presentation.Service.FoodItemResult');
}
if (typeof(WeightChart.Presentation.Service.FoodItemSearchResult) === 'undefined') {
WeightChart.Presentation.Service.FoodItemSearchResult=gtc("WeightChart.Presentation.Service.FoodItemSearchResult");
WeightChart.Presentation.Service.FoodItemSearchResult.registerClass('WeightChart.Presentation.Service.FoodItemSearchResult');
}
Type.registerNamespace('WeightChart.DomainProvider.WeightChartService');
if (typeof(WeightChart.DomainProvider.WeightChartService.HeightUnitType) === 'undefined') {
WeightChart.DomainProvider.WeightChartService.HeightUnitType = function() { throw Error.invalidOperation(); }
WeightChart.DomainProvider.WeightChartService.HeightUnitType.prototype = {Inch: 0,Meter: 1}
WeightChart.DomainProvider.WeightChartService.HeightUnitType.registerEnum('WeightChart.DomainProvider.WeightChartService.HeightUnitType', true);
}
if (typeof(WeightChart.DomainProvider.WeightChartService.WeightUnitType) === 'undefined') {
WeightChart.DomainProvider.WeightChartService.WeightUnitType = function() { throw Error.invalidOperation(); }
WeightChart.DomainProvider.WeightChartService.WeightUnitType.prototype = {Pound: 0,Kilogram: 1}
WeightChart.DomainProvider.WeightChartService.WeightUnitType.registerEnum('WeightChart.DomainProvider.WeightChartService.WeightUnitType', true);
}
if (typeof(WeightChart.DomainProvider.WeightChartService.GenderChoice) === 'undefined') {
WeightChart.DomainProvider.WeightChartService.GenderChoice = function() { throw Error.invalidOperation(); }
WeightChart.DomainProvider.WeightChartService.GenderChoice.prototype = {Unspecified: 0,Male: 1,Female: 2}
WeightChart.DomainProvider.WeightChartService.GenderChoice.registerEnum('WeightChart.DomainProvider.WeightChartService.GenderChoice', true);
}
if (typeof(WeightChart.DomainProvider.WeightChartService.ActivityLevel) === 'undefined') {
WeightChart.DomainProvider.WeightChartService.ActivityLevel = function() { throw Error.invalidOperation(); }
WeightChart.DomainProvider.WeightChartService.ActivityLevel.prototype = {Sedentary: 0,Light: 1,Moderate: 2,Heavy: 3}
WeightChart.DomainProvider.WeightChartService.ActivityLevel.registerEnum('WeightChart.DomainProvider.WeightChartService.ActivityLevel', true);
}
Type.registerNamespace('WeightChart.DomainProvider');
if (typeof(WeightChart.DomainProvider.LengthMeasureUnit) === 'undefined') {
WeightChart.DomainProvider.LengthMeasureUnit = function() { throw Error.invalidOperation(); }
WeightChart.DomainProvider.LengthMeasureUnit.prototype = {Inch: 0,Centimeter: 1}
WeightChart.DomainProvider.LengthMeasureUnit.registerEnum('WeightChart.DomainProvider.LengthMeasureUnit', true);
}
