Skip to content
This repository was archived by the owner on Aug 12, 2021. It is now read-only.

Added IMessageEventArgs interface #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion websocket-sharp/MessageEventArgs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,20 @@ namespace WebSocketSharp
/// the <see cref="Data"/> or <see cref="RawData"/> property.
/// </para>
/// </remarks>
public class MessageEventArgs : EventArgs
///

public interface IMessageEventArgs
{
string Data { get; }
bool IsBinary { get; }
bool IsPing { get; }
bool IsText { get; }
byte[] RawData { get; }
}

public class MessageEventArgs : EventArgs, IMessageEventArgs
{

#region Private Fields

private string _data;
Expand Down