Android Open Source - OpenHueSdk Bulb State






From Project

Back to project page OpenHueSdk.

License

The source code is released under:

Apache License

If you think the Android project OpenHueSdk listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.t3hh4xx0r.openhuesdk.sdk.objects;
//from w w w  .  ja  v a  2 s .  c  om
import java.io.Serializable;

public class BulbState implements Serializable {

  public class State {
    boolean on, reachable;

    String alert, effect, colormode;

    double bri, hue, sat, ct;

    public String getAlert() {
      return alert;
    }

    public double getBri() {
      return bri;
    }

    public String getColormode() {
      return colormode;
    }

    public double getCt() {
      return ct;
    }

    public String getEffect() {
      return effect;
    }

    public double getHue() {
      return hue;
    }

    public double getSat() {
      return sat;
    }

    public boolean isOn() {
      return on;
    }

    public boolean isReachable() {
      return reachable;
    }

    public void setAlert(String alert) {
      this.alert = alert;
    }

    public void setBri(double bri) {
      this.bri = bri;
    }

    public void setColormode(String colormode) {
      this.colormode = colormode;
    }

    public void setCt(double ct) {
      this.ct = ct;
    }

    public void setEffect(String effect) {
      this.effect = effect;
    }

    public void setHue(double hue) {
      this.hue = hue;
    }

    public void setOn(boolean on) {
      this.on = on;
    }

    public void setReachable(boolean reachable) {
      this.reachable = reachable;
    }

    public void setSat(double sat) {
      this.sat = sat;
    }

    @Override
    public String toString() {
      return "State [isReachable()=" + isReachable() + ", getSat()="
          + getSat() + ", getAlert()=" + getAlert() + ", getBri()="
          + getBri() + ", getColormode()=" + getColormode()
          + ", getCt()=" + getCt() + ", getEffect()=" + getEffect()
          + ", getHue()=" + getHue() + ", isOn()=" + isOn() + "]";
    }

  }

  String type, name, modelid, swversion;
  State state;

  public String getModelid() {
    return modelid;
  }

  public String getName() {
    return name;
  }

  public State getState() {
    return state;
  }

  public String getSwversion() {
    return swversion;
  }

  public String getType() {
    return type;
  }

  public void setModelid(String modelid) {
    this.modelid = modelid;
  }

  public void setName(String name) {
    this.name = name;
  }

  public void setState(State state) {
    this.state = state;
  }

  public void setSwversion(String swversion) {
    this.swversion = swversion;
  }

  public void setType(String type) {
    this.type = type;
  }

}




Java Source Code List

com.t3hh4xx0r.hueopensdkexample.BulbManagerActivity.java
com.t3hh4xx0r.hueopensdkexample.DashboardLayout.java
com.t3hh4xx0r.hueopensdkexample.MainActivity.java
com.t3hh4xx0r.openhuesdk.sdk.ColorPickerView.java
com.t3hh4xx0r.openhuesdk.sdk.CountDownTimer.java
com.t3hh4xx0r.openhuesdk.sdk.NumberToWords.java
com.t3hh4xx0r.openhuesdk.sdk.PreferencesManager.java
com.t3hh4xx0r.openhuesdk.sdk.Utils.java
com.t3hh4xx0r.openhuesdk.sdk.bridge.BridgeRegistrar.java
com.t3hh4xx0r.openhuesdk.sdk.bridge.IBridgeRegistrar.java
com.t3hh4xx0r.openhuesdk.sdk.bulb.AlertCodes.java
com.t3hh4xx0r.openhuesdk.sdk.bulb.BulbManager.java
com.t3hh4xx0r.openhuesdk.sdk.bulb.BulbStateRequestFactory.java
com.t3hh4xx0r.openhuesdk.sdk.bulb.CustomAlert.java
com.t3hh4xx0r.openhuesdk.sdk.bulb.IBulbManager.java
com.t3hh4xx0r.openhuesdk.sdk.bulb.StateCodes.java
com.t3hh4xx0r.openhuesdk.sdk.objects.Bridge.java
com.t3hh4xx0r.openhuesdk.sdk.objects.BulbState.java
com.t3hh4xx0r.openhuesdk.sdk.objects.Bulb.java
com.t3hh4xx0r.openhuesdk.sdk.objects.RegistrationRequest.java
com.t3hh4xx0r.openhuesdk.sdk.objects.RegistrationResponse.java