C# Class CAPS.Notifications.Web.NotificationMessageHub

Inheritance: Microsoft.AspNet.SignalR.Hub
Exibir arquivo Open project: uacaps/SignalRNotifications

Public Methods

Method Description
AddNotification ( string id, string username, string title, string text, string image, string url ) : void
GetForUser ( string username, int offset = null, int max = null ) : Task>
JoinGroup ( string groupName ) : void
MarkAsRead ( string id ) : System.Threading.Tasks.Task
NotificationMessageHub ( ) : Microsoft.AspNet.SignalR

Method Details

AddNotification() public method

public AddNotification ( string id, string username, string title, string text, string image, string url ) : void
id string
username string
title string
text string
image string
url string
return void

GetForUser() public method

public GetForUser ( string username, int offset = null, int max = null ) : Task>
username string
offset int
max int
return Task>

JoinGroup() public method

public JoinGroup ( string groupName ) : void
groupName string
return void

MarkAsRead() public method

public MarkAsRead ( string id ) : System.Threading.Tasks.Task
id string
return System.Threading.Tasks.Task

NotificationMessageHub() public method

public NotificationMessageHub ( ) : Microsoft.AspNet.SignalR
return Microsoft.AspNet.SignalR