Type.registerNamespace('LeapFrog.Services');
LeapFrog.Services.LeapFrogService=function() {
LeapFrog.Services.LeapFrogService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
LeapFrog.Services.LeapFrogService.prototype={
GetStates:function(knownCategoryValues,category,succeededCallback, failedCallback, userContext) {
return this._invoke(LeapFrog.Services.LeapFrogService.get_path(), 'GetStates',false,{knownCategoryValues:knownCategoryValues,category:category},succeededCallback,failedCallback,userContext); },
GetCitiesForState:function(knownCategoryValues,category,succeededCallback, failedCallback, userContext) {
return this._invoke(LeapFrog.Services.LeapFrogService.get_path(), 'GetCitiesForState',false,{knownCategoryValues:knownCategoryValues,category:category},succeededCallback,failedCallback,userContext); },
GetPublicPlaylistViaFullTextSearch:function(searchString,sortType,succeededCallback, failedCallback, userContext) {
return this._invoke(LeapFrog.Services.LeapFrogService.get_path(), 'GetPublicPlaylistViaFullTextSearch',false,{searchString:searchString,sortType:sortType},succeededCallback,failedCallback,userContext); },
GetPublicPlaylist:function(sortType,succeededCallback, failedCallback, userContext) {
return this._invoke(LeapFrog.Services.LeapFrogService.get_path(), 'GetPublicPlaylist',false,{sortType:sortType},succeededCallback,failedCallback,userContext); },
GetMediaInformation:function(contentId,succeededCallback, failedCallback, userContext) {
return this._invoke(LeapFrog.Services.LeapFrogService.get_path(), 'GetMediaInformation',false,{contentId:contentId},succeededCallback,failedCallback,userContext); },
GetSchoolName:function(affiliateId,succeededCallback, failedCallback, userContext) {
return this._invoke(LeapFrog.Services.LeapFrogService.get_path(), 'GetSchoolName',false,{affiliateId:affiliateId},succeededCallback,failedCallback,userContext); },
GetCategoryListByAffiliateId:function(affiliateId,succeededCallback, failedCallback, userContext) {
return this._invoke(LeapFrog.Services.LeapFrogService.get_path(), 'GetCategoryListByAffiliateId',false,{affiliateId:affiliateId},succeededCallback,failedCallback,userContext); },
GetCategoryList:function(succeededCallback, failedCallback, userContext) {
return this._invoke(LeapFrog.Services.LeapFrogService.get_path(), 'GetCategoryList',false,{},succeededCallback,failedCallback,userContext); },
GetSubCategoryListByAffiliateIdAndCategoryId:function(affiliateId,categoryId,succeededCallback, failedCallback, userContext) {
return this._invoke(LeapFrog.Services.LeapFrogService.get_path(), 'GetSubCategoryListByAffiliateIdAndCategoryId',false,{affiliateId:affiliateId,categoryId:categoryId},succeededCallback,failedCallback,userContext); },
GetSubCategoryListByCategoryId:function(categoryId,succeededCallback, failedCallback, userContext) {
return this._invoke(LeapFrog.Services.LeapFrogService.get_path(), 'GetSubCategoryListByCategoryId',false,{categoryId:categoryId},succeededCallback,failedCallback,userContext); }}
LeapFrog.Services.LeapFrogService.registerClass('LeapFrog.Services.LeapFrogService',Sys.Net.WebServiceProxy);
LeapFrog.Services.LeapFrogService._staticInstance = new LeapFrog.Services.LeapFrogService();
LeapFrog.Services.LeapFrogService.set_path = function(value) { 
var e = Function._validateParams(arguments, [{name: 'path', type: String}]); if (e) throw e; LeapFrog.Services.LeapFrogService._staticInstance._path = value; }
LeapFrog.Services.LeapFrogService.get_path = function() { return LeapFrog.Services.LeapFrogService._staticInstance._path; }
LeapFrog.Services.LeapFrogService.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); }
LeapFrog.Services.LeapFrogService._staticInstance._timeout = value; }
LeapFrog.Services.LeapFrogService.get_timeout = function() { 
return LeapFrog.Services.LeapFrogService._staticInstance._timeout; }
LeapFrog.Services.LeapFrogService.set_defaultUserContext = function(value) { 
LeapFrog.Services.LeapFrogService._staticInstance._userContext = value; }
LeapFrog.Services.LeapFrogService.get_defaultUserContext = function() { 
return LeapFrog.Services.LeapFrogService._staticInstance._userContext; }
LeapFrog.Services.LeapFrogService.set_defaultSucceededCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultSucceededCallback', type: Function}]); if (e) throw e; LeapFrog.Services.LeapFrogService._staticInstance._succeeded = value; }
LeapFrog.Services.LeapFrogService.get_defaultSucceededCallback = function() { 
return LeapFrog.Services.LeapFrogService._staticInstance._succeeded; }
LeapFrog.Services.LeapFrogService.set_defaultFailedCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultFailedCallback', type: Function}]); if (e) throw e; LeapFrog.Services.LeapFrogService._staticInstance._failed = value; }
LeapFrog.Services.LeapFrogService.get_defaultFailedCallback = function() { 
return LeapFrog.Services.LeapFrogService._staticInstance._failed; }
LeapFrog.Services.LeapFrogService.set_path("/Services/LeapFrogService.asmx");
LeapFrog.Services.LeapFrogService.GetStates= function(knownCategoryValues,category,onSuccess,onFailed,userContext) {LeapFrog.Services.LeapFrogService._staticInstance.GetStates(knownCategoryValues,category,onSuccess,onFailed,userContext); }
LeapFrog.Services.LeapFrogService.GetCitiesForState= function(knownCategoryValues,category,onSuccess,onFailed,userContext) {LeapFrog.Services.LeapFrogService._staticInstance.GetCitiesForState(knownCategoryValues,category,onSuccess,onFailed,userContext); }
LeapFrog.Services.LeapFrogService.GetPublicPlaylistViaFullTextSearch= function(searchString,sortType,onSuccess,onFailed,userContext) {LeapFrog.Services.LeapFrogService._staticInstance.GetPublicPlaylistViaFullTextSearch(searchString,sortType,onSuccess,onFailed,userContext); }
LeapFrog.Services.LeapFrogService.GetPublicPlaylist= function(sortType,onSuccess,onFailed,userContext) {LeapFrog.Services.LeapFrogService._staticInstance.GetPublicPlaylist(sortType,onSuccess,onFailed,userContext); }
LeapFrog.Services.LeapFrogService.GetMediaInformation= function(contentId,onSuccess,onFailed,userContext) {LeapFrog.Services.LeapFrogService._staticInstance.GetMediaInformation(contentId,onSuccess,onFailed,userContext); }
LeapFrog.Services.LeapFrogService.GetSchoolName= function(affiliateId,onSuccess,onFailed,userContext) {LeapFrog.Services.LeapFrogService._staticInstance.GetSchoolName(affiliateId,onSuccess,onFailed,userContext); }
LeapFrog.Services.LeapFrogService.GetCategoryListByAffiliateId= function(affiliateId,onSuccess,onFailed,userContext) {LeapFrog.Services.LeapFrogService._staticInstance.GetCategoryListByAffiliateId(affiliateId,onSuccess,onFailed,userContext); }
LeapFrog.Services.LeapFrogService.GetCategoryList= function(onSuccess,onFailed,userContext) {LeapFrog.Services.LeapFrogService._staticInstance.GetCategoryList(onSuccess,onFailed,userContext); }
LeapFrog.Services.LeapFrogService.GetSubCategoryListByAffiliateIdAndCategoryId= function(affiliateId,categoryId,onSuccess,onFailed,userContext) {LeapFrog.Services.LeapFrogService._staticInstance.GetSubCategoryListByAffiliateIdAndCategoryId(affiliateId,categoryId,onSuccess,onFailed,userContext); }
LeapFrog.Services.LeapFrogService.GetSubCategoryListByCategoryId= function(categoryId,onSuccess,onFailed,userContext) {LeapFrog.Services.LeapFrogService._staticInstance.GetSubCategoryListByCategoryId(categoryId,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('AjaxControlToolkit');
if (typeof(AjaxControlToolkit.CascadingDropDownNameValue) === 'undefined') {
AjaxControlToolkit.CascadingDropDownNameValue=gtc("AjaxControlToolkit.CascadingDropDownNameValue");
AjaxControlToolkit.CascadingDropDownNameValue.registerClass('AjaxControlToolkit.CascadingDropDownNameValue');
}
Type.registerNamespace('LeapFrogLib');
if (typeof(LeapFrogLib.PlaylistItem) === 'undefined') {
LeapFrogLib.PlaylistItem=gtc("LeapFrogLib.PlaylistItem");
LeapFrogLib.PlaylistItem.registerClass('LeapFrogLib.PlaylistItem');
}
if (typeof(LeapFrogLib.Content) === 'undefined') {
LeapFrogLib.Content=gtc("LeapFrogLib.Content");
LeapFrogLib.Content.registerClass('LeapFrogLib.Content');
}
Type.registerNamespace('LeapFrog');
if (typeof(LeapFrog.Category) === 'undefined') {
LeapFrog.Category=gtc("LeapFrog.Category");
LeapFrog.Category.registerClass('LeapFrog.Category');
}
if (typeof(LeapFrog.SubCategory) === 'undefined') {
LeapFrog.SubCategory=gtc("LeapFrog.SubCategory");
LeapFrog.SubCategory.registerClass('LeapFrog.SubCategory');
}
if (typeof(LeapFrogLib.Playlist_PlaylistSortType) === 'undefined') {
LeapFrogLib.Playlist_PlaylistSortType = function() { throw Error.invalidOperation(); }
LeapFrogLib.Playlist_PlaylistSortType.prototype = {AllMedia: 0,MostRecentMedia: 1,MostViewedMedia: 2,TopRatedMedia: 3}
LeapFrogLib.Playlist_PlaylistSortType.registerEnum('LeapFrogLib.Playlist_PlaylistSortType', true);
}
