package com.sogouchat.smsmms;
import android.R.integer;
import android.net.ParseException;
public class MarkItem {
public static final int MARK_NONE = 0;
public static final int MARK_OUTPIC = 1;
public static final int MARK_EMOTION = 2;
public static final int MARK_SOUND = 3;
public MarkItem(int nStart,int nEnd ,String strMark) {
// TODO Auto-generated constructor stub
this.nStart = nStart;
this.nEnd = nEnd;
this.strMark = strMark;
Parse();
}
int nStart = 0;
int nEnd = 0;
String strMark = "";
int nType = MARK_NONE;
public int nEmotionID = 0;
private void Parse(){
if (strMark.length()>3) {
String string = strMark.substring(1, strMark.length()-1);
if (string.charAt(0)=='e' && string.length()>1) {
String strNum = string.substring(1);
nEmotionID = Integer.parseInt(strNum);
if (nEmotionID>0) {
nType = MARK_EMOTION;
}
}
}
}
}