/*
* DeliciousDroid - http://code.google.com/p/DeliciousDroid/
*
* Copyright (C) 2010 Matt Schmidt
*
* DeliciousDroid is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published
* by the Free Software Foundation; either version 3 of the License,
* or (at your option) any later version.
*
* DeliciousDroid is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with DeliciousDroid; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
* USA
*/
package com.deliciousdroid.providers;
import android.net.Uri;
import android.provider.BaseColumns;
public class TagContent {
public static class Tag implements BaseColumns {
public static final Uri CONTENT_URI = Uri.parse("content://" +
BookmarkContentProvider.AUTHORITY + "/tag");
public static final String CONTENT_TYPE = "vnd.android.cursor.dir/vnd.deliciousdroid.tags";
public static final String Name = "NAME";
public static final String Count = "COUNT";
public static final String Account = "ACCOUNT";
private String mTagName;
private int mCount = 0;
private int mId = 0;
private String mType = null;
public int getId(){
return mId;
}
public String getTagName() {
return mTagName;
}
public void setTagName(String tagName) {
mTagName = tagName;
}
public int getCount() {
return mCount;
}
public String getType() {
return mType;
}
public void setType(String type) {
mType = type;
}
public void setCount(int count) {
mCount = count;
}
public Tag() {
}
public Tag(String tagName) {
mTagName = tagName;
}
public Tag(String tagName, int count) {
mTagName = tagName;
mCount = count;
}
public Tag copy(){
Tag t = new Tag();
t.mCount = this.mCount;
t.mId = this.mId;
t.mTagName = this.mTagName;
t.mType = this.mType;
return t;
}
}
}