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()); }
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"); }