/*!
* ASP.NET SignalR JavaScript Library v2.2.2
* 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['onlineLiveHub'] = this.createHubProxy('onlineLiveHub');
proxies['onlineLiveHub'].client = { };
proxies['onlineLiveHub'].server = {
cancelEssenceMessage: function (groupName, prosemId, id) {
return proxies['onlineLiveHub'].invoke.apply(proxies['onlineLiveHub'], $.merge(["CancelEssenceMessage"], $.makeArray(arguments)));
},
deleteMessage: function (groupName, prosemId, id) {
return proxies['onlineLiveHub'].invoke.apply(proxies['onlineLiveHub'], $.merge(["DeleteMessage"], $.makeArray(arguments)));
},
essenceMessage: function (groupName, prosemId, id) {
return proxies['onlineLiveHub'].invoke.apply(proxies['onlineLiveHub'], $.merge(["EssenceMessage"], $.makeArray(arguments)));
},
joinGroup: function (groupName, messageType) {
return proxies['onlineLiveHub'].invoke.apply(proxies['onlineLiveHub'], $.merge(["JoinGroup"], $.makeArray(arguments)));
},
joinHistory: function (groupName, prosemId) {
return proxies['onlineLiveHub'].invoke.apply(proxies['onlineLiveHub'], $.merge(["JoinHistory"], $.makeArray(arguments)));
},
manageHistory: function (groupName, prosemId) {
return proxies['onlineLiveHub'].invoke.apply(proxies['onlineLiveHub'], $.merge(["ManageHistory"], $.makeArray(arguments)));
},
manageJoinGroup: function (groupName, messageType) {
return proxies['onlineLiveHub'].invoke.apply(proxies['onlineLiveHub'], $.merge(["ManageJoinGroup"], $.makeArray(arguments)));
},
manageSendMsg: function (groupName, prosemId, msg, messageType) {
return proxies['onlineLiveHub'].invoke.apply(proxies['onlineLiveHub'], $.merge(["ManageSendMsg"], $.makeArray(arguments)));
},
searchMessage: function (groupName, prosemId, action, searchType, searchChapter) {
return proxies['onlineLiveHub'].invoke.apply(proxies['onlineLiveHub'], $.merge(["SearchMessage"], $.makeArray(arguments)));
},
sendMessage: function (groupName, prosemId, toUserId, toUserName, typeId, infoChapter, content, messageType, userId, userName, role) {
return proxies['onlineLiveHub'].invoke.apply(proxies['onlineLiveHub'], $.merge(["SendMessage"], $.makeArray(arguments)));
},
sendMessageTo: function (groupName, prosemId, content, questionId, messageType, userId, userName, role) {
return proxies['onlineLiveHub'].invoke.apply(proxies['onlineLiveHub'], $.merge(["SendMessageTo"], $.makeArray(arguments)));
},
sendPrizeBegin: function (groupName) {
return proxies['onlineLiveHub'].invoke.apply(proxies['onlineLiveHub'], $.merge(["SendPrizeBegin"], $.makeArray(arguments)));
},
sendPrizeBegin2: function (groupName) {
return proxies['onlineLiveHub'].invoke.apply(proxies['onlineLiveHub'], $.merge(["SendPrizeBegin2"], $.makeArray(arguments)));
},
sendPrizeEnd: function (groupName) {
return proxies['onlineLiveHub'].invoke.apply(proxies['onlineLiveHub'], $.merge(["SendPrizeEnd"], $.makeArray(arguments)));
},
sendPrizeEnd2: function (groupName) {
return proxies['onlineLiveHub'].invoke.apply(proxies['onlineLiveHub'], $.merge(["SendPrizeEnd2"], $.makeArray(arguments)));
},
sendPushMessage: function (prosemId, msg) {
return proxies['onlineLiveHub'].invoke.apply(proxies['onlineLiveHub'], $.merge(["SendPushMessage"], $.makeArray(arguments)));
},
topMessage: function (groupName, prosemId, id) {
return proxies['onlineLiveHub'].invoke.apply(proxies['onlineLiveHub'], $.merge(["TopMessage"], $.makeArray(arguments)));
}
};
proxies['onlineShowHub'] = this.createHubProxy('onlineShowHub');
proxies['onlineShowHub'].client = { };
proxies['onlineShowHub'].server = {
deleteMessage: function (groupName, prosemId, id) {
return proxies['onlineShowHub'].invoke.apply(proxies['onlineShowHub'], $.merge(["DeleteMessage"], $.makeArray(arguments)));
},
essenceMessage: function (groupName, prosemId, id) {
return proxies['onlineShowHub'].invoke.apply(proxies['onlineShowHub'], $.merge(["EssenceMessage"], $.makeArray(arguments)));
},
joinGroup: function (groupName, messageType) {
return proxies['onlineShowHub'].invoke.apply(proxies['onlineShowHub'], $.merge(["JoinGroup"], $.makeArray(arguments)));
},
joinHistory: function (groupName, prosemId) {
return proxies['onlineShowHub'].invoke.apply(proxies['onlineShowHub'], $.merge(["JoinHistory"], $.makeArray(arguments)));
},
manageHistory: function (groupName, prosemId) {
return proxies['onlineShowHub'].invoke.apply(proxies['onlineShowHub'], $.merge(["ManageHistory"], $.makeArray(arguments)));
},
manageJoinGroup: function (groupName, messageType) {
return proxies['onlineShowHub'].invoke.apply(proxies['onlineShowHub'], $.merge(["ManageJoinGroup"], $.makeArray(arguments)));
},
manageSendMsg: function (groupName, prosemId, msg, messageType) {
return proxies['onlineShowHub'].invoke.apply(proxies['onlineShowHub'], $.merge(["ManageSendMsg"], $.makeArray(arguments)));
},
searchMessage: function (groupName, prosemId, action, searchType, searchChapter) {
return proxies['onlineShowHub'].invoke.apply(proxies['onlineShowHub'], $.merge(["SearchMessage"], $.makeArray(arguments)));
},
sendMessage: function (groupName, prosemId, toUserId, toUserName, typeId, infoChapter, content, messageType) {
return proxies['onlineShowHub'].invoke.apply(proxies['onlineShowHub'], $.merge(["SendMessage"], $.makeArray(arguments)));
},
sendMessageTo: function (groupName, prosemId, content, questionId, messageType) {
return proxies['onlineShowHub'].invoke.apply(proxies['onlineShowHub'], $.merge(["SendMessageTo"], $.makeArray(arguments)));
},
topMessage: function (groupName, prosemId, id) {
return proxies['onlineShowHub'].invoke.apply(proxies['onlineShowHub'], $.merge(["TopMessage"], $.makeArray(arguments)));
}
};
proxies['onlineWordsHub'] = this.createHubProxy('onlineWordsHub');
proxies['onlineWordsHub'].client = { };
proxies['onlineWordsHub'].server = {
cancelChatEssenceMessage: function (groupName, prosemId, id) {
return proxies['onlineWordsHub'].invoke.apply(proxies['onlineWordsHub'], $.merge(["CancelChatEssenceMessage"], $.makeArray(arguments)));
},
cancelChatTopMessage: function (groupName, prosemId) {
return proxies['onlineWordsHub'].invoke.apply(proxies['onlineWordsHub'], $.merge(["CancelChatTopMessage"], $.makeArray(arguments)));
},
cancelEssenceMessage: function (groupName, prosemId, id) {
return proxies['onlineWordsHub'].invoke.apply(proxies['onlineWordsHub'], $.merge(["CancelEssenceMessage"], $.makeArray(arguments)));
},
cancelTopMessage: function (groupName, prosemId, qid) {
return proxies['onlineWordsHub'].invoke.apply(proxies['onlineWordsHub'], $.merge(["CancelTopMessage"], $.makeArray(arguments)));
},
chatDeleteMessage: function (groupName, prosemId, id) {
return proxies['onlineWordsHub'].invoke.apply(proxies['onlineWordsHub'], $.merge(["ChatDeleteMessage"], $.makeArray(arguments)));
},
chatEssenceMessage: function (groupName, prosemId, id) {
return proxies['onlineWordsHub'].invoke.apply(proxies['onlineWordsHub'], $.merge(["ChatEssenceMessage"], $.makeArray(arguments)));
},
chatJoinGroup: function (groupName, messageType) {
return proxies['onlineWordsHub'].invoke.apply(proxies['onlineWordsHub'], $.merge(["ChatJoinGroup"], $.makeArray(arguments)));
},
chatJoinHistory: function (groupName, prosemId) {
return proxies['onlineWordsHub'].invoke.apply(proxies['onlineWordsHub'], $.merge(["ChatJoinHistory"], $.makeArray(arguments)));
},
chatSendMesage: function (groupName, prosemId, content, messageType, onlineWorkId, toUserName, toUserId) {
return proxies['onlineWordsHub'].invoke.apply(proxies['onlineWordsHub'], $.merge(["ChatSendMesage"], $.makeArray(arguments)));
},
chatTopMessage: function (groupName, prosemId, id) {
return proxies['onlineWordsHub'].invoke.apply(proxies['onlineWordsHub'], $.merge(["ChatTopMessage"], $.makeArray(arguments)));
},
deleteMessage: function (groupName, prosemId, id) {
return proxies['onlineWordsHub'].invoke.apply(proxies['onlineWordsHub'], $.merge(["DeleteMessage"], $.makeArray(arguments)));
},
essenceMessage: function (groupName, prosemId, id) {
return proxies['onlineWordsHub'].invoke.apply(proxies['onlineWordsHub'], $.merge(["EssenceMessage"], $.makeArray(arguments)));
},
joinGroup: function (groupName, messageType) {
return proxies['onlineWordsHub'].invoke.apply(proxies['onlineWordsHub'], $.merge(["JoinGroup"], $.makeArray(arguments)));
},
joinHistory: function (groupName, prosemId) {
return proxies['onlineWordsHub'].invoke.apply(proxies['onlineWordsHub'], $.merge(["JoinHistory"], $.makeArray(arguments)));
},
likeMessage: function (groupName, prosemId, id, messageType, type) {
return proxies['onlineWordsHub'].invoke.apply(proxies['onlineWordsHub'], $.merge(["LikeMessage"], $.makeArray(arguments)));
},
manageHistory: function (groupName, prosemId) {
return proxies['onlineWordsHub'].invoke.apply(proxies['onlineWordsHub'], $.merge(["ManageHistory"], $.makeArray(arguments)));
},
manageJoinGroup: function (groupName, messageType) {
return proxies['onlineWordsHub'].invoke.apply(proxies['onlineWordsHub'], $.merge(["ManageJoinGroup"], $.makeArray(arguments)));
},
manageSendMsg: function (groupName, prosemId, msg, messageType) {
return proxies['onlineWordsHub'].invoke.apply(proxies['onlineWordsHub'], $.merge(["ManageSendMsg"], $.makeArray(arguments)));
},
searchMessage: function (groupName, prosemId, action) {
return proxies['onlineWordsHub'].invoke.apply(proxies['onlineWordsHub'], $.merge(["SearchMessage"], $.makeArray(arguments)));
},
sendBrushBegin: function (groupName, speed, count, meetId) {
return proxies['onlineWordsHub'].invoke.apply(proxies['onlineWordsHub'], $.merge(["SendBrushBegin"], $.makeArray(arguments)));
},
sendMessage: function (groupName, prosemId, content, messageType, meetId, meetName, companyId, location) {
return proxies['onlineWordsHub'].invoke.apply(proxies['onlineWordsHub'], $.merge(["SendMessage"], $.makeArray(arguments)));
},
sendMessageTo: function (groupName, prosemId, content, questionId, messageType, roomType) {
return proxies['onlineWordsHub'].invoke.apply(proxies['onlineWordsHub'], $.merge(["SendMessageTo"], $.makeArray(arguments)));
},
sendWallMessage: function (groupName, prosemId, questionId, messageType, IsWall) {
return proxies['onlineWordsHub'].invoke.apply(proxies['onlineWordsHub'], $.merge(["SendWallMessage"], $.makeArray(arguments)));
},
topMessage: function (groupName, prosemId, id, msg) {
return proxies['onlineWordsHub'].invoke.apply(proxies['onlineWordsHub'], $.merge(["TopMessage"], $.makeArray(arguments)));
},
updateMessage: function (groupName, prosemId, id, content, meetId, meetName, companyId, location) {
return proxies['onlineWordsHub'].invoke.apply(proxies['onlineWordsHub'], $.merge(["UpdateMessage"], $.makeArray(arguments)));
}
};
proxies['onlineWordsShowHub'] = this.createHubProxy('onlineWordsShowHub');
proxies['onlineWordsShowHub'].client = { };
proxies['onlineWordsShowHub'].server = {
chatDeleteMessage: function (groupName, prosemId, id) {
return proxies['onlineWordsShowHub'].invoke.apply(proxies['onlineWordsShowHub'], $.merge(["ChatDeleteMessage"], $.makeArray(arguments)));
},
chatEssenceMessage: function (groupName, prosemId, id) {
return proxies['onlineWordsShowHub'].invoke.apply(proxies['onlineWordsShowHub'], $.merge(["ChatEssenceMessage"], $.makeArray(arguments)));
},
chatJoinGroup: function (groupName, messageType) {
return proxies['onlineWordsShowHub'].invoke.apply(proxies['onlineWordsShowHub'], $.merge(["ChatJoinGroup"], $.makeArray(arguments)));
},
chatJoinHistory: function (groupName, prosemId) {
return proxies['onlineWordsShowHub'].invoke.apply(proxies['onlineWordsShowHub'], $.merge(["ChatJoinHistory"], $.makeArray(arguments)));
},
chatSendMesage: function (groupName, prosemId, content, messageType, onlineWorkId, toUserName, toUserId) {
return proxies['onlineWordsShowHub'].invoke.apply(proxies['onlineWordsShowHub'], $.merge(["ChatSendMesage"], $.makeArray(arguments)));
},
chatTopMessage: function (groupName, prosemId, id) {
return proxies['onlineWordsShowHub'].invoke.apply(proxies['onlineWordsShowHub'], $.merge(["ChatTopMessage"], $.makeArray(arguments)));
},
deleteMessage: function (groupName, prosemId, id) {
return proxies['onlineWordsShowHub'].invoke.apply(proxies['onlineWordsShowHub'], $.merge(["DeleteMessage"], $.makeArray(arguments)));
},
essenceMessage: function (groupName, prosemId, id) {
return proxies['onlineWordsShowHub'].invoke.apply(proxies['onlineWordsShowHub'], $.merge(["EssenceMessage"], $.makeArray(arguments)));
},
joinGroup: function (groupName, messageType) {
return proxies['onlineWordsShowHub'].invoke.apply(proxies['onlineWordsShowHub'], $.merge(["JoinGroup"], $.makeArray(arguments)));
},
joinHistory: function (groupName, prosemId) {
return proxies['onlineWordsShowHub'].invoke.apply(proxies['onlineWordsShowHub'], $.merge(["JoinHistory"], $.makeArray(arguments)));
},
manageHistory: function (groupName, prosemId) {
return proxies['onlineWordsShowHub'].invoke.apply(proxies['onlineWordsShowHub'], $.merge(["ManageHistory"], $.makeArray(arguments)));
},
manageJoinGroup: function (groupName, messageType) {
return proxies['onlineWordsShowHub'].invoke.apply(proxies['onlineWordsShowHub'], $.merge(["ManageJoinGroup"], $.makeArray(arguments)));
},
manageSendMsg: function (groupName, prosemId, msg, messageType) {
return proxies['onlineWordsShowHub'].invoke.apply(proxies['onlineWordsShowHub'], $.merge(["ManageSendMsg"], $.makeArray(arguments)));
},
searchMessage: function (groupName, prosemId, action) {
return proxies['onlineWordsShowHub'].invoke.apply(proxies['onlineWordsShowHub'], $.merge(["SearchMessage"], $.makeArray(arguments)));
},
sendMessage: function (groupName, prosemId, content, messageType) {
return proxies['onlineWordsShowHub'].invoke.apply(proxies['onlineWordsShowHub'], $.merge(["SendMessage"], $.makeArray(arguments)));
},
sendMessageTo: function (groupName, prosemId, content, questionId, messageType, roomType) {
return proxies['onlineWordsShowHub'].invoke.apply(proxies['onlineWordsShowHub'], $.merge(["SendMessageTo"], $.makeArray(arguments)));
},
topMessage: function (groupName, prosemId, id, msg) {
return proxies['onlineWordsShowHub'].invoke.apply(proxies['onlineWordsShowHub'], $.merge(["TopMessage"], $.makeArray(arguments)));
}
};
return proxies;
};
signalR.hub = $.hubConnection("/signalr", { useDefaultPath: false });
$.extend(signalR, signalR.hub.createHubProxies());
}(window.jQuery, window));