var WMMServices=function() {
WMMServices.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
WMMServices.prototype={
GetVideoXml:function(IdVideo,succeededCallback, failedCallback, userContext) {
return this._invoke(WMMServices.get_path(), 'GetVideoXml',false,{IdVideo:IdVideo},succeededCallback,failedCallback,userContext); },
GetVideoTags:function(IdVideo,ptags,succeededCallback, failedCallback, userContext) {
return this._invoke(WMMServices.get_path(), 'GetVideoTags',false,{IdVideo:IdVideo,ptags:ptags},succeededCallback,failedCallback,userContext); },
GetVideoSubtitles:function(IdVideo,succeededCallback, failedCallback, userContext) {
return this._invoke(WMMServices.get_path(), 'GetVideoSubtitles',false,{IdVideo:IdVideo},succeededCallback,failedCallback,userContext); },
GetVideoInfo:function(IdVideo,succeededCallback, failedCallback, userContext) {
return this._invoke(WMMServices.get_path(), 'GetVideoInfo',false,{IdVideo:IdVideo},succeededCallback,failedCallback,userContext); },
AddVideo:function(id,origin,tag,translation,textcolor,fontSize,fontWeight,background,position,succeededCallback, failedCallback, userContext) {
return this._invoke(WMMServices.get_path(), 'AddVideo',false,{id:id,origin:origin,tag:tag,translation:translation,textcolor:textcolor,fontSize:fontSize,fontWeight:fontWeight,background:background,position:position},succeededCallback,failedCallback,userContext); }}
WMMServices.registerClass('WMMServices',Sys.Net.WebServiceProxy);
WMMServices._staticInstance = new WMMServices();
WMMServices.set_path = function(value) { 
var e = Function._validateParams(arguments, [{name: 'path', type: String}]); if (e) throw e; WMMServices._staticInstance._path = value; }
WMMServices.get_path = function() { return WMMServices._staticInstance._path; }
WMMServices.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); }
WMMServices._staticInstance._timeout = value; }
WMMServices.get_timeout = function() { 
return WMMServices._staticInstance._timeout; }
WMMServices.set_defaultUserContext = function(value) { 
WMMServices._staticInstance._userContext = value; }
WMMServices.get_defaultUserContext = function() { 
return WMMServices._staticInstance._userContext; }
WMMServices.set_defaultSucceededCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultSucceededCallback', type: Function}]); if (e) throw e; WMMServices._staticInstance._succeeded = value; }
WMMServices.get_defaultSucceededCallback = function() { 
return WMMServices._staticInstance._succeeded; }
WMMServices.set_defaultFailedCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultFailedCallback', type: Function}]); if (e) throw e; WMMServices._staticInstance._failed = value; }
WMMServices.get_defaultFailedCallback = function() { 
return WMMServices._staticInstance._failed; }
WMMServices.set_path("/WMMServices.asmx");
WMMServices.GetVideoXml= function(IdVideo,onSuccess,onFailed,userContext) {WMMServices._staticInstance.GetVideoXml(IdVideo,onSuccess,onFailed,userContext); }
WMMServices.GetVideoTags= function(IdVideo,ptags,onSuccess,onFailed,userContext) {WMMServices._staticInstance.GetVideoTags(IdVideo,ptags,onSuccess,onFailed,userContext); }
WMMServices.GetVideoSubtitles= function(IdVideo,onSuccess,onFailed,userContext) {WMMServices._staticInstance.GetVideoSubtitles(IdVideo,onSuccess,onFailed,userContext); }
WMMServices.GetVideoInfo= function(IdVideo,onSuccess,onFailed,userContext) {WMMServices._staticInstance.GetVideoInfo(IdVideo,onSuccess,onFailed,userContext); }
WMMServices.AddVideo= function(id,origin,tag,translation,textcolor,fontSize,fontWeight,background,position,onSuccess,onFailed,userContext) {WMMServices._staticInstance.AddVideo(id,origin,tag,translation,textcolor,fontSize,fontWeight,background,position,onSuccess,onFailed,userContext); }
