mirror of
https://github.com/Azure/DotNetty.git
synced 2026-10-18 22:30:36 +08:00
18 lines
514 B
C#
18 lines
514 B
C#
// Copyright (c) Microsoft. All rights reserved.
|
|
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
|
|
namespace HttpServer
|
|
{
|
|
sealed class MessageBody
|
|
{
|
|
public MessageBody(string message)
|
|
{
|
|
this.Message = message;
|
|
}
|
|
|
|
public string Message { get; }
|
|
|
|
public string ToJsonFormat() => "{" + $"\"{nameof(MessageBody)}\" :" + "{" + $"\"{nameof(this.Message)}\"" + " :\"" + this.Message + "\"}" +"}";
|
|
}
|
|
}
|