package com.qiyou.mb.android.beans;

import java.util.ArrayList;

import android.text.TextUtils;
import android.util.Log;

import com.google.gson.Gson;
import com.qiyou.mb.android.beans.basic.Footmark_bean;
import com.qiyou.mb.android.utils.Utils;

public class Footmark {
	public static String TAG ="com.qiyou.beans.footmark";
    public static String dTAG ="com.qiyou";
	public Footmark() {
		// TODO Auto-generated constructor stub
	}
	 
	private  ArrayList<Footmark_bean>  fbs;  
	private String comment;
	private int trackId;
	private String name;
	private long time;
	
	
	public Footmark(String jsonFm){
		Gson gson = new Gson();		
		try{
			if(!TextUtils.isEmpty(jsonFm)){
				Footmark fm = gson.fromJson(jsonFm, Footmark.class);
				fbs = fm.getFbs();
				trackId=fm.getTrackId();
				name=fm.getName();
				time=fm.getTime();
				comment=fm.getComment();
			}
		}catch(Exception e) {
			Utils.logStackTrace(e, dTAG);
			if(!TextUtils.isEmpty(jsonFm)){
				Log.e(dTAG,TAG + "  Json to footmark error--------------as below json ----" );
				Log.e(dTAG ,TAG+ jsonFm );
			}
		}
	} 
	
	
	public String getComment() {
		return comment;
	}
	
	public void setComment(String comment) {
		this.comment = comment;
	}

	public ArrayList<Footmark_bean> getFbs() {
		return fbs;
	}

	public void setFbs(ArrayList<Footmark_bean> fbs) {
		this.fbs = fbs;
	}
  
	public int getTrackId() {
		return trackId;
	}
	public void setTrackId(int trackId) {
		this.trackId = trackId;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public long getTime() {
		return time;
	}
	public void setTime(long time) {
		this.time = time;
	}
	 
    public boolean toPdf(){
		
		return true;
	}

    public boolean tofile(){
		
		return true;
	}
}
