Files
DotNetty/examples/HttpServer/MessageBody.cs
2018-04-11 09:31:39 -07:00

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 + "\"}" +"}";
}
}