var MessageService=function() {
MessageService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
MessageService.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return MessageService._staticInstance.get_path();},
CheckMessages:function(succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'CheckMessages',false,{},succeededCallback,failedCallback,userContext); },
CheckNotifications:function(succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'CheckNotifications',false,{},succeededCallback,failedCallback,userContext); },
RemovedExpiredItems:function(succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'RemovedExpiredItems',false,{},succeededCallback,failedCallback,userContext); },
AddToFavorites:function(category,name,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'AddToFavorites',false,{category:category,name:name},succeededCallback,failedCallback,userContext); },
RemoveFromFavorites:function(favId,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'RemoveFromFavorites',false,{favId:favId},succeededCallback,failedCallback,userContext); },
GetFavorites:function(succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetFavorites',false,{},succeededCallback,failedCallback,userContext); }}
MessageService.registerClass('MessageService',Sys.Net.WebServiceProxy);
MessageService._staticInstance = new MessageService();
MessageService.set_path = function(value) { MessageService._staticInstance.set_path(value); }
MessageService.get_path = function() { return MessageService._staticInstance.get_path(); }
MessageService.set_timeout = function(value) { MessageService._staticInstance.set_timeout(value); }
MessageService.get_timeout = function() { return MessageService._staticInstance.get_timeout(); }
MessageService.set_defaultUserContext = function(value) { MessageService._staticInstance.set_defaultUserContext(value); }
MessageService.get_defaultUserContext = function() { return MessageService._staticInstance.get_defaultUserContext(); }
MessageService.set_defaultSucceededCallback = function(value) { MessageService._staticInstance.set_defaultSucceededCallback(value); }
MessageService.get_defaultSucceededCallback = function() { return MessageService._staticInstance.get_defaultSucceededCallback(); }
MessageService.set_defaultFailedCallback = function(value) { MessageService._staticInstance.set_defaultFailedCallback(value); }
MessageService.get_defaultFailedCallback = function() { return MessageService._staticInstance.get_defaultFailedCallback(); }
MessageService.set_enableJsonp = function(value) { MessageService._staticInstance.set_enableJsonp(value); }
MessageService.get_enableJsonp = function() { return MessageService._staticInstance.get_enableJsonp(); }
MessageService.set_jsonpCallbackParameter = function(value) { MessageService._staticInstance.set_jsonpCallbackParameter(value); }
MessageService.get_jsonpCallbackParameter = function() { return MessageService._staticInstance.get_jsonpCallbackParameter(); }
MessageService.set_path("http://www.myonlineband.com/Services/MessageService.svc");
MessageService.CheckMessages= function(onSuccess,onFailed,userContext) {MessageService._staticInstance.CheckMessages(onSuccess,onFailed,userContext); }
MessageService.CheckNotifications= function(onSuccess,onFailed,userContext) {MessageService._staticInstance.CheckNotifications(onSuccess,onFailed,userContext); }
MessageService.RemovedExpiredItems= function(onSuccess,onFailed,userContext) {MessageService._staticInstance.RemovedExpiredItems(onSuccess,onFailed,userContext); }
MessageService.AddToFavorites= function(category,name,onSuccess,onFailed,userContext) {MessageService._staticInstance.AddToFavorites(category,name,onSuccess,onFailed,userContext); }
MessageService.RemoveFromFavorites= function(favId,onSuccess,onFailed,userContext) {MessageService._staticInstance.RemoveFromFavorites(favId,onSuccess,onFailed,userContext); }
MessageService.GetFavorites= function(onSuccess,onFailed,userContext) {MessageService._staticInstance.GetFavorites(onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('Potamos.Library');
if (typeof(Potamos.Library.Notification) === 'undefined') {
Potamos.Library.Notification=gtc("Notification:http://schemas.datacontract.org/2004/07/Potamos.Library");
Potamos.Library.Notification.registerClass('Potamos.Library.Notification');
}
if (typeof(Potamos.Library.UserFavorites) === 'undefined') {
Potamos.Library.UserFavorites=gtc("UserFavorites:http://schemas.datacontract.org/2004/07/Potamos.Library");
Potamos.Library.UserFavorites.registerClass('Potamos.Library.UserFavorites');
}
if (typeof(Potamos.Library.Favorite) === 'undefined') {
Potamos.Library.Favorite=gtc("Favorite:http://schemas.datacontract.org/2004/07/Potamos.Library");
Potamos.Library.Favorite.registerClass('Potamos.Library.Favorite');
}
if (typeof(Potamos.Library.NotificationType) === 'undefined') {
Potamos.Library.NotificationType = function() { throw Error.invalidOperation(); }
Potamos.Library.NotificationType.prototype = {NewMail: 0,PersonalChatMessage: 1,BandChatMessage: 2,WorkspaceUpdated: 3}
Potamos.Library.NotificationType.registerEnum('Potamos.Library.NotificationType', true);
}
if (typeof(Potamos.Library.FavoritesCategory) === 'undefined') {
Potamos.Library.FavoritesCategory = function() { throw Error.invalidOperation(); }
Potamos.Library.FavoritesCategory.prototype = {Artist: 0,Band: 1,Workspace: 2}
Potamos.Library.FavoritesCategory.registerEnum('Potamos.Library.FavoritesCategory', true);
}

