// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.md in the project root for license information.
namespace Microsoft.AspNet.SignalR.Infrastructure
{
///
/// A server to server command.
///
internal class ServerCommand
{
///
/// Gets or sets the id of the command where this message originated from.
///
public string ServerId { get; set; }
///
/// Gets of sets the command type.
///
public ServerCommandType ServerCommandType { get; set; }
///
/// Gets or sets the value for this command.
///
public object Value { get; set; }
internal bool IsFromSelf(string serverId)
{
return serverId.Equals(ServerId);
}
}
}