Android Open Source - MyBarr-android Beat User






From Project

Back to project page MyBarr-android.

License

The source code is released under:

/* Copyright (c) 2011 Rdio Inc Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the S...

If you think the Android project MyBarr-android 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.music.mybarr.model;
/*from   ww w  .j a va 2  s .c o m*/
import java.util.Date;

public class BeatUser {

  private String id, uri, path;
  private long start_time, end_time;
  private double distance_m;
  
  public BeatUser(String id,String uri,long start_time,long end_time,double distance_m, String path) {
    this.id = id;
    this.uri = uri;
    this.start_time = start_time;
    this.end_time = end_time;
    this.distance_m = distance_m;
    this.path = path;
  }
  
  public BeatUser(String id) {
    this.id = id;
  }
  
  public String getId(){
    return this.id;
  }
  
  public String getUri() {
    return this.uri;
  }

  public long getStartTime() {
    return this.start_time;
  }

  public long getEndTime() {
    return this.end_time;
  }
  
  public String getPath(){
    return this.path;
  };
  
  public Date getStartDate() {
    Date date = new Date(this.start_time);
    //DateFormat format = new SimpleDateFormat("MM-dd-yyyy h:mm:ss a");
    return date;
  }
  public Date getEndDate() {
    Date date = new Date(this.end_time);
    return date;
  }
  
  public double getDistance() {
    return distance_m;
  }
  
}




Java Source Code List

com.music.mybarr.activities.ExampleActivity.java
com.music.mybarr.activities.RdioProgress.java
com.music.mybarr.callbacks.UserCallback.java
com.music.mybarr.controller.ApiController.java
com.music.mybarr.model.BeatUser.java
com.urucas.services.JSONRequestTaskHandler.java
com.urucas.services.JSONRequestTask.java
com.urucas.services.JSONRequest.java
com.urucas.services.RequestTaskHandler.java
com.urucas.services.RequestTask.java
com.urucas.utils.Utils.java