Android Open Source - bike-friend Station Log

From Project

Back to project page bike-friend.


The source code is released under:

GNU General Public License

If you think the Android project bike-friend 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.lemoulinstudio.bikefriend.webapp.entity;
//  w w  w. j ava2s  .  co m
import org.bson.types.ObjectId;

 * @author Vincent Cantin
  @CompoundIndex(def = "{stationId: 1, date: 1}")
public class StationLog {
  public ObjectId id;
  public ObjectId stationId;
  public long date;
  public int nbBikes;
  public int nbEmptySlots;

  public StationLog() {

  public StationLog(ObjectId stationId, long date, int nbBikes, int nbEmptySlots) { = new ObjectId();
    this.stationId = stationId; = date;
    this.nbBikes = nbBikes;
    this.nbEmptySlots = nbEmptySlots;


Java Source Code List