Android Open Source - MinerStatus Btcguild Status






From Project

Back to project page MinerStatus.

License

The source code is released under:

Apache License

If you think the Android project MinerStatus 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 me.davidgreene.minerstatus.beans;
/*  w w  w .  j  av a2 s .  co m*/
import java.io.Serializable;
import java.util.Iterator;
import java.util.Map;

public class BtcguildStatus implements Status, Serializable {

  /**
   * 
   */
  private static final long serialVersionUID = 2399234390831522839L;

  private BtcguildUser user;
  private BtcguildPool pool;
  private Map<String, BtcguildWorker> workers;
  private String apiKey;
  
  @Override
  public String getUsername() {
    return "Worker(s)";
  }

  @Override
  public String getDisplayCol1() {
    return user.getConfirmed_rewards().toString();
  }

  @Override
  public String getDisplayCol2() {
    Double hashRate = 0D;
    Iterator it = workers.entrySet().iterator();
    while (it.hasNext()) {
      Map.Entry pairs = (Map.Entry)it.next();
      pairs.getKey();
      BtcguildWorker worker = (BtcguildWorker) pairs.getValue();
      hashRate += worker.getHash_rate();
    }
    return hashRate.toString();
  }

  @Override
  public String getUsernameLabel() {
    return "";
  }

  @Override
  public String getDisplayCol1Label() {
    return "Confirmed Rewards";
  }

  @Override
  public String getDisplayCol2Label() {
    return "Hash Rate";
  }

  public BtcguildUser getUser() {
    return user;
  }

  public void setUser(BtcguildUser user) {
    this.user = user;
  }

  public BtcguildPool getPool() {
    return pool;
  }

  public void setPool(BtcguildPool pool) {
    this.pool = pool;
  }

  public Map<String, BtcguildWorker> getWorkers() {
    return workers;
  }

  public void setWorkers(Map<String, BtcguildWorker> workers) {
    this.workers = workers;
  }

  public String getApiKey() {
    return apiKey;
  }

  public void setApiKey(String apiKey) {
    this.apiKey = apiKey;
  }

}




Java Source Code List

me.davidgreene.minerstatus.AbstractMinerStatusActivity.java
me.davidgreene.minerstatus.AddMinerActivity.java
me.davidgreene.minerstatus.MainMinerActivity.java
me.davidgreene.minerstatus.MinerStatusApp.java
me.davidgreene.minerstatus.OptionsActivity.java
me.davidgreene.minerstatus.ViewMinerActivity.java
me.davidgreene.minerstatus.beans.BitpoolPool.java
me.davidgreene.minerstatus.beans.BitpoolStatus.java
me.davidgreene.minerstatus.beans.BitpoolUser.java
me.davidgreene.minerstatus.beans.BtcMine.java
me.davidgreene.minerstatus.beans.BtcguildPool.java
me.davidgreene.minerstatus.beans.BtcguildStatus.java
me.davidgreene.minerstatus.beans.BtcguildUser.java
me.davidgreene.minerstatus.beans.BtcguildWorker.java
me.davidgreene.minerstatus.beans.DeepbitStatus.java
me.davidgreene.minerstatus.beans.MtGox.java
me.davidgreene.minerstatus.beans.Result.java
me.davidgreene.minerstatus.beans.SlushStatus.java
me.davidgreene.minerstatus.beans.Status.java
me.davidgreene.minerstatus.beans.Ticker.java
me.davidgreene.minerstatus.beans.WorkerStatus.java
me.davidgreene.minerstatus.beans.Worker.java
me.davidgreene.minerstatus.service.ConfigServiceImpl.java
me.davidgreene.minerstatus.service.ConfigService.java
me.davidgreene.minerstatus.service.MinerServiceImpl.java
me.davidgreene.minerstatus.service.MinerService.java
me.davidgreene.minerstatus.service.ThemeServiceImpl.java
me.davidgreene.minerstatus.service.ThemeService.java
me.davidgreene.minerstatus.theme.DarkTheme.java
me.davidgreene.minerstatus.theme.LightTheme.java
me.davidgreene.minerstatus.theme.ThemeFactory.java
me.davidgreene.minerstatus.theme.Theme.java
me.davidgreene.minerstatus.util.AsynchMinerUpdateThread.java
me.davidgreene.minerstatus.util.DbOpenHelper.java
me.davidgreene.minerstatus.util.MinerStatusConstants.java
me.davidgreene.minerstatus.util.StatusObjectFactory.java