Type.registerNamespace('GDF2.services');
GDF2.services.Comentarios=function() {
GDF2.services.Comentarios.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
GDF2.services.Comentarios.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return GDF2.services.Comentarios._staticInstance.get_path();},
InsertaComentario:function(texto,objectId,tc,to,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'InsertaComentario',false,{texto:texto,objectId:objectId,tc:tc,to:to},succeededCallback,failedCallback,userContext); },
GetComentarios:function(objectId,tc,to,PageSize,PageIndex,refresh,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetComentarios',false,{objectId:objectId,tc:tc,to:to,PageSize:PageSize,PageIndex:PageIndex,refresh:refresh},succeededCallback,failedCallback,userContext); },
GetLastComentarios:function(tc,PageSize,PageIndex,refresh,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetLastComentarios',false,{tc:tc,PageSize:PageSize,PageIndex:PageIndex,refresh:refresh},succeededCallback,failedCallback,userContext); },
GetComentariosUser:function(loginName,tc,PageSize,PageIndex,refresh,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetComentariosUser',false,{loginName:loginName,tc:tc,PageSize:PageSize,PageIndex:PageIndex,refresh:refresh},succeededCallback,failedCallback,userContext); }}
GDF2.services.Comentarios.registerClass('GDF2.services.Comentarios',Sys.Net.WebServiceProxy);
GDF2.services.Comentarios._staticInstance = new GDF2.services.Comentarios();
GDF2.services.Comentarios.set_path = function(value) { GDF2.services.Comentarios._staticInstance.set_path(value); }
GDF2.services.Comentarios.get_path = function() { return GDF2.services.Comentarios._staticInstance.get_path(); }
GDF2.services.Comentarios.set_timeout = function(value) { GDF2.services.Comentarios._staticInstance.set_timeout(value); }
GDF2.services.Comentarios.get_timeout = function() { return GDF2.services.Comentarios._staticInstance.get_timeout(); }
GDF2.services.Comentarios.set_defaultUserContext = function(value) { GDF2.services.Comentarios._staticInstance.set_defaultUserContext(value); }
GDF2.services.Comentarios.get_defaultUserContext = function() { return GDF2.services.Comentarios._staticInstance.get_defaultUserContext(); }
GDF2.services.Comentarios.set_defaultSucceededCallback = function(value) { GDF2.services.Comentarios._staticInstance.set_defaultSucceededCallback(value); }
GDF2.services.Comentarios.get_defaultSucceededCallback = function() { return GDF2.services.Comentarios._staticInstance.get_defaultSucceededCallback(); }
GDF2.services.Comentarios.set_defaultFailedCallback = function(value) { GDF2.services.Comentarios._staticInstance.set_defaultFailedCallback(value); }
GDF2.services.Comentarios.get_defaultFailedCallback = function() { return GDF2.services.Comentarios._staticInstance.get_defaultFailedCallback(); }
GDF2.services.Comentarios.set_path("/services/Comentarios.asmx");
GDF2.services.Comentarios.InsertaComentario= function(texto,objectId,tc,to,onSuccess,onFailed,userContext) {GDF2.services.Comentarios._staticInstance.InsertaComentario(texto,objectId,tc,to,onSuccess,onFailed,userContext); }
GDF2.services.Comentarios.GetComentarios= function(objectId,tc,to,PageSize,PageIndex,refresh,onSuccess,onFailed,userContext) {GDF2.services.Comentarios._staticInstance.GetComentarios(objectId,tc,to,PageSize,PageIndex,refresh,onSuccess,onFailed,userContext); }
GDF2.services.Comentarios.GetLastComentarios= function(tc,PageSize,PageIndex,refresh,onSuccess,onFailed,userContext) {GDF2.services.Comentarios._staticInstance.GetLastComentarios(tc,PageSize,PageIndex,refresh,onSuccess,onFailed,userContext); }
GDF2.services.Comentarios.GetComentariosUser= function(loginName,tc,PageSize,PageIndex,refresh,onSuccess,onFailed,userContext) {GDF2.services.Comentarios._staticInstance.GetComentariosUser(loginName,tc,PageSize,PageIndex,refresh,onSuccess,onFailed,userContext); }
Type.registerNamespace('DALComunidad');
if (typeof(DALComunidad.TipoComentario) === 'undefined') {
DALComunidad.TipoComentario = function() { throw Error.invalidOperation(); }
DALComunidad.TipoComentario.prototype = {Comentario: 1,Critica: 2}
DALComunidad.TipoComentario.registerEnum('DALComunidad.TipoComentario', true);
}
if (typeof(DALComunidad.TipoObjeto) === 'undefined') {
DALComunidad.TipoObjeto = function() { throw Error.invalidOperation(); }
DALComunidad.TipoObjeto.prototype = {Pelicula: 1,Perfil: 2,Noticia: 3,CineTransporte: 4,Bso: 5,Dvd: 6,Usuario: 7,Encuesta: 8,Enlace: 9,Favoritos: 10,Comentario: 11,CineLimpieza: 12,CineComodidad: 13,CineExperiencia: 14,Critica: 15,Cine: 16,Video: 17}
DALComunidad.TipoObjeto.registerEnum('DALComunidad.TipoObjeto', true);
}
