Type.registerNamespace('ShingoTamura.Shingokko.Services');
ShingoTamura.Shingokko.Services.RatingService=function() {
ShingoTamura.Shingokko.Services.RatingService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
ShingoTamura.Shingokko.Services.RatingService.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return ShingoTamura.Shingokko.Services.RatingService._staticInstance.get_path();},
RatePieceOfWork:function(pieceOfWorkId,ipAddress,value,succeededCallback, failedCallback, userContext) {
/// <param name="pieceOfWorkId" type="Number">System.Int32</param>
/// <param name="ipAddress" type="String">System.String</param>
/// <param name="value" 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(), 'RatePieceOfWork',false,{pieceOfWorkId:pieceOfWorkId,ipAddress:ipAddress,value:value},succeededCallback,failedCallback,userContext); }}
ShingoTamura.Shingokko.Services.RatingService.registerClass('ShingoTamura.Shingokko.Services.RatingService',Sys.Net.WebServiceProxy);
ShingoTamura.Shingokko.Services.RatingService._staticInstance = new ShingoTamura.Shingokko.Services.RatingService();
ShingoTamura.Shingokko.Services.RatingService.set_path = function(value) {
ShingoTamura.Shingokko.Services.RatingService._staticInstance.set_path(value); }
ShingoTamura.Shingokko.Services.RatingService.get_path = function() { 
/// <value type="String" mayBeNull="true">The service url.</value>
return ShingoTamura.Shingokko.Services.RatingService._staticInstance.get_path();}
ShingoTamura.Shingokko.Services.RatingService.set_timeout = function(value) {
ShingoTamura.Shingokko.Services.RatingService._staticInstance.set_timeout(value); }
ShingoTamura.Shingokko.Services.RatingService.get_timeout = function() { 
/// <value type="Number">The service timeout.</value>
return ShingoTamura.Shingokko.Services.RatingService._staticInstance.get_timeout(); }
ShingoTamura.Shingokko.Services.RatingService.set_defaultUserContext = function(value) { 
ShingoTamura.Shingokko.Services.RatingService._staticInstance.set_defaultUserContext(value); }
ShingoTamura.Shingokko.Services.RatingService.get_defaultUserContext = function() { 
/// <value mayBeNull="true">The service default user context.</value>
return ShingoTamura.Shingokko.Services.RatingService._staticInstance.get_defaultUserContext(); }
ShingoTamura.Shingokko.Services.RatingService.set_defaultSucceededCallback = function(value) { 
 ShingoTamura.Shingokko.Services.RatingService._staticInstance.set_defaultSucceededCallback(value); }
ShingoTamura.Shingokko.Services.RatingService.get_defaultSucceededCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default succeeded callback.</value>
return ShingoTamura.Shingokko.Services.RatingService._staticInstance.get_defaultSucceededCallback(); }
ShingoTamura.Shingokko.Services.RatingService.set_defaultFailedCallback = function(value) { 
ShingoTamura.Shingokko.Services.RatingService._staticInstance.set_defaultFailedCallback(value); }
ShingoTamura.Shingokko.Services.RatingService.get_defaultFailedCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default failed callback.</value>
return ShingoTamura.Shingokko.Services.RatingService._staticInstance.get_defaultFailedCallback(); }
ShingoTamura.Shingokko.Services.RatingService.set_path("/Services/RatingService.asmx");
ShingoTamura.Shingokko.Services.RatingService.RatePieceOfWork= function(pieceOfWorkId,ipAddress,value,onSuccess,onFailed,userContext) {
/// <param name="pieceOfWorkId" type="Number">System.Int32</param>
/// <param name="ipAddress" type="String">System.String</param>
/// <param name="value" 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>
ShingoTamura.Shingokko.Services.RatingService._staticInstance.RatePieceOfWork(pieceOfWorkId,ipAddress,value,onSuccess,onFailed,userContext); }
