Type.registerNamespace('DaShi.WebSite.Services');
DaShi.WebSite.Services.Photos=function() {
DaShi.WebSite.Services.Photos.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
DaShi.WebSite.Services.Photos.prototype={
Vote:function(photoID,succeededCallback, failedCallback, userContext) {
return this._invoke(DaShi.WebSite.Services.Photos.get_path(), 'Vote',false,{photoID:photoID},succeededCallback,failedCallback,userContext); },
Hit:function(photoID,succeededCallback, failedCallback, userContext) {
return this._invoke(DaShi.WebSite.Services.Photos.get_path(), 'Hit',false,{photoID:photoID},succeededCallback,failedCallback,userContext); },
GetPhotos:function(_pn,succeededCallback, failedCallback, userContext) {
return this._invoke(DaShi.WebSite.Services.Photos.get_path(), 'GetPhotos',false,{_pn:_pn},succeededCallback,failedCallback,userContext); }}
DaShi.WebSite.Services.Photos.registerClass('DaShi.WebSite.Services.Photos',Sys.Net.WebServiceProxy);
DaShi.WebSite.Services.Photos._staticInstance = new DaShi.WebSite.Services.Photos();
DaShi.WebSite.Services.Photos.set_path = function(value) { 
var e = Function._validateParams(arguments, [{name: 'path', type: String}]); if (e) throw e; DaShi.WebSite.Services.Photos._staticInstance._path = value; }
DaShi.WebSite.Services.Photos.get_path = function() { return DaShi.WebSite.Services.Photos._staticInstance._path; }
DaShi.WebSite.Services.Photos.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); }
DaShi.WebSite.Services.Photos._staticInstance._timeout = value; }
DaShi.WebSite.Services.Photos.get_timeout = function() { 
return DaShi.WebSite.Services.Photos._staticInstance._timeout; }
DaShi.WebSite.Services.Photos.set_defaultUserContext = function(value) { 
DaShi.WebSite.Services.Photos._staticInstance._userContext = value; }
DaShi.WebSite.Services.Photos.get_defaultUserContext = function() { 
return DaShi.WebSite.Services.Photos._staticInstance._userContext; }
DaShi.WebSite.Services.Photos.set_defaultSucceededCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultSucceededCallback', type: Function}]); if (e) throw e; DaShi.WebSite.Services.Photos._staticInstance._succeeded = value; }
DaShi.WebSite.Services.Photos.get_defaultSucceededCallback = function() { 
return DaShi.WebSite.Services.Photos._staticInstance._succeeded; }
DaShi.WebSite.Services.Photos.set_defaultFailedCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultFailedCallback', type: Function}]); if (e) throw e; DaShi.WebSite.Services.Photos._staticInstance._failed = value; }
DaShi.WebSite.Services.Photos.get_defaultFailedCallback = function() { 
return DaShi.WebSite.Services.Photos._staticInstance._failed; }
DaShi.WebSite.Services.Photos.set_path("/Services/Photos.asmx");
DaShi.WebSite.Services.Photos.Vote= function(photoID,onSuccess,onFailed,userContext) {DaShi.WebSite.Services.Photos._staticInstance.Vote(photoID,onSuccess,onFailed,userContext); }
DaShi.WebSite.Services.Photos.Hit= function(photoID,onSuccess,onFailed,userContext) {DaShi.WebSite.Services.Photos._staticInstance.Hit(photoID,onSuccess,onFailed,userContext); }
DaShi.WebSite.Services.Photos.GetPhotos= function(_pn,onSuccess,onFailed,userContext) {DaShi.WebSite.Services.Photos._staticInstance.GetPhotos(_pn,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('DaShi.Model');
if (typeof(DaShi.Model.Photos) === 'undefined') {
DaShi.Model.Photos=gtc("DaShi.Model.Photos");
DaShi.Model.Photos.registerClass('DaShi.Model.Photos');
}
