mirror of https://github.com/tasks/tasks
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
60 lines
1.4 KiB
Java
60 lines
1.4 KiB
Java
14 years ago
|
/**
|
||
12 years ago
|
* Copyright (c) 2012 Todoroo Inc
|
||
|
*
|
||
14 years ago
|
* See the file "LICENSE" for the full license governing this code.
|
||
|
*/
|
||
|
package com.todoroo.astrid.api;
|
||
|
|
||
10 years ago
|
import org.tasks.BuildConfig;
|
||
|
|
||
14 years ago
|
/**
|
||
|
* Constants for interfacing with Astrid.
|
||
|
*
|
||
|
* @author Tim Su <tim@todoroo.com>
|
||
|
*/
|
||
|
public class AstridApiConstants {
|
||
|
|
||
|
// --- General Constants
|
||
|
|
||
|
/**
|
||
|
* Permission for reading tasks and receiving to GET_FILTERS intent
|
||
|
*/
|
||
10 years ago
|
public static final String PERMISSION_READ = BuildConfig.APPLICATION_ID + ".READ";
|
||
14 years ago
|
|
||
|
/**
|
||
|
* Permission for writing and creating tasks
|
||
|
*/
|
||
10 years ago
|
public static final String PERMISSION_WRITE = BuildConfig.APPLICATION_ID + ".WRITE";
|
||
14 years ago
|
|
||
|
/**
|
||
|
* 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
|
||
|
*/
|
||
8 years ago
|
public static final String EXTRAS_TASK_ID = "task_id";
|
||
14 years ago
|
|
||
8 years ago
|
public static final String EXTRAS_TASK = "task";
|
||
8 years ago
|
public static final String EXTRAS_VALUES = "values";
|
||
14 years ago
|
/**
|
||
|
* 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";
|
||
|
}
|