/*!
* ASP.NET SignalR JavaScript Library v2.2.1
* http://signalr.net/
*
* Copyright (c) .NET Foundation. All rights reserved.
* Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
*
*/
///
///
(function ($, window, undefined) {
///
"use strict";
if (typeof ($.signalR) !== "function") {
throw new Error("SignalR: SignalR is not loaded. Please ensure jquery.signalR-x.js is referenced before ~/signalr/js.");
}
var signalR = $.signalR;
function makeProxyCallback(hub, callback) {
return function () {
// Call the client hub method
callback.apply(hub, $.makeArray(arguments));
};
}
function registerHubProxies(instance, shouldSubscribe) {
var key, hub, memberKey, memberValue, subscriptionMethod;
for (key in instance) {
if (instance.hasOwnProperty(key)) {
hub = instance[key];
if (!(hub.hubName)) {
// Not a client hub
continue;
}
if (shouldSubscribe) {
// We want to subscribe to the hub events
subscriptionMethod = hub.on;
} else {
// We want to unsubscribe from the hub events
subscriptionMethod = hub.off;
}
// Loop through all members on the hub and find client hub functions to subscribe/unsubscribe
for (memberKey in hub.client) {
if (hub.client.hasOwnProperty(memberKey)) {
memberValue = hub.client[memberKey];
if (!$.isFunction(memberValue)) {
// Not a client hub function
continue;
}
subscriptionMethod.call(hub, memberKey, makeProxyCallback(hub, memberValue));
}
}
}
}
}
$.hubConnection.prototype.createHubProxies = function () {
var proxies = {};
this.starting(function () {
// Register the hub proxies as subscribed
// (instance, shouldSubscribe)
registerHubProxies(proxies, true);
this._registerSubscribedHubs();
}).disconnected(function () {
// Unsubscribe all hub proxies when we "disconnect". This is to ensure that we do not re-add functional call backs.
// (instance, shouldSubscribe)
registerHubProxies(proxies, false);
});
proxies['balloonConnectionHub'] = this.createHubProxy('balloonConnectionHub');
proxies['balloonConnectionHub'].client = { };
proxies['balloonConnectionHub'].server = {
getHighScores: function () {
return proxies['balloonConnectionHub'].invoke.apply(proxies['balloonConnectionHub'], $.merge(["GetHighScores"], $.makeArray(arguments)));
},
getMyScores: function () {
return proxies['balloonConnectionHub'].invoke.apply(proxies['balloonConnectionHub'], $.merge(["GetMyScores"], $.makeArray(arguments)));
},
info: function () {
return proxies['balloonConnectionHub'].invoke.apply(proxies['balloonConnectionHub'], $.merge(["Info"], $.makeArray(arguments)));
},
timerPing: function () {
return proxies['balloonConnectionHub'].invoke.apply(proxies['balloonConnectionHub'], $.merge(["TimerPing"], $.makeArray(arguments)));
},
toggle: function (isPaused) {
return proxies['balloonConnectionHub'].invoke.apply(proxies['balloonConnectionHub'], $.merge(["Toggle"], $.makeArray(arguments)));
}
};
proxies['cappadociaConnectionHub'] = this.createHubProxy('cappadociaConnectionHub');
proxies['cappadociaConnectionHub'].client = { };
proxies['cappadociaConnectionHub'].server = {
highScores: function () {
return proxies['cappadociaConnectionHub'].invoke.apply(proxies['cappadociaConnectionHub'], $.merge(["HighScores"], $.makeArray(arguments)));
},
info: function () {
return proxies['cappadociaConnectionHub'].invoke.apply(proxies['cappadociaConnectionHub'], $.merge(["Info"], $.makeArray(arguments)));
},
playersInfo: function () {
return proxies['cappadociaConnectionHub'].invoke.apply(proxies['cappadociaConnectionHub'], $.merge(["PlayersInfo"], $.makeArray(arguments)));
}
};
proxies['footballXConnectionHub'] = this.createHubProxy('footballXConnectionHub');
proxies['footballXConnectionHub'].client = { };
proxies['footballXConnectionHub'].server = {
getHighScores: function () {
return proxies['footballXConnectionHub'].invoke.apply(proxies['footballXConnectionHub'], $.merge(["GetHighScores"], $.makeArray(arguments)));
},
getMyScores: function () {
return proxies['footballXConnectionHub'].invoke.apply(proxies['footballXConnectionHub'], $.merge(["GetMyScores"], $.makeArray(arguments)));
},
info: function () {
return proxies['footballXConnectionHub'].invoke.apply(proxies['footballXConnectionHub'], $.merge(["Info"], $.makeArray(arguments)));
},
timerPing: function () {
return proxies['footballXConnectionHub'].invoke.apply(proxies['footballXConnectionHub'], $.merge(["TimerPing"], $.makeArray(arguments)));
},
toggle: function (isPaused) {
return proxies['footballXConnectionHub'].invoke.apply(proxies['footballXConnectionHub'], $.merge(["Toggle"], $.makeArray(arguments)));
}
};
proxies['gamesConnectionHub'] = this.createHubProxy('gamesConnectionHub');
proxies['gamesConnectionHub'].client = { };
proxies['gamesConnectionHub'].server = {
};
proxies['hunterXConnectionHub'] = this.createHubProxy('hunterXConnectionHub');
proxies['hunterXConnectionHub'].client = { };
proxies['hunterXConnectionHub'].server = {
bet: function (tokenKey, gameId, betAmount) {
return proxies['hunterXConnectionHub'].invoke.apply(proxies['hunterXConnectionHub'], $.merge(["Bet"], $.makeArray(arguments)));
},
betBonusGame: function (tokenKey, gameId, bonusBetIndex) {
return proxies['hunterXConnectionHub'].invoke.apply(proxies['hunterXConnectionHub'], $.merge(["BetBonusGame"], $.makeArray(arguments)));
},
buyBonusGame: function (tokenKey, gameId, bonusStartKey) {
return proxies['hunterXConnectionHub'].invoke.apply(proxies['hunterXConnectionHub'], $.merge(["BuyBonusGame"], $.makeArray(arguments)));
},
getBonusGameProgressInfo: function (tokenKey, gameId, bonusKey) {
return proxies['hunterXConnectionHub'].invoke.apply(proxies['hunterXConnectionHub'], $.merge(["GetBonusGameProgressInfo"], $.makeArray(arguments)));
},
getGameHistoryInfo: function (tokenKey, gameId) {
return proxies['hunterXConnectionHub'].invoke.apply(proxies['hunterXConnectionHub'], $.merge(["GetGameHistoryInfo"], $.makeArray(arguments)));
},
getGameInfo: function (tokenKey, gameId) {
return proxies['hunterXConnectionHub'].invoke.apply(proxies['hunterXConnectionHub'], $.merge(["GetGameInfo"], $.makeArray(arguments)));
},
getPlayerInfo: function (tokenKey, gameId) {
return proxies['hunterXConnectionHub'].invoke.apply(proxies['hunterXConnectionHub'], $.merge(["GetPlayerInfo"], $.makeArray(arguments)));
},
markViewedLastBonusWin: function (tokenKey, gameId, bonusKey) {
return proxies['hunterXConnectionHub'].invoke.apply(proxies['hunterXConnectionHub'], $.merge(["MarkViewedLastBonusWin"], $.makeArray(arguments)));
},
ping: function (tokenKey, gameId) {
return proxies['hunterXConnectionHub'].invoke.apply(proxies['hunterXConnectionHub'], $.merge(["Ping"], $.makeArray(arguments)));
},
postCustomEvent: function (tokenKey, gameId, customEvent) {
return proxies['hunterXConnectionHub'].invoke.apply(proxies['hunterXConnectionHub'], $.merge(["PostCustomEvent"], $.makeArray(arguments)));
},
riskBonusGame: function (tokenKey, gameId, bonusStartKey) {
return proxies['hunterXConnectionHub'].invoke.apply(proxies['hunterXConnectionHub'], $.merge(["RiskBonusGame"], $.makeArray(arguments)));
}
};
proxies['mineIslandConnectionHub'] = this.createHubProxy('mineIslandConnectionHub');
proxies['mineIslandConnectionHub'].client = { };
proxies['mineIslandConnectionHub'].server = {
cashout: function () {
return proxies['mineIslandConnectionHub'].invoke.apply(proxies['mineIslandConnectionHub'], $.merge(["Cashout"], $.makeArray(arguments)));
},
getHighScores: function () {
return proxies['mineIslandConnectionHub'].invoke.apply(proxies['mineIslandConnectionHub'], $.merge(["GetHighScores"], $.makeArray(arguments)));
},
getMyScores: function () {
return proxies['mineIslandConnectionHub'].invoke.apply(proxies['mineIslandConnectionHub'], $.merge(["GetMyScores"], $.makeArray(arguments)));
},
makeMove: function () {
return proxies['mineIslandConnectionHub'].invoke.apply(proxies['mineIslandConnectionHub'], $.merge(["MakeMove"], $.makeArray(arguments)));
},
timerPing: function () {
return proxies['mineIslandConnectionHub'].invoke.apply(proxies['mineIslandConnectionHub'], $.merge(["TimerPing"], $.makeArray(arguments)));
}
};
proxies['plinkoXConnectionHub'] = this.createHubProxy('plinkoXConnectionHub');
proxies['plinkoXConnectionHub'].client = { };
proxies['plinkoXConnectionHub'].server = {
autoplayToggle: function (tokenKey, gameId, autoplay) {
return proxies['plinkoXConnectionHub'].invoke.apply(proxies['plinkoXConnectionHub'], $.merge(["AutoplayToggle"], $.makeArray(arguments)));
},
bet: function (tokenKey, gameId, bet, isAutoplaySpin) {
return proxies['plinkoXConnectionHub'].invoke.apply(proxies['plinkoXConnectionHub'], $.merge(["Bet"], $.makeArray(arguments)));
},
completeBet: function (tokenKey, gameId, ballid) {
return proxies['plinkoXConnectionHub'].invoke.apply(proxies['plinkoXConnectionHub'], $.merge(["CompleteBet"], $.makeArray(arguments)));
},
getinfo: function (tokenKey, gameId, firstLoad) {
return proxies['plinkoXConnectionHub'].invoke.apply(proxies['plinkoXConnectionHub'], $.merge(["Getinfo"], $.makeArray(arguments)));
},
postCustomEvent: function (tokenKey, gameId, customEvent) {
return proxies['plinkoXConnectionHub'].invoke.apply(proxies['plinkoXConnectionHub'], $.merge(["PostCustomEvent"], $.makeArray(arguments)));
},
postMessage: function (tokenKey, gameid, message) {
return proxies['plinkoXConnectionHub'].invoke.apply(proxies['plinkoXConnectionHub'], $.merge(["PostMessage"], $.makeArray(arguments)));
}
};
proxies['rollXConnectionHub'] = this.createHubProxy('rollXConnectionHub');
proxies['rollXConnectionHub'].client = { };
proxies['rollXConnectionHub'].server = {
bet: function (tokenKey, gameId, betAmount, winMultiplier, isAutoplay, isTurbo, autoplayBalanceDecrease, autoplayBalanceIncrease, autoplaySingleWin, autoplaySpinsLeft) {
return proxies['rollXConnectionHub'].invoke.apply(proxies['rollXConnectionHub'], $.merge(["Bet"], $.makeArray(arguments)));
},
getGameHistoryInfo: function (tokenKey, gameId) {
return proxies['rollXConnectionHub'].invoke.apply(proxies['rollXConnectionHub'], $.merge(["GetGameHistoryInfo"], $.makeArray(arguments)));
},
getGameInfo: function (tokenKey, gameId) {
return proxies['rollXConnectionHub'].invoke.apply(proxies['rollXConnectionHub'], $.merge(["GetGameInfo"], $.makeArray(arguments)));
},
getPlayerInfo: function (tokenKey, gameId) {
return proxies['rollXConnectionHub'].invoke.apply(proxies['rollXConnectionHub'], $.merge(["GetPlayerInfo"], $.makeArray(arguments)));
},
postCustomEvent: function (tokenKey, gameId, customEvent) {
return proxies['rollXConnectionHub'].invoke.apply(proxies['rollXConnectionHub'], $.merge(["PostCustomEvent"], $.makeArray(arguments)));
}
};
proxies['smashXConnectionHub'] = this.createHubProxy('smashXConnectionHub');
proxies['smashXConnectionHub'].client = { };
proxies['smashXConnectionHub'].server = {
getHighScores: function () {
return proxies['smashXConnectionHub'].invoke.apply(proxies['smashXConnectionHub'], $.merge(["GetHighScores"], $.makeArray(arguments)));
},
getMyScores: function () {
return proxies['smashXConnectionHub'].invoke.apply(proxies['smashXConnectionHub'], $.merge(["GetMyScores"], $.makeArray(arguments)));
},
timerPing: function () {
return proxies['smashXConnectionHub'].invoke.apply(proxies['smashXConnectionHub'], $.merge(["TimerPing"], $.makeArray(arguments)));
},
toggle: function (isPaused) {
return proxies['smashXConnectionHub'].invoke.apply(proxies['smashXConnectionHub'], $.merge(["Toggle"], $.makeArray(arguments)));
}
};
proxies['vaBankConnectionHub'] = this.createHubProxy('vaBankConnectionHub');
proxies['vaBankConnectionHub'].client = { };
proxies['vaBankConnectionHub'].server = {
};
return proxies;
};
signalR.hub = $.hubConnection("/Balloon/signalr", { useDefaultPath: false });
$.extend(signalR, signalR.hub.createHubProxies());
}(window.jQuery, window));