//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//------------------------------------------------------------------------------
namespace Microsoft.Samples.Kinect.Webserver
{
using System;
using System.Net.WebSockets;
///
/// Represents a web socket message with associated type (UTF8 versus binary).
///
public class WebSocketMessage
{
///
/// Initializes a new instance of the class.
///
///
/// Message content.
///
///
/// Type of message (UTF8 versus binary).
///
public WebSocketMessage(ArraySegment messageContent, WebSocketMessageType messageType)
{
this.Content = messageContent;
this.MessageType = messageType;
}
///
/// Message content.
///
public ArraySegment Content { get; private set; }
///
/// Message type (UTF8 text versus binary).
///
public WebSocketMessageType MessageType { get; private set; }
}
}