Store in GIT
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace HueLights
|
||||
{
|
||||
public class LightHue : Light
|
||||
{
|
||||
public LightHue(int id, int hue) : base(id)
|
||||
{
|
||||
this.hue = hue;
|
||||
this.sat = 255;
|
||||
}
|
||||
|
||||
public override void Update()
|
||||
{
|
||||
Console.WriteLine(this.ToString());
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return base.ToString() + ". bri=" + bri + ", hue=" + hue + ", sat=" + sat;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user