Type.registerNamespace('MC.ENET');
MC.ENET.CurrencyService=function() {
MC.ENET.CurrencyService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
MC.ENET.CurrencyService.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return MC.ENET.CurrencyService._staticInstance.get_path();},
SetCurrencyType:function(type,defaultType,succeededCallback, failedCallback, userContext) {
/// <param name="type" type="Number">System.Int32</param>
/// <param name="defaultType" 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(), 'SetCurrencyType',false,{type:type,defaultType:defaultType},succeededCallback,failedCallback,userContext); }}
MC.ENET.CurrencyService.registerClass('MC.ENET.CurrencyService',Sys.Net.WebServiceProxy);
MC.ENET.CurrencyService._staticInstance = new MC.ENET.CurrencyService();
MC.ENET.CurrencyService.set_path = function(value) {
MC.ENET.CurrencyService._staticInstance.set_path(value); }
MC.ENET.CurrencyService.get_path = function() { 
/// <value type="String" mayBeNull="true">The service url.</value>
return MC.ENET.CurrencyService._staticInstance.get_path();}
MC.ENET.CurrencyService.set_timeout = function(value) {
MC.ENET.CurrencyService._staticInstance.set_timeout(value); }
MC.ENET.CurrencyService.get_timeout = function() { 
/// <value type="Number">The service timeout.</value>
return MC.ENET.CurrencyService._staticInstance.get_timeout(); }
MC.ENET.CurrencyService.set_defaultUserContext = function(value) { 
MC.ENET.CurrencyService._staticInstance.set_defaultUserContext(value); }
MC.ENET.CurrencyService.get_defaultUserContext = function() { 
/// <value mayBeNull="true">The service default user context.</value>
return MC.ENET.CurrencyService._staticInstance.get_defaultUserContext(); }
MC.ENET.CurrencyService.set_defaultSucceededCallback = function(value) { 
 MC.ENET.CurrencyService._staticInstance.set_defaultSucceededCallback(value); }
MC.ENET.CurrencyService.get_defaultSucceededCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default succeeded callback.</value>
return MC.ENET.CurrencyService._staticInstance.get_defaultSucceededCallback(); }
MC.ENET.CurrencyService.set_defaultFailedCallback = function(value) { 
MC.ENET.CurrencyService._staticInstance.set_defaultFailedCallback(value); }
MC.ENET.CurrencyService.get_defaultFailedCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default failed callback.</value>
return MC.ENET.CurrencyService._staticInstance.get_defaultFailedCallback(); }
MC.ENET.CurrencyService.set_enableJsonp = function(value) { MC.ENET.CurrencyService._staticInstance.set_enableJsonp(value); }
MC.ENET.CurrencyService.get_enableJsonp = function() { 
/// <value type="Boolean">Specifies whether the service supports JSONP for cross domain calling.</value>
return MC.ENET.CurrencyService._staticInstance.get_enableJsonp(); }
MC.ENET.CurrencyService.set_jsonpCallbackParameter = function(value) { MC.ENET.CurrencyService._staticInstance.set_jsonpCallbackParameter(value); }
MC.ENET.CurrencyService.get_jsonpCallbackParameter = function() { 
/// <value type="String">Specifies the parameter name that contains the callback function name for a JSONP request.</value>
return MC.ENET.CurrencyService._staticInstance.get_jsonpCallbackParameter(); }
MC.ENET.CurrencyService.set_path("/MCWebServices/CurrencyService.asmx");
MC.ENET.CurrencyService.SetCurrencyType= function(type,defaultType,onSuccess,onFailed,userContext) {
/// <param name="type" type="Number">System.Int32</param>
/// <param name="defaultType" 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>
MC.ENET.CurrencyService._staticInstance.SetCurrencyType(type,defaultType,onSuccess,onFailed,userContext); }

