Type.registerNamespace('Games');
Games.Draughts=function() {
Games.Draughts.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
Games.Draughts.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return Games.Draughts._staticInstance.get_path();},
NewGame:function(Difficulty,succeededCallback, failedCallback, userContext) {
/// <param name="Difficulty" type="Number">System.Int16</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(), 'NewGame',false,{Difficulty:Difficulty},succeededCallback,failedCallback,userContext); },
MovePiece:function(fromIndex,toIndex,succeededCallback, failedCallback, userContext) {
/// <param name="fromIndex" type="Number">System.Int32</param>
/// <param name="toIndex" 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(), 'MovePiece',false,{fromIndex:fromIndex,toIndex:toIndex},succeededCallback,failedCallback,userContext); },
MoveForMe:function(succeededCallback, failedCallback, userContext) {
/// <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(), 'MoveForMe',false,{},succeededCallback,failedCallback,userContext); }}
Games.Draughts.registerClass('Games.Draughts',Sys.Net.WebServiceProxy);
Games.Draughts._staticInstance = new Games.Draughts();
Games.Draughts.set_path = function(value) {
Games.Draughts._staticInstance.set_path(value); }
Games.Draughts.get_path = function() { 
/// <value type="String" mayBeNull="true">The service url.</value>
return Games.Draughts._staticInstance.get_path();}
Games.Draughts.set_timeout = function(value) {
Games.Draughts._staticInstance.set_timeout(value); }
Games.Draughts.get_timeout = function() { 
/// <value type="Number">The service timeout.</value>
return Games.Draughts._staticInstance.get_timeout(); }
Games.Draughts.set_defaultUserContext = function(value) { 
Games.Draughts._staticInstance.set_defaultUserContext(value); }
Games.Draughts.get_defaultUserContext = function() { 
/// <value mayBeNull="true">The service default user context.</value>
return Games.Draughts._staticInstance.get_defaultUserContext(); }
Games.Draughts.set_defaultSucceededCallback = function(value) { 
 Games.Draughts._staticInstance.set_defaultSucceededCallback(value); }
Games.Draughts.get_defaultSucceededCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default succeeded callback.</value>
return Games.Draughts._staticInstance.get_defaultSucceededCallback(); }
Games.Draughts.set_defaultFailedCallback = function(value) { 
Games.Draughts._staticInstance.set_defaultFailedCallback(value); }
Games.Draughts.get_defaultFailedCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default failed callback.</value>
return Games.Draughts._staticInstance.get_defaultFailedCallback(); }
Games.Draughts.set_path("/Draughts/Draughts.asmx");
Games.Draughts.NewGame= function(Difficulty,onSuccess,onFailed,userContext) {
/// <param name="Difficulty" type="Number">System.Int16</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>
Games.Draughts._staticInstance.NewGame(Difficulty,onSuccess,onFailed,userContext); }
Games.Draughts.MovePiece= function(fromIndex,toIndex,onSuccess,onFailed,userContext) {
/// <param name="fromIndex" type="Number">System.Int32</param>
/// <param name="toIndex" 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>
Games.Draughts._staticInstance.MovePiece(fromIndex,toIndex,onSuccess,onFailed,userContext); }
Games.Draughts.MoveForMe= function(onSuccess,onFailed,userContext) {
/// <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>
Games.Draughts._staticInstance.MoveForMe(onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
if (typeof(Games.MoveResult) === 'undefined') {
Games.MoveResult=gtc("Games.MoveResult");
Games.MoveResult.registerClass('Games.MoveResult');
}
