Example #1
0
        public override string ToString()
        {
            StringBuilder sb = new StringBuilder();

            sb.Append("Temperature: ");
            sb.AppendLine(Temperature.ToString());

            sb.Append("Illumination: ");
            sb.AppendLine(Illumination.ToString());

            sb.Append("Distance: ");
            sb.AppendLine(Distance.ToString());

            sb.Append("Presence: ");
            sb.AppendLine(Presence.ToString());

            return(sb.ToString());
        }
Example #2
0
 public override string ToString()
 {
     return($"RGB Color: {RgbValue:X}\n" + $"Brightness: {Illumination.ToString()}\n" +
            $"Protocol version: {ProtoVersion}\n" + $"Current music ID: {MusicId.ToString()}\n" +
            $"Able to join: {JoinPermission}\n");
 }