Type.registerNamespace('SelfcastWebServices');
SelfcastWebServices.ViewingService=function() {
SelfcastWebServices.ViewingService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
SelfcastWebServices.ViewingService.prototype={
LiveBroadcastForUser:function(UserName,succeededCallback, failedCallback, userContext) {
return this._invoke(SelfcastWebServices.ViewingService.get_path(), 'LiveBroadcastForUser',false,{UserName:UserName},succeededCallback,failedCallback,userContext); },
RecordingForUser:function(UserName,RecordingId,succeededCallback, failedCallback, userContext) {
return this._invoke(SelfcastWebServices.ViewingService.get_path(), 'RecordingForUser',false,{UserName:UserName,RecordingId:RecordingId},succeededCallback,failedCallback,userContext); },
KeepAliveViewer:function(StreamUrl,ViewerGuid,succeededCallback, failedCallback, userContext) {
return this._invoke(SelfcastWebServices.ViewingService.get_path(), 'KeepAliveViewer',false,{StreamUrl:StreamUrl,ViewerGuid:ViewerGuid},succeededCallback,failedCallback,userContext); },
GetCurrentViewerCount:function(StreamUrl,succeededCallback, failedCallback, userContext) {
return this._invoke(SelfcastWebServices.ViewingService.get_path(), 'GetCurrentViewerCount',false,{StreamUrl:StreamUrl},succeededCallback,failedCallback,userContext); },
RateItem:function(MediaItemId,Rating,succeededCallback, failedCallback, userContext) {
return this._invoke(SelfcastWebServices.ViewingService.get_path(), 'RateItem',false,{MediaItemId:MediaItemId,Rating:Rating},succeededCallback,failedCallback,userContext); },
Rate:function(StreamUrl,Rating,succeededCallback, failedCallback, userContext) {
return this._invoke(SelfcastWebServices.ViewingService.get_path(), 'Rate',false,{StreamUrl:StreamUrl,Rating:Rating},succeededCallback,failedCallback,userContext); },
GetCurrentRating:function(StreamUrl,succeededCallback, failedCallback, userContext) {
return this._invoke(SelfcastWebServices.ViewingService.get_path(), 'GetCurrentRating',false,{StreamUrl:StreamUrl},succeededCallback,failedCallback,userContext); },
GetViewingInfo:function(StreamUrl,succeededCallback, failedCallback, userContext) {
return this._invoke(SelfcastWebServices.ViewingService.get_path(), 'GetViewingInfo',false,{StreamUrl:StreamUrl},succeededCallback,failedCallback,userContext); },
Share:function(StreamUrl,EmailList,succeededCallback, failedCallback, userContext) {
return this._invoke(SelfcastWebServices.ViewingService.get_path(), 'Share',false,{StreamUrl:StreamUrl,EmailList:EmailList},succeededCallback,failedCallback,userContext); },
SharePage:function(PageUrl,UserName,EmailList,succeededCallback, failedCallback, userContext) {
return this._invoke(SelfcastWebServices.ViewingService.get_path(), 'SharePage',false,{PageUrl:PageUrl,UserName:UserName,EmailList:EmailList},succeededCallback,failedCallback,userContext); },
EmailBroadcaster:function(BroadcasterName,BroadcasterEmail,SenderName,SenderEmail,Subject,Message,succeededCallback, failedCallback, userContext) {
return this._invoke(SelfcastWebServices.ViewingService.get_path(), 'EmailBroadcaster',false,{BroadcasterName:BroadcasterName,BroadcasterEmail:BroadcasterEmail,SenderName:SenderName,SenderEmail:SenderEmail,Subject:Subject,Message:Message},succeededCallback,failedCallback,userContext); },
GetEmbedCode:function(StreamUrl,succeededCallback, failedCallback, userContext) {
return this._invoke(SelfcastWebServices.ViewingService.get_path(), 'GetEmbedCode',false,{StreamUrl:StreamUrl},succeededCallback,failedCallback,userContext); },
GetLinkCode:function(StreamUrl,succeededCallback, failedCallback, userContext) {
return this._invoke(SelfcastWebServices.ViewingService.get_path(), 'GetLinkCode',false,{StreamUrl:StreamUrl},succeededCallback,failedCallback,userContext); }}
SelfcastWebServices.ViewingService.registerClass('SelfcastWebServices.ViewingService',Sys.Net.WebServiceProxy);
SelfcastWebServices.ViewingService._staticInstance = new SelfcastWebServices.ViewingService();
SelfcastWebServices.ViewingService.set_path = function(value) { 
var e = Function._validateParams(arguments, [{name: 'path', type: String}]); if (e) throw e; SelfcastWebServices.ViewingService._staticInstance._path = value; }
SelfcastWebServices.ViewingService.get_path = function() { return SelfcastWebServices.ViewingService._staticInstance._path; }
SelfcastWebServices.ViewingService.set_timeout = function(value) { var e = Function._validateParams(arguments, [{name: 'timeout', type: Number}]); if (e) throw e; if (value < 0) { throw Error.argumentOutOfRange('value', value, Sys.Res.invalidTimeout); }
SelfcastWebServices.ViewingService._staticInstance._timeout = value; }
SelfcastWebServices.ViewingService.get_timeout = function() { 
return SelfcastWebServices.ViewingService._staticInstance._timeout; }
SelfcastWebServices.ViewingService.set_defaultUserContext = function(value) { 
SelfcastWebServices.ViewingService._staticInstance._userContext = value; }
SelfcastWebServices.ViewingService.get_defaultUserContext = function() { 
return SelfcastWebServices.ViewingService._staticInstance._userContext; }
SelfcastWebServices.ViewingService.set_defaultSucceededCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultSucceededCallback', type: Function}]); if (e) throw e; SelfcastWebServices.ViewingService._staticInstance._succeeded = value; }
SelfcastWebServices.ViewingService.get_defaultSucceededCallback = function() { 
return SelfcastWebServices.ViewingService._staticInstance._succeeded; }
SelfcastWebServices.ViewingService.set_defaultFailedCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultFailedCallback', type: Function}]); if (e) throw e; SelfcastWebServices.ViewingService._staticInstance._failed = value; }
SelfcastWebServices.ViewingService.get_defaultFailedCallback = function() { 
return SelfcastWebServices.ViewingService._staticInstance._failed; }
SelfcastWebServices.ViewingService.set_path("/WebServices/ViewingService.asmx");
SelfcastWebServices.ViewingService.LiveBroadcastForUser= function(UserName,onSuccess,onFailed,userContext) {SelfcastWebServices.ViewingService._staticInstance.LiveBroadcastForUser(UserName,onSuccess,onFailed,userContext); }
SelfcastWebServices.ViewingService.RecordingForUser= function(UserName,RecordingId,onSuccess,onFailed,userContext) {SelfcastWebServices.ViewingService._staticInstance.RecordingForUser(UserName,RecordingId,onSuccess,onFailed,userContext); }
SelfcastWebServices.ViewingService.KeepAliveViewer= function(StreamUrl,ViewerGuid,onSuccess,onFailed,userContext) {SelfcastWebServices.ViewingService._staticInstance.KeepAliveViewer(StreamUrl,ViewerGuid,onSuccess,onFailed,userContext); }
SelfcastWebServices.ViewingService.GetCurrentViewerCount= function(StreamUrl,onSuccess,onFailed,userContext) {SelfcastWebServices.ViewingService._staticInstance.GetCurrentViewerCount(StreamUrl,onSuccess,onFailed,userContext); }
SelfcastWebServices.ViewingService.RateItem= function(MediaItemId,Rating,onSuccess,onFailed,userContext) {SelfcastWebServices.ViewingService._staticInstance.RateItem(MediaItemId,Rating,onSuccess,onFailed,userContext); }
SelfcastWebServices.ViewingService.Rate= function(StreamUrl,Rating,onSuccess,onFailed,userContext) {SelfcastWebServices.ViewingService._staticInstance.Rate(StreamUrl,Rating,onSuccess,onFailed,userContext); }
SelfcastWebServices.ViewingService.GetCurrentRating= function(StreamUrl,onSuccess,onFailed,userContext) {SelfcastWebServices.ViewingService._staticInstance.GetCurrentRating(StreamUrl,onSuccess,onFailed,userContext); }
SelfcastWebServices.ViewingService.GetViewingInfo= function(StreamUrl,onSuccess,onFailed,userContext) {SelfcastWebServices.ViewingService._staticInstance.GetViewingInfo(StreamUrl,onSuccess,onFailed,userContext); }
SelfcastWebServices.ViewingService.Share= function(StreamUrl,EmailList,onSuccess,onFailed,userContext) {SelfcastWebServices.ViewingService._staticInstance.Share(StreamUrl,EmailList,onSuccess,onFailed,userContext); }
SelfcastWebServices.ViewingService.SharePage= function(PageUrl,UserName,EmailList,onSuccess,onFailed,userContext) {SelfcastWebServices.ViewingService._staticInstance.SharePage(PageUrl,UserName,EmailList,onSuccess,onFailed,userContext); }
SelfcastWebServices.ViewingService.EmailBroadcaster= function(BroadcasterName,BroadcasterEmail,SenderName,SenderEmail,Subject,Message,onSuccess,onFailed,userContext) {SelfcastWebServices.ViewingService._staticInstance.EmailBroadcaster(BroadcasterName,BroadcasterEmail,SenderName,SenderEmail,Subject,Message,onSuccess,onFailed,userContext); }
SelfcastWebServices.ViewingService.GetEmbedCode= function(StreamUrl,onSuccess,onFailed,userContext) {SelfcastWebServices.ViewingService._staticInstance.GetEmbedCode(StreamUrl,onSuccess,onFailed,userContext); }
SelfcastWebServices.ViewingService.GetLinkCode= function(StreamUrl,onSuccess,onFailed,userContext) {SelfcastWebServices.ViewingService._staticInstance.GetLinkCode(StreamUrl,onSuccess,onFailed,userContext); }
