Android Open Source - SmartHome Device Item






From Project

Back to project page SmartHome.

License

The source code is released under:

GNU General Public License

If you think the Android project SmartHome 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.geekytheory.SmartHome_App;
/*from  w w w  .j  a  va2 s  .co  m*/
/**
 * Author: Mario Prez Esteso 
 * Website: http://geekytheory.com 
 * Mail: mario@geekytheory.com
 */

public class DeviceItem {
  int id;
  String title = null;
  boolean selected = false;

  public DeviceItem(String title, int id, boolean selected) {
    super();
    this.title = title;
    this.id = id;
    this.selected = selected;
  }

  public int getId() {
    return id;
  }

  public void setId(int id) {
    this.id = id;
  }

  public String getTitle() {
    return title;
  }

  public void setTitle(String title) {
    this.title = title;
  }

  public boolean isOn() {
    return selected;
  }

  public void setState(boolean selected) {
    this.selected = selected;
  }
}




Java Source Code List

com.geekytheory.SmartHome_App.About.java
com.geekytheory.SmartHome_App.AsyncLoadTasks.java
com.geekytheory.SmartHome_App.CommonAsyncTask.java
com.geekytheory.SmartHome_App.CustomHttpClient.java
com.geekytheory.SmartHome_App.DeviceItem.java
com.geekytheory.SmartHome_App.JSONuse.java
com.geekytheory.SmartHome_App.MyActivity.java
com.geekytheory.SmartHome_App.TestFragment.java
com.geekytheory.SmartHome_App.Utils.java