Type.registerNamespace('SBR.TV.Website.WebServices');
SBR.TV.Website.WebServices.jsLocalServices=function() {
SBR.TV.Website.WebServices.jsLocalServices.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
SBR.TV.Website.WebServices.jsLocalServices.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return SBR.TV.Website.WebServices.jsLocalServices._staticInstance.get_path();},
SubmitVideoIsValid:function(pCode,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'SubmitVideoIsValid',false,{pCode:pCode},succeededCallback,failedCallback,userContext); },
SavePostDetails:function(pPostId,pTitle,pContent,pCategories,pTypes,pTags,pPageToRedirect,pUserId,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'SavePostDetails',false,{pPostId:pPostId,pTitle:pTitle,pContent:pContent,pCategories:pCategories,pTypes:pTypes,pTags:pTags,pPageToRedirect:pPageToRedirect,pUserId:pUserId},succeededCallback,failedCallback,userContext); },
DeletePost:function(pPostId,pUserId,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'DeletePost',false,{pPostId:pPostId,pUserId:pUserId},succeededCallback,failedCallback,userContext); },
ApprovePost:function(pPostId,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'ApprovePost',false,{pPostId:pPostId},succeededCallback,failedCallback,userContext); },
PendingPost:function(pPostId,pUserId,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'PendingPost',false,{pPostId:pPostId,pUserId:pUserId},succeededCallback,failedCallback,userContext); },
GetEncodingProfiles:function(succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetEncodingProfiles',false,{},succeededCallback,failedCallback,userContext); },
EncodeVideo:function(pPostId,pDefaultParams,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'EncodeVideo',false,{pPostId:pPostId,pDefaultParams:pDefaultParams},succeededCallback,failedCallback,userContext); }}
SBR.TV.Website.WebServices.jsLocalServices.registerClass('SBR.TV.Website.WebServices.jsLocalServices',Sys.Net.WebServiceProxy);
SBR.TV.Website.WebServices.jsLocalServices._staticInstance = new SBR.TV.Website.WebServices.jsLocalServices();
SBR.TV.Website.WebServices.jsLocalServices.set_path = function(value) { SBR.TV.Website.WebServices.jsLocalServices._staticInstance.set_path(value); }
SBR.TV.Website.WebServices.jsLocalServices.get_path = function() { return SBR.TV.Website.WebServices.jsLocalServices._staticInstance.get_path(); }
SBR.TV.Website.WebServices.jsLocalServices.set_timeout = function(value) { SBR.TV.Website.WebServices.jsLocalServices._staticInstance.set_timeout(value); }
SBR.TV.Website.WebServices.jsLocalServices.get_timeout = function() { return SBR.TV.Website.WebServices.jsLocalServices._staticInstance.get_timeout(); }
SBR.TV.Website.WebServices.jsLocalServices.set_defaultUserContext = function(value) { SBR.TV.Website.WebServices.jsLocalServices._staticInstance.set_defaultUserContext(value); }
SBR.TV.Website.WebServices.jsLocalServices.get_defaultUserContext = function() { return SBR.TV.Website.WebServices.jsLocalServices._staticInstance.get_defaultUserContext(); }
SBR.TV.Website.WebServices.jsLocalServices.set_defaultSucceededCallback = function(value) { SBR.TV.Website.WebServices.jsLocalServices._staticInstance.set_defaultSucceededCallback(value); }
SBR.TV.Website.WebServices.jsLocalServices.get_defaultSucceededCallback = function() { return SBR.TV.Website.WebServices.jsLocalServices._staticInstance.get_defaultSucceededCallback(); }
SBR.TV.Website.WebServices.jsLocalServices.set_defaultFailedCallback = function(value) { SBR.TV.Website.WebServices.jsLocalServices._staticInstance.set_defaultFailedCallback(value); }
SBR.TV.Website.WebServices.jsLocalServices.get_defaultFailedCallback = function() { return SBR.TV.Website.WebServices.jsLocalServices._staticInstance.get_defaultFailedCallback(); }
SBR.TV.Website.WebServices.jsLocalServices.set_path("/asmx/jsLocalServices.asmx");
SBR.TV.Website.WebServices.jsLocalServices.SubmitVideoIsValid= function(pCode,onSuccess,onFailed,userContext) {SBR.TV.Website.WebServices.jsLocalServices._staticInstance.SubmitVideoIsValid(pCode,onSuccess,onFailed,userContext); }
SBR.TV.Website.WebServices.jsLocalServices.SavePostDetails= function(pPostId,pTitle,pContent,pCategories,pTypes,pTags,pPageToRedirect,pUserId,onSuccess,onFailed,userContext) {SBR.TV.Website.WebServices.jsLocalServices._staticInstance.SavePostDetails(pPostId,pTitle,pContent,pCategories,pTypes,pTags,pPageToRedirect,pUserId,onSuccess,onFailed,userContext); }
SBR.TV.Website.WebServices.jsLocalServices.DeletePost= function(pPostId,pUserId,onSuccess,onFailed,userContext) {SBR.TV.Website.WebServices.jsLocalServices._staticInstance.DeletePost(pPostId,pUserId,onSuccess,onFailed,userContext); }
SBR.TV.Website.WebServices.jsLocalServices.ApprovePost= function(pPostId,onSuccess,onFailed,userContext) {SBR.TV.Website.WebServices.jsLocalServices._staticInstance.ApprovePost(pPostId,onSuccess,onFailed,userContext); }
SBR.TV.Website.WebServices.jsLocalServices.PendingPost= function(pPostId,pUserId,onSuccess,onFailed,userContext) {SBR.TV.Website.WebServices.jsLocalServices._staticInstance.PendingPost(pPostId,pUserId,onSuccess,onFailed,userContext); }
SBR.TV.Website.WebServices.jsLocalServices.GetEncodingProfiles= function(onSuccess,onFailed,userContext) {SBR.TV.Website.WebServices.jsLocalServices._staticInstance.GetEncodingProfiles(onSuccess,onFailed,userContext); }
SBR.TV.Website.WebServices.jsLocalServices.EncodeVideo= function(pPostId,pDefaultParams,onSuccess,onFailed,userContext) {SBR.TV.Website.WebServices.jsLocalServices._staticInstance.EncodeVideo(pPostId,pDefaultParams,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('SBR.TV.Communication.Objects');
if (typeof(SBR.TV.Communication.Objects.EncodingProfile) === 'undefined') {
SBR.TV.Communication.Objects.EncodingProfile=gtc("SBR.TV.Communication.Objects.EncodingProfile");
SBR.TV.Communication.Objects.EncodingProfile.registerClass('SBR.TV.Communication.Objects.EncodingProfile');
}
