38 lines
1.3 KiB
C#
38 lines
1.3 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Web;
|
|
using Microsoft.AspNet.SignalR;
|
|
|
|
namespace GMW_RT
|
|
{
|
|
public class ChatHub : Hub
|
|
{
|
|
public void Hello()
|
|
{
|
|
Clients.All.hello();
|
|
}
|
|
public void Send(string name, string message)
|
|
{
|
|
// Call the broadcastMessage method to update clients.
|
|
Clients.All.broadcastMessage(name, message);
|
|
}
|
|
#if false
|
|
/// <summary>
|
|
/// metodo invio messaggio a pagina tablet
|
|
/// </summary>
|
|
/// <param name="text01">Testo primario (codice UDC)</param>
|
|
/// <param name="text02">Testo secondario (particolare)</param>
|
|
/// <param name="text03">Note per utente</param>
|
|
/// <param name="text04">num pezzi caricati</param>
|
|
/// <param name="text05">num pezzi tot</param>
|
|
/// <param name="text06">num pezzi restanti</param>
|
|
/// <param name="css">Stile css del panel</param>
|
|
public void updateTablet(string text01, string text02, string text03, string text04, string text05, string text06, string css)
|
|
{
|
|
// invio le stringhe alla pagina via signalR
|
|
Clients.All.sendPanelUpdate(text01, text02, text03, text04, text05, text06, css);
|
|
}
|
|
#endif
|
|
}
|
|
} |