ConfigureInfo.java :  » Network » smartphone-networks » com » mobed » ssn » Android Open Source

Android Open Source » Network » smartphone networks 
smartphone networks » com » mobed » ssn » ConfigureInfo.java
package com.mobed.ssn;

import android.database.Cursor;

public class ConfigureInfo {
//  public static final int TIME_YEAR = 1;
//  public static final int TIME_MONTH = (1 << 1);
//  public static final int TIME_WEEK = (1 << 2);
//  public static final int TIME_DAY = (1 << 3);
//
//  public static final int ORDER_ALPHABET = 1;
//  public static final int ORDER_FREQUENT = 2;
//  public static final int ORDER_LATEST_TIME = 3;

  public static final int HOUR = 60;

  long configureId;
//  int timeUnit;
//  int timeInterval;  // minute
//  int ordering;
  long lastNodeId;


  String time;

  public ConfigureInfo() {
    clear();
  }

  public void clear() {
    configureId = 0;
//    timeUnit = 0;
//    timeInterval = 0;
//    ordering = 0;
    lastNodeId = 0;


    time = null;
  }

//  public int getTimeUnit() {
//    return timeUnit;
//  }

//  public void setTimeUnit(int timeUnit) {
//    this.timeUnit = timeUnit;
//  }

  public String getTime() {
    return time;
  }

  public void setTime(String time) 
  {
    this.time = time;
  }

  public long getLastNodeId() {
    return lastNodeId;
  }

  public void setLastNodeId(long nodeId) {
    this.lastNodeId = nodeId;
  }

  public long getConfigureId() {
    return configureId;
  }

//  public int getTimeInterval() {
//    return timeInterval;
//  }

//  public void setTimeInterval(int timeInterval) {
//    this.timeInterval = timeInterval;
//  }


  public void setConfigureId(long configureId) {
    this.configureId = configureId;
  }

//  public int getOrdering() {
//    return ordering;
//  }

//  public void setOrdering(int ordering) {
//    this.ordering = ordering;
//  }

  public void set(Cursor cs) 
  {
    configureId = cs.getLong(ssnDatabase.CONFIGURE_COLUMN_ID);
//    timeUnit = cs.getInt(ssnDatabase.CONFIGURE_COLUMN_TIME_UNIT);
//    timeInterval = cs.getInt(ssnDatabase.CONFIGURE_COLUMN_TIME_INTERVAL);
//    ordering = cs.getInt(ssnDatabase.CONFIGURE_COLUMN_ORDERING);
    lastNodeId = cs.getLong(ssnDatabase.CONFIGURE_COLUMN_LAST_NODE_ID);
    time = cs.getString(ssnDatabase.CONFIGURE_COLUMN_TIME);
  }
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.