| 
							
								 | 
							
							/*
 | 
						
						
						
						
							 | 
							
								 | 
							
							 * 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.
 | 
						
						
						
						
							 | 
							
								 | 
							
							 */
 | 
						
						
						
						
							 | 
							
								 | 
							
							
 | 
						
						
						
						
							 | 
							
								 | 
							
							// 定义包名,表示这个类属于net.micode.notes.tool包
 | 
						
						
						
						
							 | 
							
								 | 
							
							package net.micode.notes.tool;
 | 
						
						
						
						
							 | 
							
								 | 
							
							
 | 
						
						
						
						
							 | 
							
								 | 
							
							// 声明一个公共类GTaskStringUtils
 | 
						
						
						
						
							 | 
							
								 | 
							
							public class GTaskStringUtils {
 | 
						
						
						
						
							 | 
							
								 | 
							
							
 | 
						
						
						
						
							 | 
							
								 | 
							
							    // 定义与GTasks JSON操作相关的常量
 | 
						
						
						
						
							 | 
							
								 | 
							
							    // action_id,用于标识操作的ID
 | 
						
						
						
						
							 | 
							
								 | 
							
							    public final static String GTASK_JSON_ACTION_ID = "action_id";
 | 
						
						
						
						
							 | 
							
								 | 
							
							    // action_list,用于标识操作涉及的任务列表
 | 
						
						
						
						
							 | 
							
								 | 
							
							    public final static String GTASK_JSON_ACTION_LIST = "action_list";
 | 
						
						
						
						
							 | 
							
								 | 
							
							    // action_type,用于标识操作类型
 | 
						
						
						
						
							 | 
							
								 | 
							
							    public final static String GTASK_JSON_ACTION_TYPE = "action_type";
 | 
						
						
						
						
							 | 
							
								 | 
							
							    // create,表示创建操作
 | 
						
						
						
						
							 | 
							
								 | 
							
							    public final static String GTASK_JSON_ACTION_TYPE_CREATE = "create";
 | 
						
						
						
						
							 | 
							
								 | 
							
							    // get_all,表示获取所有操作
 | 
						
						
						
						
							 | 
							
								 | 
							
							    public final static String GTASK_JSON_ACTION_TYPE_GETALL = "get_all";
 | 
						
						
						
						
							 | 
							
								 | 
							
							    // move,表示移动操作
 | 
						
						
						
						
							 | 
							
								 | 
							
							    public final static String GTASK_JSON_ACTION_TYPE_MOVE = "move";
 | 
						
						
						
						
							 | 
							
								 | 
							
							    // update,表示更新操作
 | 
						
						
						
						
							 | 
							
								 | 
							
							    public final static String GTASK_JSON_ACTION_TYPE_UPDATE = "update";
 | 
						
						
						
						
							 | 
							
								 | 
							
							
 | 
						
						
						
						
							 | 
							
								 | 
							
							    // 定义与GTasks实体相关的常量
 | 
						
						
						
						
							 | 
							
								 | 
							
							    // creator_id,用于标识创建者的ID
 | 
						
						
						
						
							 | 
							
								 | 
							
							    public final static String GTASK_JSON_CREATOR_ID = "creator_id";
 | 
						
						
						
						
							 | 
							
								 | 
							
							    // child_entity,用于标识子实体
 | 
						
						
						
						
							 | 
							
								 | 
							
							    public final static String GTASK_JSON_CHILD_ENTITY = "child_entity";
 | 
						
						
						
						
							 | 
							
								 | 
							
							    // client_version,用于标识客户端版本
 | 
						
						
						
						
							 | 
							
								 | 
							
							    public final static String GTASK_JSON_CLIENT_VERSION = "client_version";
 | 
						
						
						
						
							 | 
							
								 | 
							
							    // completed,用于标识任务是否完成
 | 
						
						
						
						
							 | 
							
								 | 
							
							    public final static String GTASK_JSON_COMPLETED = "completed";
 | 
						
						
						
						
							 | 
							
								 | 
							
							    // current_list_id,用于标识当前任务所在的列表ID
 | 
						
						
						
						
							 | 
							
								 | 
							
							    public final static String GTASK_JSON_CURRENT_LIST_ID = "current_list_id";
 | 
						
						
						
						
							 | 
							
								 | 
							
							    // default_list_id,用于标识默认任务列表的ID
 | 
						
						
						
						
							 | 
							
								 | 
							
							    public final static String GTASK_JSON_DEFAULT_LIST_ID = "default_list_id";
 | 
						
						
						
						
							 | 
							
								 | 
							
							    // deleted,用于标识任务是否被删除
 | 
						
						
						
						
							 | 
							
								 | 
							
							    public final static String GTASK_JSON_DELETED = "deleted";
 | 
						
						
						
						
							 | 
							
								 | 
							
							    // dest_list,用于标识目标列表
 | 
						
						
						
						
							 | 
							
								 | 
							
							    public final static String GTASK_JSON_DEST_LIST = "dest_list";
 | 
						
						
						
						
							 | 
							
								 | 
							
							    // dest_parent,用于标识目标父级
 | 
						
						
						
						
							 | 
							
								 | 
							
							    public final static String GTASK_JSON_DEST_PARENT = "dest_parent";
 | 
						
						
						
						
							 | 
							
								 | 
							
							    // dest_parent_type,用于标识目标父级类型
 | 
						
						
						
						
							 | 
							
								 | 
							
							    public final static String GTASK_JSON_DEST_PARENT_TYPE = "dest_parent_type";
 | 
						
						
						
						
							 | 
							
								 | 
							
							    // entity_delta,用于标识实体变化
 | 
						
						
						
						
							 | 
							
								 | 
							
							    public final static String GTASK_JSON_ENTITY_DELTA = "entity_delta";
 | 
						
						
						
						
							 | 
							
								 | 
							
							    // entity_type,用于标识实体类型
 | 
						
						
						
						
							 | 
							
								 | 
							
							    public final static String GTASK_JSON_ENTITY_TYPE = "entity_type";
 | 
						
						
						
						
							 | 
							
								 | 
							
							    // get_deleted,用于标识是否获取已删除的任务
 | 
						
						
						
						
							 | 
							
								 | 
							
							    public final static String GTASK_JSON_GET_DELETED = "get_deleted";
 | 
						
						
						
						
							 | 
							
								 | 
							
							    // id,用于标识实体的ID
 | 
						
						
						
						
							 | 
							
								 | 
							
							    public final static String GTASK_JSON_ID = "id";
 | 
						
						
						
						
							 | 
							
								 | 
							
							    // index,用于标识索引
 | 
						
						
						
						
							 | 
							
								 | 
							
							    public final static String GTASK_JSON_INDEX = "index";
 | 
						
						
						
						
							 | 
							
								 | 
							
							    // last_modified,用于标识最后一次修改时间
 | 
						
						
						
						
							 | 
							
								 | 
							
							    public final static String GTASK_JSON_LAST_MODIFIED = "last_modified";
 | 
						
						
						
						
							 | 
							
								 | 
							
							    // latest_sync_point,用于标识最新的同步点
 | 
						
						
						
						
							 | 
							
								 | 
							
							    public final static String GTASK_JSON_LATEST_SYNC_POINT = "latest_sync_point";
 | 
						
						
						
						
							 | 
							
								 | 
							
							    // list_id,用于标识列表ID
 | 
						
						
						
						
							 | 
							
								 | 
							
							    public final static String GTASK_JSON_LIST_ID = "list_id";
 | 
						
						
						
						
							 | 
							
								 | 
							
							    // lists,用于标识列表集合
 | 
						
						
						
						
							 | 
							
								 | 
							
							    public final static String GTASK_JSON_LISTS = "lists";
 | 
						
						
						
						
							 | 
							
								 | 
							
							    // name,用于标识名称
 | 
						
						
						
						
							 | 
							
								 | 
							
							    public final static String GTASK_JSON_NAME = "name";
 | 
						
						
						
						
							 | 
							
								 | 
							
							    // new_id,用于标识新ID
 | 
						
						
						
						
							 | 
							
								 | 
							
							    public final static String GTASK_JSON_NEW_ID = "new_id";
 | 
						
						
						
						
							 | 
							
								 | 
							
							    // notes,用于标识笔记
 | 
						
						
						
						
							 | 
							
								 | 
							
							    public final static String GTASK_JSON_NOTES = "notes";
 | 
						
						
						
						
							 | 
							
								 | 
							
							    // parent_id,用于标识父级ID
 | 
						
						
						
						
							 | 
							
								 | 
							
							    public final static String GTASK_JSON_PARENT_ID = "parent_id";
 | 
						
						
						
						
							 | 
							
								 | 
							
							    // prior_sibling_id,用于标识前一个同级ID
 | 
						
						
						
						
							 | 
							
								 | 
							
							    public final static String GTASK_JSON_PRIOR_SIBLING_ID = "prior_sibling_id";
 | 
						
						
						
						
							 | 
							
								 | 
							
							    // results,用于标识结果集合
 | 
						
						
						
						
							 | 
							
								 | 
							
							    public final static String GTASK_JSON_RESULTS = "results";
 | 
						
						
						
						
							 | 
							
								 | 
							
							    // source_list,用于标识源列表
 | 
						
						
						
						
							 | 
							
								 | 
							
							    public final static String GTASK_JSON_SOURCE_LIST = "source_list";
 | 
						
						
						
						
							 | 
							
								 | 
							
							    // tasks,用于标识任务集合
 | 
						
						
						
						
							 | 
							
								 | 
							
							    public final static String GTASK_JSON_TASKS = "tasks";
 | 
						
						
						
						
							 | 
							
								 | 
							
							    // type,用于标识类型
 | 
						
						
						
						
							 | 
							
								 | 
							
							    public final static String GTASK_JSON_TYPE = "type";
 | 
						
						
						
						
							 | 
							
								 | 
							
							    // GROUP,表示组类型
 | 
						
						
						
						
							 | 
							
								 | 
							
							    public final static String GTASK_JSON_TYPE_GROUP = "GROUP";
 | 
						
						
						
						
							 | 
							
								 | 
							
							    // TASK,表示任务类型
 | 
						
						
						
						
							 | 
							
								 | 
							
							    public final static String GTASK_JSON_TYPE_TASK = "TASK";
 | 
						
						
						
						
							 | 
							
								 | 
							
							    // user,用于标识用户
 | 
						
						
						
						
							 | 
							
								 | 
							
							    public final static String GTASK_JSON_USER = "user";
 | 
						
						
						
						
							 | 
							
								 | 
							
							
 | 
						
						
						
						
							 | 
							
								 | 
							
							    // 定义与文件夹相关的常量
 | 
						
						
						
						
							 | 
							
								 | 
							
							    // [MIUI_Notes],表示MIUI笔记文件夹的前缀
 | 
						
						
						
						
							 | 
							
								 | 
							
							    public final static String MIUI_FOLDER_PREFFIX = "[MIUI_Notes]";
 | 
						
						
						
						
							 | 
							
								 | 
							
							    // Default,表示默认文件夹名
 | 
						
						
						
						
							 | 
							
								 | 
							
							    public final static String FOLDER_DEFAULT = "Default";
 | 
						
						
						
						
							 | 
							
								 | 
							
							    // Call_Note,表示通话记录文件夹名
 | 
						
						
						
						
							 | 
							
								 | 
							
							    public final static String FOLDER_CALL_NOTE = "Call_Note";
 | 
						
						
						
						
							 | 
							
								 | 
							
							    // METADATA,表示元数据文件夹名
 | 
						
						
						
						
							 | 
							
								 | 
							
							    public final static String FOLDER_META = "METADATA";
 | 
						
						
						
						
							 | 
							
								 | 
							
							
 | 
						
						
						
						
							 | 
							
								 | 
							
							    // 定义与元数据相关的常量
 | 
						
						
						
						
							 | 
							
								 | 
							
							    // meta_gid,用于标识元数据中的GTasks ID
 | 
						
						
						
						
							 | 
							
								 | 
							
							    public final static String META_HEAD_GTASK_ID = "meta_gid";
 | 
						
						
						
						
							 | 
							
								 | 
							
							    // meta_note,用于标识元数据中的笔记
 | 
						
						
						
						
							 | 
							
								 | 
							
							    public final static String META_HEAD_NOTE = "meta_note";
 | 
						
						
						
						
							 | 
							
								 | 
							
							    // meta_data,用于标识元数据中的数据
 | 
						
						
						
						
							 | 
							
								 | 
							
							    public final static String META_HEAD_DATA = "meta_data";
 | 
						
						
						
						
							 | 
							
								 | 
							
							
 | 
						
						
						
						
							 | 
							
								 | 
							
							    // [META INFO] DON'T UPDATE AND DELETE,表示元数据笔记的名称,提示用户不要更新和删除
 | 
						
						
						
						
							 | 
							
								 | 
							
							    public final static String META_NOTE_NAME = "[META INFO] DON'T UPDATE AND DELETE";
 | 
						
						
						
						
							 | 
							
								 | 
							
							}
 |