package edu.mit.mobile.android.livingpostcards.data; /* * Copyright (C) 2012-2013 MIT Mobile Experience Lab * * This program 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 version 2 * of the License. * * This program 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 this program. If not, see <http://www.gnu.org/licenses/>. */ import android.net.Uri; import edu.mit.mobile.android.content.ContentItem; import edu.mit.mobile.android.content.ForeignKeyManager; import edu.mit.mobile.android.content.ProviderUtils; import edu.mit.mobile.android.content.UriPath; import edu.mit.mobile.android.content.column.DBColumn; import edu.mit.mobile.android.content.column.TextColumn; @UriPath(User.PATH) public class User implements ContentItem { @DBColumn(type = TextColumn.class) public static final String DISPLAY_NAME = "display_name"; @DBColumn(type = TextColumn.class) public static final String PUBLIC_URL = "url"; public static final ForeignKeyManager CARDS = new ForeignKeyManager(Card.class); public static final String PATH = "user"; public static final Uri CONTENT_URI = ProviderUtils.toContentUri(CardProvider.AUTHORITY, PATH); }