skyscraper8/skyscraper8/Rds/RdsMessage.cs
feyris-tan ef86554f9a Import
2025-05-12 22:09:16 +02:00

29 lines
771 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace skyscraper5.Rds
{
public class RdsMessage
{
public int SiteAddress { get; set; }
public int EncoderAddress { get; set; }
public byte SequenceNumber { get; set; }
public RdsMessageAttribute MessageAttribute
{
get
{
Type type = this.GetType();
object[] customAttributes = type.GetCustomAttributes(typeof(RdsMessageAttribute),false);
if (customAttributes.Length == 0)
return null;
else
return (RdsMessageAttribute)customAttributes[0];
}
}
}
}