Type.registerNamespace('GG');
GG.SNWS=function() {
GG.SNWS.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
GG.SNWS.prototype={
IsRegisteredAtGG:function(socialNetworkType,remoteUserID,succeededCallback, failedCallback, userContext) {
return this._invoke(GG.SNWS.get_path(), 'IsRegisteredAtGG',false,{socialNetworkType:socialNetworkType,remoteUserID:remoteUserID},succeededCallback,failedCallback,userContext); },
LogUserIn:function(socialNetworkType,remoteUserID,succeededCallback, failedCallback, userContext) {
return this._invoke(GG.SNWS.get_path(), 'LogUserIn',false,{socialNetworkType:socialNetworkType,remoteUserID:remoteUserID},succeededCallback,failedCallback,userContext); },
LinkUser:function(socialNetworkType,remoteUserID,succeededCallback, failedCallback, userContext) {
return this._invoke(GG.SNWS.get_path(), 'LinkUser',false,{socialNetworkType:socialNetworkType,remoteUserID:remoteUserID},succeededCallback,failedCallback,userContext); },
GetCIVoteJSON:function(socialNetworkType,contentID,isGrind,succeededCallback, failedCallback, userContext) {
return this._invoke(GG.SNWS.get_path(), 'GetCIVoteJSON',false,{socialNetworkType:socialNetworkType,contentID:contentID,isGrind:isGrind},succeededCallback,failedCallback,userContext); },
GetCICommentJSON:function(socialNetworkType,commentID,succeededCallback, failedCallback, userContext) {
return this._invoke(GG.SNWS.get_path(), 'GetCICommentJSON',false,{socialNetworkType:socialNetworkType,commentID:commentID},succeededCallback,failedCallback,userContext); },
GetCISubmissionJSON:function(socialNetworkType,contentID,succeededCallback, failedCallback, userContext) {
return this._invoke(GG.SNWS.get_path(), 'GetCISubmissionJSON',false,{socialNetworkType:socialNetworkType,contentID:contentID},succeededCallback,failedCallback,userContext); }}
GG.SNWS.registerClass('GG.SNWS',Sys.Net.WebServiceProxy);
GG.SNWS._staticInstance = new GG.SNWS();
GG.SNWS.set_path = function(value) { GG.SNWS._staticInstance._path = value; }
GG.SNWS.get_path = function() { return GG.SNWS._staticInstance._path; }
GG.SNWS.set_timeout = function(value) { GG.SNWS._staticInstance._timeout = value; }
GG.SNWS.get_timeout = function() { return GG.SNWS._staticInstance._timeout; }
GG.SNWS.set_defaultUserContext = function(value) { GG.SNWS._staticInstance._userContext = value; }
GG.SNWS.get_defaultUserContext = function() { return GG.SNWS._staticInstance._userContext; }
GG.SNWS.set_defaultSucceededCallback = function(value) { GG.SNWS._staticInstance._succeeded = value; }
GG.SNWS.get_defaultSucceededCallback = function() { return GG.SNWS._staticInstance._succeeded; }
GG.SNWS.set_defaultFailedCallback = function(value) { GG.SNWS._staticInstance._failed = value; }
GG.SNWS.get_defaultFailedCallback = function() { return GG.SNWS._staticInstance._failed; }
GG.SNWS.set_path("/services/SocialNetworkWebService.asmx");
GG.SNWS.IsRegisteredAtGG= function(socialNetworkType,remoteUserID,onSuccess,onFailed,userContext) {GG.SNWS._staticInstance.IsRegisteredAtGG(socialNetworkType,remoteUserID,onSuccess,onFailed,userContext); }
GG.SNWS.LogUserIn= function(socialNetworkType,remoteUserID,onSuccess,onFailed,userContext) {GG.SNWS._staticInstance.LogUserIn(socialNetworkType,remoteUserID,onSuccess,onFailed,userContext); }
GG.SNWS.LinkUser= function(socialNetworkType,remoteUserID,onSuccess,onFailed,userContext) {GG.SNWS._staticInstance.LinkUser(socialNetworkType,remoteUserID,onSuccess,onFailed,userContext); }
GG.SNWS.GetCIVoteJSON= function(socialNetworkType,contentID,isGrind,onSuccess,onFailed,userContext) {GG.SNWS._staticInstance.GetCIVoteJSON(socialNetworkType,contentID,isGrind,onSuccess,onFailed,userContext); }
GG.SNWS.GetCICommentJSON= function(socialNetworkType,commentID,onSuccess,onFailed,userContext) {GG.SNWS._staticInstance.GetCICommentJSON(socialNetworkType,commentID,onSuccess,onFailed,userContext); }
GG.SNWS.GetCISubmissionJSON= function(socialNetworkType,contentID,onSuccess,onFailed,userContext) {GG.SNWS._staticInstance.GetCISubmissionJSON(socialNetworkType,contentID,onSuccess,onFailed,userContext); }
