Referencia de la Interfaz sage.ew.functions.INotificacionRepository

Interfície para las operaciones con BBDD de notificaciones Más...

Diagrama de herencias de sage.ew.functions.INotificacionRepository
Sage.ES.S50.UnitTest.Mock.NotificacionRepositoryMock sage.ew.functions.NotificacionRepository

Métodos públicos

bool Add (Notificacion nuevaNotificacion)
 Añade una nueva notificación Más...
 
IEnumerable< NotificacionGetAll ()
 Obtiene todas las notificaciones Más...
 
IEnumerable< NotificacionGetByCategoria (string categoria)
 Obtiene las notificaciones por categoria Más...
 
Notificacion GetById (int idNotificacion)
 Obtiene la notificación por ID Más...
 
bool UpdateNotificacion (int idNotificacion, Notificacion notificacion)
 Actualiza una notificación Más...
 
bool UpdateNotificaciones (IEnumerable< Notificacion > notificacionesActualizadas)
 Actualiza una colección de notificaciones Más...
 
bool Delete (int id)
 Borra una notificación por Id Más...
 
bool DeleteAll (int dias=-30)
 Borra por tiempo Más...
 
DataTable GetNotificacionesPendientes ()
 Obtenemos las notificaciones pendientes de leer Más...
 
DataTable GetNotificacionesPendientesTerminal (string terminal, int idNotifica)
 Obtiene las notificaciones pendientes de leer del terminal Más...
 
void GuardarLecturaNotificacion (int id, string terminal)
 Guarad lectura notificación Más...
 
void GuardarLecturaNotificacion (int id, string terminal, bool mostrarnotificacion)
 Guarda la lectura de la notificación Más...
 
void UpdateAllVisto ()
 Marcar todas las notificaciones como leídas Más...
 

Descripción detallada

Interfície para las operaciones con BBDD de notificaciones

Definición en la línea 176 del archivo Notifica.cs.

Documentación de las funciones miembro

◆ Add()

bool sage.ew.functions.INotificacionRepository.Add ( Notificacion  nuevaNotificacion)

Añade una nueva notificación

Parámetros
nuevaNotificacion

Implementado en sage.ew.functions.NotificacionRepository y Sage.ES.S50.UnitTest.Mock.NotificacionRepositoryMock.

◆ Delete()

bool sage.ew.functions.INotificacionRepository.Delete ( int  id)

Borra una notificación por Id

Parámetros
id
Devuelve

Implementado en sage.ew.functions.NotificacionRepository y Sage.ES.S50.UnitTest.Mock.NotificacionRepositoryMock.

◆ DeleteAll()

bool sage.ew.functions.INotificacionRepository.DeleteAll ( int  dias = -30)

Borra por tiempo

Parámetros
dias
Devuelve

Implementado en sage.ew.functions.NotificacionRepository y Sage.ES.S50.UnitTest.Mock.NotificacionRepositoryMock.

◆ GetAll()

IEnumerable<Notificacion> sage.ew.functions.INotificacionRepository.GetAll ( )

Obtiene todas las notificaciones

Devuelve

Implementado en sage.ew.functions.NotificacionRepository y Sage.ES.S50.UnitTest.Mock.NotificacionRepositoryMock.

◆ GetByCategoria()

IEnumerable<Notificacion> sage.ew.functions.INotificacionRepository.GetByCategoria ( string  categoria)

Obtiene las notificaciones por categoria

Parámetros
categoria
Devuelve

Implementado en sage.ew.functions.NotificacionRepository y Sage.ES.S50.UnitTest.Mock.NotificacionRepositoryMock.

◆ GetById()

Notificacion sage.ew.functions.INotificacionRepository.GetById ( int  idNotificacion)

Obtiene la notificación por ID

Parámetros
idNotificacion
Devuelve

Implementado en sage.ew.functions.NotificacionRepository y Sage.ES.S50.UnitTest.Mock.NotificacionRepositoryMock.

◆ GetNotificacionesPendientes()

DataTable sage.ew.functions.INotificacionRepository.GetNotificacionesPendientes ( )

Obtenemos las notificaciones pendientes de leer

Devuelve

Implementado en sage.ew.functions.NotificacionRepository y Sage.ES.S50.UnitTest.Mock.NotificacionRepositoryMock.

◆ GetNotificacionesPendientesTerminal()

DataTable sage.ew.functions.INotificacionRepository.GetNotificacionesPendientesTerminal ( string  terminal,
int  idNotifica 
)

Obtiene las notificaciones pendientes de leer del terminal

Parámetros
terminal
idNotifica
Devuelve

Implementado en sage.ew.functions.NotificacionRepository y Sage.ES.S50.UnitTest.Mock.NotificacionRepositoryMock.

◆ GuardarLecturaNotificacion() [1/2]

void sage.ew.functions.INotificacionRepository.GuardarLecturaNotificacion ( int  id,
string  terminal 
)

Guarad lectura notificación

Parámetros
id
terminal

Implementado en sage.ew.functions.NotificacionRepository y Sage.ES.S50.UnitTest.Mock.NotificacionRepositoryMock.

◆ GuardarLecturaNotificacion() [2/2]

void sage.ew.functions.INotificacionRepository.GuardarLecturaNotificacion ( int  id,
string  terminal,
bool  mostrarnotificacion 
)

Guarda la lectura de la notificación

Parámetros
id
terminal
mostrarnotificacionIndica que se ha presentado la notificación y es necesario marcarla como presentar a false para que no se presente al resto de terminales

Implementado en sage.ew.functions.NotificacionRepository y Sage.ES.S50.UnitTest.Mock.NotificacionRepositoryMock.

◆ UpdateAllVisto()

void sage.ew.functions.INotificacionRepository.UpdateAllVisto ( )

Marcar todas las notificaciones como leídas

Implementado en sage.ew.functions.NotificacionRepository y Sage.ES.S50.UnitTest.Mock.NotificacionRepositoryMock.

◆ UpdateNotificacion()

bool sage.ew.functions.INotificacionRepository.UpdateNotificacion ( int  idNotificacion,
Notificacion  notificacion 
)

Actualiza una notificación

Parámetros
idNotificacion
notificacion

Implementado en sage.ew.functions.NotificacionRepository y Sage.ES.S50.UnitTest.Mock.NotificacionRepositoryMock.

◆ UpdateNotificaciones()

bool sage.ew.functions.INotificacionRepository.UpdateNotificaciones ( IEnumerable< Notificacion notificacionesActualizadas)

Actualiza una colección de notificaciones

Parámetros
notificacionesActualizadas

Implementado en sage.ew.functions.NotificacionRepository y Sage.ES.S50.UnitTest.Mock.NotificacionRepositoryMock.


La documentación para este interfaz fue generada a partir del siguiente fichero: