/** * Copyright (c) 2012 Todoroo Inc * * See the file "LICENSE" for the full license governing this code. */ package com.todoroo.astrid.api; import org.tasks.BuildConfig; /** * Constants for interfacing with Astrid. * * @author Tim Su */ public class AstridApiConstants { // --- General Constants /** * Permission for reading tasks and receiving to GET_FILTERS intent */ public static final String PERMISSION_READ = BuildConfig.APPLICATION_ID + ".READ"; /** * Permission for writing and creating tasks */ public static final String PERMISSION_WRITE = BuildConfig.APPLICATION_ID + ".WRITE"; /** * Name of Astrid's publicly readable preference store */ public static final String PUBLIC_PREFS = "public"; // --- Content Provider /** * URI to append to base content URI for making group-by queries */ public static final String GROUP_BY_URI = "/groupby/"; // --- Broadcast Extras /** * Extras name for task id */ public static final String EXTRAS_TASK_ID = "task_id"; public static final String EXTRAS_TASK = "task"; public static final String EXTRAS_ORIGINAL = "original"; /** * Extras name for old task due date */ public static final String EXTRAS_OLD_DUE_DATE= "oldDueDate"; /** * Extras name for new task due date */ public static final String EXTRAS_NEW_DUE_DATE = "newDueDate"; }