Type.registerNamespace('Gallery.Service');
Gallery.Service.ServiceWeb=function() {
Gallery.Service.ServiceWeb.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
Gallery.Service.ServiceWeb.prototype={
GetGalleryImageList:function(strDirectory,succeededCallback, failedCallback, userContext) {
return this._invoke(Gallery.Service.ServiceWeb.get_path(), 'GetGalleryImageList',false,{strDirectory:strDirectory},succeededCallback,failedCallback,userContext); },
GetEventDetails:function(lngEventID,succeededCallback, failedCallback, userContext) {
return this._invoke(Gallery.Service.ServiceWeb.get_path(), 'GetEventDetails',false,{lngEventID:lngEventID},succeededCallback,failedCallback,userContext); }}
Gallery.Service.ServiceWeb.registerClass('Gallery.Service.ServiceWeb',Sys.Net.WebServiceProxy);
Gallery.Service.ServiceWeb._staticInstance = new Gallery.Service.ServiceWeb();
Gallery.Service.ServiceWeb.set_path = function(value) { 
var e = Function._validateParams(arguments, [{name: 'path', type: String}]); if (e) throw e; Gallery.Service.ServiceWeb._staticInstance._path = value; }
Gallery.Service.ServiceWeb.get_path = function() { return Gallery.Service.ServiceWeb._staticInstance._path; }
Gallery.Service.ServiceWeb.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); }
Gallery.Service.ServiceWeb._staticInstance._timeout = value; }
Gallery.Service.ServiceWeb.get_timeout = function() { 
return Gallery.Service.ServiceWeb._staticInstance._timeout; }
Gallery.Service.ServiceWeb.set_defaultUserContext = function(value) { 
Gallery.Service.ServiceWeb._staticInstance._userContext = value; }
Gallery.Service.ServiceWeb.get_defaultUserContext = function() { 
return Gallery.Service.ServiceWeb._staticInstance._userContext; }
Gallery.Service.ServiceWeb.set_defaultSucceededCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultSucceededCallback', type: Function}]); if (e) throw e; Gallery.Service.ServiceWeb._staticInstance._succeeded = value; }
Gallery.Service.ServiceWeb.get_defaultSucceededCallback = function() { 
return Gallery.Service.ServiceWeb._staticInstance._succeeded; }
Gallery.Service.ServiceWeb.set_defaultFailedCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultFailedCallback', type: Function}]); if (e) throw e; Gallery.Service.ServiceWeb._staticInstance._failed = value; }
Gallery.Service.ServiceWeb.get_defaultFailedCallback = function() { 
return Gallery.Service.ServiceWeb._staticInstance._failed; }
Gallery.Service.ServiceWeb.set_path("/serviceweb.asmx");
Gallery.Service.ServiceWeb.GetGalleryImageList= function(strDirectory,onSuccess,onFailed,userContext) {Gallery.Service.ServiceWeb._staticInstance.GetGalleryImageList(strDirectory,onSuccess,onFailed,userContext); }
Gallery.Service.ServiceWeb.GetEventDetails= function(lngEventID,onSuccess,onFailed,userContext) {Gallery.Service.ServiceWeb._staticInstance.GetEventDetails(lngEventID,onSuccess,onFailed,userContext); }
