Type.registerNamespace('P4X.Services');
P4X.Services.QuoteServices=function() {
P4X.Services.QuoteServices.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
P4X.Services.QuoteServices.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return P4X.Services.QuoteServices._staticInstance.get_path();},
GetQuotePrice:function(ccy1,ccy2,succeededCallback, failedCallback, userContext) {
/// <param name="ccy1" type="Number">System.Int16</param>
/// <param name="ccy2" 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(), 'GetQuotePrice',false,{ccy1:ccy1,ccy2:ccy2},succeededCallback,failedCallback,userContext); },
GetQuotes:function(strRequest,succeededCallback, failedCallback, userContext) {
/// <param name="strRequest" type="String">System.String</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(), 'GetQuotes',false,{strRequest:strRequest},succeededCallback,failedCallback,userContext); },
GetQuotesDic:function(strRequest,succeededCallback, failedCallback, userContext) {
/// <param name="strRequest" type="String">System.String</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(), 'GetQuotesDic',false,{strRequest:strRequest},succeededCallback,failedCallback,userContext); },
GetJoinedPrices:function(optionsStrRequest,assetsStrRequest,sessionID,succeededCallback, failedCallback, userContext) {
/// <param name="optionsStrRequest" type="String">System.String</param>
/// <param name="assetsStrRequest" type="String">System.String</param>
/// <param name="sessionID" type="String">System.String</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(), 'GetJoinedPrices',false,{optionsStrRequest:optionsStrRequest,assetsStrRequest:assetsStrRequest,sessionID:sessionID},succeededCallback,failedCallback,userContext); }}
P4X.Services.QuoteServices.registerClass('P4X.Services.QuoteServices',Sys.Net.WebServiceProxy);
P4X.Services.QuoteServices._staticInstance = new P4X.Services.QuoteServices();
P4X.Services.QuoteServices.set_path = function(value) {
P4X.Services.QuoteServices._staticInstance.set_path(value); }
P4X.Services.QuoteServices.get_path = function() { 
/// <value type="String" mayBeNull="true">The service url.</value>
return P4X.Services.QuoteServices._staticInstance.get_path();}
P4X.Services.QuoteServices.set_timeout = function(value) {
P4X.Services.QuoteServices._staticInstance.set_timeout(value); }
P4X.Services.QuoteServices.get_timeout = function() { 
/// <value type="Number">The service timeout.</value>
return P4X.Services.QuoteServices._staticInstance.get_timeout(); }
P4X.Services.QuoteServices.set_defaultUserContext = function(value) { 
P4X.Services.QuoteServices._staticInstance.set_defaultUserContext(value); }
P4X.Services.QuoteServices.get_defaultUserContext = function() { 
/// <value mayBeNull="true">The service default user context.</value>
return P4X.Services.QuoteServices._staticInstance.get_defaultUserContext(); }
P4X.Services.QuoteServices.set_defaultSucceededCallback = function(value) { 
 P4X.Services.QuoteServices._staticInstance.set_defaultSucceededCallback(value); }
P4X.Services.QuoteServices.get_defaultSucceededCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default succeeded callback.</value>
return P4X.Services.QuoteServices._staticInstance.get_defaultSucceededCallback(); }
P4X.Services.QuoteServices.set_defaultFailedCallback = function(value) { 
P4X.Services.QuoteServices._staticInstance.set_defaultFailedCallback(value); }
P4X.Services.QuoteServices.get_defaultFailedCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default failed callback.</value>
return P4X.Services.QuoteServices._staticInstance.get_defaultFailedCallback(); }
P4X.Services.QuoteServices.set_path("/Services/Quotes.asmx");
P4X.Services.QuoteServices.GetQuotePrice= function(ccy1,ccy2,onSuccess,onFailed,userContext) {
/// <param name="ccy1" type="Number">System.Int16</param>
/// <param name="ccy2" 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>
P4X.Services.QuoteServices._staticInstance.GetQuotePrice(ccy1,ccy2,onSuccess,onFailed,userContext); }
P4X.Services.QuoteServices.GetQuotes= function(strRequest,onSuccess,onFailed,userContext) {
/// <param name="strRequest" type="String">System.String</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>
P4X.Services.QuoteServices._staticInstance.GetQuotes(strRequest,onSuccess,onFailed,userContext); }
P4X.Services.QuoteServices.GetQuotesDic= function(strRequest,onSuccess,onFailed,userContext) {
/// <param name="strRequest" type="String">System.String</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>
P4X.Services.QuoteServices._staticInstance.GetQuotesDic(strRequest,onSuccess,onFailed,userContext); }
P4X.Services.QuoteServices.GetJoinedPrices= function(optionsStrRequest,assetsStrRequest,sessionID,onSuccess,onFailed,userContext) {
/// <param name="optionsStrRequest" type="String">System.String</param>
/// <param name="assetsStrRequest" type="String">System.String</param>
/// <param name="sessionID" type="String">System.String</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>
P4X.Services.QuoteServices._staticInstance.GetJoinedPrices(optionsStrRequest,assetsStrRequest,sessionID,onSuccess,onFailed,userContext); }

