Type.registerNamespace('Services');
Services.ContentViewService=function() {
Services.ContentViewService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
Services.ContentViewService.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return Services.ContentViewService._staticInstance.get_path();},
AddView:function(contentId,succeededCallback, failedCallback, userContext) {
/// <param name="contentId" type="String">System.Guid</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'AddView',false,{contentId:contentId},succeededCallback,failedCallback,userContext); },
GetDraftUrl:function(contentId,relativePath,succeededCallback, failedCallback, userContext) {
/// <param name="contentId" type="String">System.Guid</param>
/// <param name="relativePath" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'GetDraftUrl',false,{contentId:contentId,relativePath:relativePath},succeededCallback,failedCallback,userContext); },
GetPublishUrl:function(contentId,relativePath,succeededCallback, failedCallback, userContext) {
/// <param name="contentId" type="String">System.String</param>
/// <param name="relativePath" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'GetPublishUrl',false,{contentId:contentId,relativePath:relativePath},succeededCallback,failedCallback,userContext); },
GetPublishThumbnailUrls:function(contentId,thumbnailList,succeededCallback, failedCallback, userContext) {
/// <param name="contentId" type="String">System.Guid</param>
/// <param name="thumbnailList" type="Array">System.Array</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'GetPublishThumbnailUrls',false,{contentId:contentId,thumbnailList:thumbnailList},succeededCallback,failedCallback,userContext); },
GetXmlFile:function(url,succeededCallback, failedCallback, userContext) {
/// <param name="url" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'GetXmlFile',false,{url:url},succeededCallback,failedCallback,userContext); }}
Services.ContentViewService.registerClass('Services.ContentViewService',Sys.Net.WebServiceProxy);
Services.ContentViewService._staticInstance = new Services.ContentViewService();
Services.ContentViewService.set_path = function(value) {
Services.ContentViewService._staticInstance.set_path(value); }
Services.ContentViewService.get_path = function() { 
/// <value type="String" mayBeNull="true">The service url.</value>
return Services.ContentViewService._staticInstance.get_path();}
Services.ContentViewService.set_timeout = function(value) {
Services.ContentViewService._staticInstance.set_timeout(value); }
Services.ContentViewService.get_timeout = function() { 
/// <value type="Number">The service timeout.</value>
return Services.ContentViewService._staticInstance.get_timeout(); }
Services.ContentViewService.set_defaultUserContext = function(value) { 
Services.ContentViewService._staticInstance.set_defaultUserContext(value); }
Services.ContentViewService.get_defaultUserContext = function() { 
/// <value mayBeNull="true">The service default user context.</value>
return Services.ContentViewService._staticInstance.get_defaultUserContext(); }
Services.ContentViewService.set_defaultSucceededCallback = function(value) { 
 Services.ContentViewService._staticInstance.set_defaultSucceededCallback(value); }
Services.ContentViewService.get_defaultSucceededCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default succeeded callback.</value>
return Services.ContentViewService._staticInstance.get_defaultSucceededCallback(); }
Services.ContentViewService.set_defaultFailedCallback = function(value) { 
Services.ContentViewService._staticInstance.set_defaultFailedCallback(value); }
Services.ContentViewService.get_defaultFailedCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default failed callback.</value>
return Services.ContentViewService._staticInstance.get_defaultFailedCallback(); }
Services.ContentViewService.set_path("/ContentViewService.svc");
Services.ContentViewService.AddView= function(contentId,onSuccess,onFailed,userContext) {
/// <param name="contentId" type="String">System.Guid</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
Services.ContentViewService._staticInstance.AddView(contentId,onSuccess,onFailed,userContext); }
Services.ContentViewService.GetDraftUrl= function(contentId,relativePath,onSuccess,onFailed,userContext) {
/// <param name="contentId" type="String">System.Guid</param>
/// <param name="relativePath" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
Services.ContentViewService._staticInstance.GetDraftUrl(contentId,relativePath,onSuccess,onFailed,userContext); }
Services.ContentViewService.GetPublishUrl= function(contentId,relativePath,onSuccess,onFailed,userContext) {
/// <param name="contentId" type="String">System.String</param>
/// <param name="relativePath" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
Services.ContentViewService._staticInstance.GetPublishUrl(contentId,relativePath,onSuccess,onFailed,userContext); }
Services.ContentViewService.GetPublishThumbnailUrls= function(contentId,thumbnailList,onSuccess,onFailed,userContext) {
/// <param name="contentId" type="String">System.Guid</param>
/// <param name="thumbnailList" type="Array">System.Array</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
Services.ContentViewService._staticInstance.GetPublishThumbnailUrls(contentId,thumbnailList,onSuccess,onFailed,userContext); }
Services.ContentViewService.GetXmlFile= function(url,onSuccess,onFailed,userContext) {
/// <param name="url" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
Services.ContentViewService._staticInstance.GetXmlFile(url,onSuccess,onFailed,userContext); }

