C# Class RohBot.NotificationManager

Afficher le fichier Open project: Rohansi/RohBot Class Usage Examples

Méthodes publiques

Méthode Description
Exists ( string deviceToken ) : bool
FindWithId ( long userId ) : IEnumerable
Get ( string deviceToken ) : Notification
HandleMessage ( Room room, Message message ) : void
InvalidateNotificationCache ( ) : void
NotificationManager ( ) : RohBot.Packets

Private Methods

Méthode Description
IsMatch ( Regex regex, string input ) : bool
Notify ( List deviceTokens, string message ) : System.Threading.Tasks.Task
PostNotificationRequest ( OneSignalNotificationPacket notificationPacket ) : System.Threading.Tasks.Task

Method Details

Exists() public méthode

public Exists ( string deviceToken ) : bool
deviceToken string
Résultat bool

FindWithId() public méthode

public FindWithId ( long userId ) : IEnumerable
userId long
Résultat IEnumerable

Get() public méthode

public Get ( string deviceToken ) : Notification
deviceToken string
Résultat Notification

HandleMessage() public méthode

public HandleMessage ( Room room, Message message ) : void
room RohBot.Rooms.Room
message RohBot.Packets.Message
Résultat void

InvalidateNotificationCache() public méthode

public InvalidateNotificationCache ( ) : void
Résultat void

NotificationManager() public méthode

public NotificationManager ( ) : RohBot.Packets
Résultat RohBot.Packets