Type.registerNamespace('SCOTT.CSC.Tools');
SCOTT.CSC.Tools.GasToolService=function() {
SCOTT.CSC.Tools.GasToolService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
SCOTT.CSC.Tools.GasToolService.prototype={
GetQuestions:function(succeededCallback, failedCallback, userContext) {
return this._invoke(SCOTT.CSC.Tools.GasToolService.get_path(), 'GetQuestions',false,{},succeededCallback,failedCallback,userContext); },
SaveResult:function(score,succeededCallback, failedCallback, userContext) {
return this._invoke(SCOTT.CSC.Tools.GasToolService.get_path(), 'SaveResult',false,{score:score},succeededCallback,failedCallback,userContext); },
GetOverallResult:function(succeededCallback, failedCallback, userContext) {
return this._invoke(SCOTT.CSC.Tools.GasToolService.get_path(), 'GetOverallResult',false,{},succeededCallback,failedCallback,userContext); }}
SCOTT.CSC.Tools.GasToolService.registerClass('SCOTT.CSC.Tools.GasToolService',Sys.Net.WebServiceProxy);
SCOTT.CSC.Tools.GasToolService._staticInstance = new SCOTT.CSC.Tools.GasToolService();
SCOTT.CSC.Tools.GasToolService.set_path = function(value) { 
var e = Function._validateParams(arguments, [{name: 'path', type: String}]); if (e) throw e; SCOTT.CSC.Tools.GasToolService._staticInstance._path = value; }
SCOTT.CSC.Tools.GasToolService.get_path = function() { return SCOTT.CSC.Tools.GasToolService._staticInstance._path; }
SCOTT.CSC.Tools.GasToolService.set_timeout = function(value) { var e = Function._validateParams(arguments, [{name: 'timeout', type: Number}]); if (e) throw e; if (value < 0) { throw Error.argumentOutOfRange('value', value, Sys.Res.invalidTimeout); }
SCOTT.CSC.Tools.GasToolService._staticInstance._timeout = value; }
SCOTT.CSC.Tools.GasToolService.get_timeout = function() { 
return SCOTT.CSC.Tools.GasToolService._staticInstance._timeout; }
SCOTT.CSC.Tools.GasToolService.set_defaultUserContext = function(value) { 
SCOTT.CSC.Tools.GasToolService._staticInstance._userContext = value; }
SCOTT.CSC.Tools.GasToolService.get_defaultUserContext = function() { 
return SCOTT.CSC.Tools.GasToolService._staticInstance._userContext; }
SCOTT.CSC.Tools.GasToolService.set_defaultSucceededCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultSucceededCallback', type: Function}]); if (e) throw e; SCOTT.CSC.Tools.GasToolService._staticInstance._succeeded = value; }
SCOTT.CSC.Tools.GasToolService.get_defaultSucceededCallback = function() { 
return SCOTT.CSC.Tools.GasToolService._staticInstance._succeeded; }
SCOTT.CSC.Tools.GasToolService.set_defaultFailedCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultFailedCallback', type: Function}]); if (e) throw e; SCOTT.CSC.Tools.GasToolService._staticInstance._failed = value; }
SCOTT.CSC.Tools.GasToolService.get_defaultFailedCallback = function() { 
return SCOTT.CSC.Tools.GasToolService._staticInstance._failed; }
SCOTT.CSC.Tools.GasToolService.set_path("/Services/Tools/GasToolService.asmx");
SCOTT.CSC.Tools.GasToolService.GetQuestions= function(onSuccess,onFailed,userContext) {SCOTT.CSC.Tools.GasToolService._staticInstance.GetQuestions(onSuccess,onFailed,userContext); }
SCOTT.CSC.Tools.GasToolService.SaveResult= function(score,onSuccess,onFailed,userContext) {SCOTT.CSC.Tools.GasToolService._staticInstance.SaveResult(score,onSuccess,onFailed,userContext); }
SCOTT.CSC.Tools.GasToolService.GetOverallResult= function(onSuccess,onFailed,userContext) {SCOTT.CSC.Tools.GasToolService._staticInstance.GetOverallResult(onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('SCOTT.CSC.Model.Tools.Gas.Quiz');
if (typeof(SCOTT.CSC.Model.Tools.Gas.Quiz.OverallResult) === 'undefined') {
SCOTT.CSC.Model.Tools.Gas.Quiz.OverallResult=gtc("SCOTT.CSC.Model.Tools.Gas.Quiz.OverallResult");
SCOTT.CSC.Model.Tools.Gas.Quiz.OverallResult.registerClass('SCOTT.CSC.Model.Tools.Gas.Quiz.OverallResult');
}
