#1 Followed the MagicOnion quickstart guide, borrowing code from the chat sample app to get something working
17 lines
330 B
C#
17 lines
330 B
C#
using MessagePack;
|
|
|
|
namespace ChatApp.Shared.MessagePackObjects
|
|
{
|
|
/// <summary>
|
|
/// Message information
|
|
/// </summary>
|
|
[MessagePackObject]
|
|
public struct MessageResponse
|
|
{
|
|
[Key(0)]
|
|
public string UserName { get; set; }
|
|
|
|
[Key(1)]
|
|
public string Message { get; set; }
|
|
}
|
|
}
|