C# Class RohBot.NotificationManager

Show file Open project: Rohansi/RohBot Class Usage Examples

Public Methods

Method 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

Method 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 method

public Exists ( string deviceToken ) : bool
deviceToken string
return bool

FindWithId() public method

public FindWithId ( long userId ) : IEnumerable
userId long
return IEnumerable

Get() public method

public Get ( string deviceToken ) : Notification
deviceToken string
return Notification

HandleMessage() public method

public HandleMessage ( Room room, Message message ) : void
room RohBot.Rooms.Room
message RohBot.Packets.Message
return void

InvalidateNotificationCache() public method

public InvalidateNotificationCache ( ) : void
return void

NotificationManager() public method

public NotificationManager ( ) : RohBot.Packets
return RohBot.Packets