Type.registerNamespace('GG');
GG.WS=function() {
GG.WS.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
GG.WS.prototype={
Vote:function(type,itemID,isNo,succeededCallback, failedCallback, userContext) {
return this._invoke(GG.WS.get_path(), 'Vote',false,{type:type,itemID:itemID,isNo:isNo},succeededCallback,failedCallback,userContext); },
Favorite:function(actionChar,itemID,succeededCallback, failedCallback, userContext) {
return this._invoke(GG.WS.get_path(), 'Favorite',false,{actionChar:actionChar,itemID:itemID},succeededCallback,failedCallback,userContext); },
DeleteFavorites:function(itemIDList,succeededCallback, failedCallback, userContext) {
return this._invoke(GG.WS.get_path(), 'DeleteFavorites',false,{itemIDList:itemIDList},succeededCallback,failedCallback,userContext); },
DeleteTrackedItems:function(itemIDList,succeededCallback, failedCallback, userContext) {
return this._invoke(GG.WS.get_path(), 'DeleteTrackedItems',false,{itemIDList:itemIDList},succeededCallback,failedCallback,userContext); },
RenderControl:function(type,parm1,parm2,parm3,parm4,parm5,parm6,parm7,parm8,parm9,succeededCallback, failedCallback, userContext) {
return this._invoke(GG.WS.get_path(), 'RenderControl',true,{type:type,parm1:parm1,parm2:parm2,parm3:parm3,parm4:parm4,parm5:parm5,parm6:parm6,parm7:parm7,parm8:parm8,parm9:parm9},succeededCallback,failedCallback,userContext); },
ReportThis:function(contentItemID,reason,description,succeededCallback, failedCallback, userContext) {
return this._invoke(GG.WS.get_path(), 'ReportThis',false,{contentItemID:contentItemID,reason:reason,description:description},succeededCallback,failedCallback,userContext); },
AddFriend:function(targetUserID,message,succeededCallback, failedCallback, userContext) {
return this._invoke(GG.WS.get_path(), 'AddFriend',false,{targetUserID:targetUserID,message:message},succeededCallback,failedCallback,userContext); },
FollowUser:function(targetUserID,succeededCallback, failedCallback, userContext) {
return this._invoke(GG.WS.get_path(), 'FollowUser',false,{targetUserID:targetUserID},succeededCallback,failedCallback,userContext); },
StopFollowingUser:function(targetUserID,succeededCallback, failedCallback, userContext) {
return this._invoke(GG.WS.get_path(), 'StopFollowingUser',false,{targetUserID:targetUserID},succeededCallback,failedCallback,userContext); },
CloseSystemMessage:function(context,close,succeededCallback, failedCallback, userContext) {
return this._invoke(GG.WS.get_path(), 'CloseSystemMessage',false,{context:context,close:close},succeededCallback,failedCallback,userContext); },
SetUserPreference:function(key,value,succeededCallback, failedCallback, userContext) {
return this._invoke(GG.WS.get_path(), 'SetUserPreference',false,{key:key,value:value},succeededCallback,failedCallback,userContext); },
GetContentItemClientData:function(contentItemID,succeededCallback, failedCallback, userContext) {
return this._invoke(GG.WS.get_path(), 'GetContentItemClientData',false,{contentItemID:contentItemID},succeededCallback,failedCallback,userContext); },
EditComment:function(commentID,commentText,succeededCallback, failedCallback, userContext) {
return this._invoke(GG.WS.get_path(), 'EditComment',false,{commentID:commentID,commentText:commentText},succeededCallback,failedCallback,userContext); },
EditContentItem:function(contentItemID,title,description,succeededCallback, failedCallback, userContext) {
return this._invoke(GG.WS.get_path(), 'EditContentItem',false,{contentItemID:contentItemID,title:title,description:description},succeededCallback,failedCallback,userContext); },
MessageUser:function(userID,subject,message,succeededCallback, failedCallback, userContext) {
return this._invoke(GG.WS.get_path(), 'MessageUser',false,{userID:userID,subject:subject,message:message},succeededCallback,failedCallback,userContext); },
ImportEmails:function(username,password,type,succeededCallback, failedCallback, userContext) {
return this._invoke(GG.WS.get_path(), 'ImportEmails',false,{username:username,password:password,type:type},succeededCallback,failedCallback,userContext); },
HtmlEncode:function(textToFormat,succeededCallback, failedCallback, userContext) {
return this._invoke(GG.WS.get_path(), 'HtmlEncode',false,{textToFormat:textToFormat},succeededCallback,failedCallback,userContext); }}
GG.WS.registerClass('GG.WS',Sys.Net.WebServiceProxy);
GG.WS._staticInstance = new GG.WS();
GG.WS.set_path = function(value) { GG.WS._staticInstance._path = value; }
GG.WS.get_path = function() { return GG.WS._staticInstance._path; }
GG.WS.set_timeout = function(value) { GG.WS._staticInstance._timeout = value; }
GG.WS.get_timeout = function() { return GG.WS._staticInstance._timeout; }
GG.WS.set_defaultUserContext = function(value) { GG.WS._staticInstance._userContext = value; }
GG.WS.get_defaultUserContext = function() { return GG.WS._staticInstance._userContext; }
GG.WS.set_defaultSucceededCallback = function(value) { GG.WS._staticInstance._succeeded = value; }
GG.WS.get_defaultSucceededCallback = function() { return GG.WS._staticInstance._succeeded; }
GG.WS.set_defaultFailedCallback = function(value) { GG.WS._staticInstance._failed = value; }
GG.WS.get_defaultFailedCallback = function() { return GG.WS._staticInstance._failed; }
GG.WS.set_path("/services/UserWebService.asmx");
GG.WS.Vote= function(type,itemID,isNo,onSuccess,onFailed,userContext) {GG.WS._staticInstance.Vote(type,itemID,isNo,onSuccess,onFailed,userContext); }
GG.WS.Favorite= function(actionChar,itemID,onSuccess,onFailed,userContext) {GG.WS._staticInstance.Favorite(actionChar,itemID,onSuccess,onFailed,userContext); }
GG.WS.DeleteFavorites= function(itemIDList,onSuccess,onFailed,userContext) {GG.WS._staticInstance.DeleteFavorites(itemIDList,onSuccess,onFailed,userContext); }
GG.WS.DeleteTrackedItems= function(itemIDList,onSuccess,onFailed,userContext) {GG.WS._staticInstance.DeleteTrackedItems(itemIDList,onSuccess,onFailed,userContext); }
GG.WS.RenderControl= function(type,parm1,parm2,parm3,parm4,parm5,parm6,parm7,parm8,parm9,onSuccess,onFailed,userContext) {GG.WS._staticInstance.RenderControl(type,parm1,parm2,parm3,parm4,parm5,parm6,parm7,parm8,parm9,onSuccess,onFailed,userContext); }
GG.WS.ReportThis= function(contentItemID,reason,description,onSuccess,onFailed,userContext) {GG.WS._staticInstance.ReportThis(contentItemID,reason,description,onSuccess,onFailed,userContext); }
GG.WS.AddFriend= function(targetUserID,message,onSuccess,onFailed,userContext) {GG.WS._staticInstance.AddFriend(targetUserID,message,onSuccess,onFailed,userContext); }
GG.WS.FollowUser= function(targetUserID,onSuccess,onFailed,userContext) {GG.WS._staticInstance.FollowUser(targetUserID,onSuccess,onFailed,userContext); }
GG.WS.StopFollowingUser= function(targetUserID,onSuccess,onFailed,userContext) {GG.WS._staticInstance.StopFollowingUser(targetUserID,onSuccess,onFailed,userContext); }
GG.WS.CloseSystemMessage= function(context,close,onSuccess,onFailed,userContext) {GG.WS._staticInstance.CloseSystemMessage(context,close,onSuccess,onFailed,userContext); }
GG.WS.SetUserPreference= function(key,value,onSuccess,onFailed,userContext) {GG.WS._staticInstance.SetUserPreference(key,value,onSuccess,onFailed,userContext); }
GG.WS.GetContentItemClientData= function(contentItemID,onSuccess,onFailed,userContext) {GG.WS._staticInstance.GetContentItemClientData(contentItemID,onSuccess,onFailed,userContext); }
GG.WS.EditComment= function(commentID,commentText,onSuccess,onFailed,userContext) {GG.WS._staticInstance.EditComment(commentID,commentText,onSuccess,onFailed,userContext); }
GG.WS.EditContentItem= function(contentItemID,title,description,onSuccess,onFailed,userContext) {GG.WS._staticInstance.EditContentItem(contentItemID,title,description,onSuccess,onFailed,userContext); }
GG.WS.MessageUser= function(userID,subject,message,onSuccess,onFailed,userContext) {GG.WS._staticInstance.MessageUser(userID,subject,message,onSuccess,onFailed,userContext); }
GG.WS.ImportEmails= function(username,password,type,onSuccess,onFailed,userContext) {GG.WS._staticInstance.ImportEmails(username,password,type,onSuccess,onFailed,userContext); }
GG.WS.HtmlEncode= function(textToFormat,onSuccess,onFailed,userContext) {GG.WS._staticInstance.HtmlEncode(textToFormat,onSuccess,onFailed,userContext); }
Type.registerNamespace('GlobalGrind.Data');
if (typeof(GlobalGrind.Data.ContactProviderType) === 'undefined') {
GlobalGrind.Data.ContactProviderType = function() { throw Error.invalidOperation(); }
GlobalGrind.Data.ContactProviderType.prototype = {Hotmail: 0,MSN: 1,Live: 2,Yahoo: 3,Gmail: 4,AOL: 5,Myspace: 6,Linkedin: 7,Quicklist: 8}
GlobalGrind.Data.ContactProviderType.registerEnum('GlobalGrind.Data.ContactProviderType', true);
}
