You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
text123/GTaskStringUtils.java

159 lines
6.1 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

/*
* Copyright (c) 2010-2011, The MiCode Open Source Community (www.micode.net)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package net.micode.notes.tool;
public class GTaskStringUtils {
// JSON 键值常量:标识任务操作的 ID
public final static String GTASK_JSON_ACTION_ID = "action_id";
// JSON 键值常量:标识操作的任务列表
public final static String GTASK_JSON_ACTION_LIST = "action_list";
// JSON 键值常量:任务操作的类型
public final static String GTASK_JSON_ACTION_TYPE = "action_type";
// JSON 键值常量:任务操作类型 - 创建任务
public final static String GTASK_JSON_ACTION_TYPE_CREATE = "create";
// JSON 键值常量:任务操作类型 - 获取所有任务
public final static String GTASK_JSON_ACTION_TYPE_GETALL = "get_all";
// JSON 键值常量:任务操作类型 - 移动任务
public final static String GTASK_JSON_ACTION_TYPE_MOVE = "move";
// JSON 键值常量:任务操作类型 - 更新任务
public final static String GTASK_JSON_ACTION_TYPE_UPDATE = "update";
// JSON 键值常量:创建任务的用户 ID
public final static String GTASK_JSON_CREATOR_ID = "creator_id";
// JSON 键值常量:标识任务的子实体
public final static String GTASK_JSON_CHILD_ENTITY = "child_entity";
// JSON 键值常量:客户端版本
public final static String GTASK_JSON_CLIENT_VERSION = "client_version";
// JSON 键值常量:任务是否已完成
public final static String GTASK_JSON_COMPLETED = "completed";
// JSON 键值常量:当前任务列表的 ID
public final static String GTASK_JSON_CURRENT_LIST_ID = "current_list_id";
// JSON 键值常量:默认任务列表的 ID
public final static String GTASK_JSON_DEFAULT_LIST_ID = "default_list_id";
// JSON 键值常量:任务是否被删除
public final static String GTASK_JSON_DELETED = "deleted";
// JSON 键值常量:目标任务列表
public final static String GTASK_JSON_DEST_LIST = "dest_list";
// JSON 键值常量:目标父任务
public final static String GTASK_JSON_DEST_PARENT = "dest_parent";
// JSON 键值常量:目标父任务类型
public final static String GTASK_JSON_DEST_PARENT_TYPE = "dest_parent_type";
// JSON 键值常量:任务实体的增量数据
public final static String GTASK_JSON_ENTITY_DELTA = "entity_delta";
// JSON 键值常量:任务的类型(任务或任务组)
public final static String GTASK_JSON_ENTITY_TYPE = "entity_type";
// JSON 键值常量:获取删除的任务
public final static String GTASK_JSON_GET_DELETED = "get_deleted";
// JSON 键值常量:任务的 ID
public final static String GTASK_JSON_ID = "id";
// JSON 键值常量:任务在列表中的索引位置
public final static String GTASK_JSON_INDEX = "index";
// JSON 键值常量:任务的最后修改时间
public final static String GTASK_JSON_LAST_MODIFIED = "last_modified";
// JSON 键值常量:最后同步的时间点
public final static String GTASK_JSON_LATEST_SYNC_POINT = "latest_sync_point";
// JSON 键值常量:任务列表的 ID
public final static String GTASK_JSON_LIST_ID = "list_id";
// JSON 键值常量:任务列表
public final static String GTASK_JSON_LISTS = "lists";
// JSON 键值常量:任务名称
public final static String GTASK_JSON_NAME = "name";
// JSON 键值常量:任务的新 ID可能是在移动或创建过程中生成的
public final static String GTASK_JSON_NEW_ID = "new_id";
// JSON 键值常量:任务的备注或附加信息
public final static String GTASK_JSON_NOTES = "notes";
// JSON 键值常量:任务的父任务 ID
public final static String GTASK_JSON_PARENT_ID = "parent_id";
// JSON 键值常量:任务的前一个兄弟任务 ID
public final static String GTASK_JSON_PRIOR_SIBLING_ID = "prior_sibling_id";
// JSON 键值常量:操作结果
public final static String GTASK_JSON_RESULTS = "results";
// JSON 键值常量:源任务列表
public final static String GTASK_JSON_SOURCE_LIST = "source_list";
// JSON 键值常量:任务列表项
public final static String GTASK_JSON_TASKS = "tasks";
// JSON 键值常量:任务的类型
public final static String GTASK_JSON_TYPE = "type";
// JSON 键值常量:任务组类型
public final static String GTASK_JSON_TYPE_GROUP = "GROUP";
// JSON 键值常量:单个任务类型
public final static String GTASK_JSON_TYPE_TASK = "TASK";
// JSON 键值常量:用户信息
public final static String GTASK_JSON_USER = "user";
// 任务相关的文件夹前缀,可能用于标识与 MIUI Notes 相关的特殊文件夹
public final static String MIUI_FOLDER_PREFFIX = "[MIUI_Notes]";
// 默认任务文件夹名称
public final static String FOLDER_DEFAULT = "Default";
// 与通话记录相关的任务文件夹
public final static String FOLDER_CALL_NOTE = "Call_Note";
// 存储元数据的文件夹
public final static String FOLDER_META = "METADATA";
// 元数据文件头 - 任务的 GTASK ID
public final static String META_HEAD_GTASK_ID = "meta_gid";
// 元数据文件头 - 任务备注
public final static String META_HEAD_NOTE = "meta_note";
// 元数据文件头 - 任务数据
public final static String META_HEAD_DATA = "meta_data";
// 特殊的元数据任务名称,提示该任务不可更新或删除
public final static String META_NOTE_NAME = "[META INFO] DON'T UPDATE AND DELETE";
}