using System;
namespace Renci.SshNet.Messages
{
///
/// Indicates that a class represents SSH message. This class cannot be inherited.
///
[AttributeUsage(AttributeTargets.Class, Inherited = true, AllowMultiple = false)]
public sealed class MessageAttribute : Attribute
{
///
/// Gets or sets message name as defined in RFC 4250.
///
///
/// The name.
///
public string Name { get; set; }
///
/// Gets or sets message number as defined in RFC 4250.
///
///
/// The number.
///
public byte Number { get; set; }
///
/// Initializes a new instance of the class.
///
/// The name.
/// The number.
public MessageAttribute(string name, byte number)
{
Name = name;
Number = number;
}
}
}