var RatingsService=function() {
RatingsService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
RatingsService.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return RatingsService._staticInstance.get_path();},
HelloWorld:function(succeededCallback, failedCallback, userContext) {
/// <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(), 'HelloWorld',false,{},succeededCallback,failedCallback,userContext); },
PostRating:function(videoID,rating,videoType,sessionToken,succeededCallback, failedCallback, userContext) {
/// <param name="videoID" type="String">System.String</param>
/// <param name="rating" type="Number">System.Int32</param>
/// <param name="videoType" type="TotalVideos.Global.VideoType">TotalVideos.Global.VideoType</param>
/// <param name="sessionToken" 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(), 'PostRating',false,{videoID:videoID,rating:rating,videoType:videoType,sessionToken:sessionToken},succeededCallback,failedCallback,userContext); }}
RatingsService.registerClass('RatingsService',Sys.Net.WebServiceProxy);
RatingsService._staticInstance = new RatingsService();
RatingsService.set_path = function(value) {
RatingsService._staticInstance.set_path(value); }
RatingsService.get_path = function() { 
/// <value type="String" mayBeNull="true">The service url.</value>
return RatingsService._staticInstance.get_path();}
RatingsService.set_timeout = function(value) {
RatingsService._staticInstance.set_timeout(value); }
RatingsService.get_timeout = function() { 
/// <value type="Number">The service timeout.</value>
return RatingsService._staticInstance.get_timeout(); }
RatingsService.set_defaultUserContext = function(value) { 
RatingsService._staticInstance.set_defaultUserContext(value); }
RatingsService.get_defaultUserContext = function() { 
/// <value mayBeNull="true">The service default user context.</value>
return RatingsService._staticInstance.get_defaultUserContext(); }
RatingsService.set_defaultSucceededCallback = function(value) { 
 RatingsService._staticInstance.set_defaultSucceededCallback(value); }
RatingsService.get_defaultSucceededCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default succeeded callback.</value>
return RatingsService._staticInstance.get_defaultSucceededCallback(); }
RatingsService.set_defaultFailedCallback = function(value) { 
RatingsService._staticInstance.set_defaultFailedCallback(value); }
RatingsService.get_defaultFailedCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default failed callback.</value>
return RatingsService._staticInstance.get_defaultFailedCallback(); }
RatingsService.set_path("/WebServices/RatingsService.asmx");
RatingsService.HelloWorld= function(onSuccess,onFailed,userContext) {
/// <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>
RatingsService._staticInstance.HelloWorld(onSuccess,onFailed,userContext); }
RatingsService.PostRating= function(videoID,rating,videoType,sessionToken,onSuccess,onFailed,userContext) {
/// <param name="videoID" type="String">System.String</param>
/// <param name="rating" type="Number">System.Int32</param>
/// <param name="videoType" type="TotalVideos.Global.VideoType">TotalVideos.Global.VideoType</param>
/// <param name="sessionToken" 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>
RatingsService._staticInstance.PostRating(videoID,rating,videoType,sessionToken,onSuccess,onFailed,userContext); }
Type.registerNamespace('TotalVideos.Global');
if (typeof(TotalVideos.Global.VideoType) === 'undefined') {
TotalVideos.Global.VideoType = function() { throw Error.invalidOperation(); }
TotalVideos.Global.VideoType.prototype = {YouTube: 0,Google: 1,MetaCafe: 2,Veoh: 3,MySpace: 4,Yahoo: 5,AOL: 6,none: 7}
TotalVideos.Global.VideoType.registerEnum('TotalVideos.Global.VideoType', true);
}

