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={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return DaShi.WebSite.Services.Photos._staticInstance.get_path();},
Vote:function(photoID,succeededCallback, failedCallback, userContext) {
/// <param name="photoID" type="Number">System.Int32</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'Vote',false,{photoID:photoID},succeededCallback,failedCallback,userContext); },
Hit:function(photoID,succeededCallback, failedCallback, userContext) {
/// <param name="photoID" type="Number">System.Int32</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'Hit',false,{photoID:photoID},succeededCallback,failedCallback,userContext); },
GetPhotos:function(_pn,succeededCallback, failedCallback, userContext) {
/// <param name="_pn" type="Number">System.Int32</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._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) {
DaShi.WebSite.Services.Photos._staticInstance.set_path(value); }
DaShi.WebSite.Services.Photos.get_path = function() { 
/// <value type="String" mayBeNull="true">The service url.</value>
return DaShi.WebSite.Services.Photos._staticInstance.get_path();}
DaShi.WebSite.Services.Photos.set_timeout = function(value) {
DaShi.WebSite.Services.Photos._staticInstance.set_timeout(value); }
DaShi.WebSite.Services.Photos.get_timeout = function() { 
/// <value type="Number">The service timeout.</value>
return DaShi.WebSite.Services.Photos._staticInstance.get_timeout(); }
DaShi.WebSite.Services.Photos.set_defaultUserContext = function(value) { 
DaShi.WebSite.Services.Photos._staticInstance.set_defaultUserContext(value); }
DaShi.WebSite.Services.Photos.get_defaultUserContext = function() { 
/// <value mayBeNull="true">The service default user context.</value>
return DaShi.WebSite.Services.Photos._staticInstance.get_defaultUserContext(); }
DaShi.WebSite.Services.Photos.set_defaultSucceededCallback = function(value) { 
 DaShi.WebSite.Services.Photos._staticInstance.set_defaultSucceededCallback(value); }
DaShi.WebSite.Services.Photos.get_defaultSucceededCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default succeeded callback.</value>
return DaShi.WebSite.Services.Photos._staticInstance.get_defaultSucceededCallback(); }
DaShi.WebSite.Services.Photos.set_defaultFailedCallback = function(value) { 
DaShi.WebSite.Services.Photos._staticInstance.set_defaultFailedCallback(value); }
DaShi.WebSite.Services.Photos.get_defaultFailedCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default failed callback.</value>
return DaShi.WebSite.Services.Photos._staticInstance.get_defaultFailedCallback(); }
DaShi.WebSite.Services.Photos.set_path("/Services/Photos.asmx");
DaShi.WebSite.Services.Photos.Vote= function(photoID,onSuccess,onFailed,userContext) {
/// <param name="photoID" type="Number">System.Int32</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
DaShi.WebSite.Services.Photos._staticInstance.Vote(photoID,onSuccess,onFailed,userContext); }
DaShi.WebSite.Services.Photos.Hit= function(photoID,onSuccess,onFailed,userContext) {
/// <param name="photoID" type="Number">System.Int32</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
DaShi.WebSite.Services.Photos._staticInstance.Hit(photoID,onSuccess,onFailed,userContext); }
DaShi.WebSite.Services.Photos.GetPhotos= function(_pn,onSuccess,onFailed,userContext) {
/// <param name="_pn" type="Number">System.Int32</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
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');
}
