[file name]: GTaskStringUtils.java
[file content begin]
/*
 * Copyright (c) 2010-2011, The MiCode Open Source Community (www.micode.net)
 * 版权声明：2010-2011年，MiCode开源社区
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * 基于Apache License 2.0许可证授权
 * 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;

// Google Task相关JSON字段和常量的工具类
public class GTaskStringUtils {

    // JSON字段名常量定义
    
    // 动作相关字段
    public final static String GTASK_JSON_ACTION_ID = "action_id";          // 动作ID字段
    public final static String GTASK_JSON_ACTION_LIST = "action_list";      // 动作列表字段
    public final static String GTASK_JSON_ACTION_TYPE = "action_type";      // 动作类型字段
    public final static String GTASK_JSON_ACTION_TYPE_CREATE = "create";    // 创建动作类型
    public final static String GTASK_JSON_ACTION_TYPE_GETALL = "get_all";   // 获取全部动作类型
    public final static String GTASK_JSON_ACTION_TYPE_MOVE = "move";        // 移动动作类型
    public final static String GTASK_JSON_ACTION_TYPE_UPDATE = "update";    // 更新动作类型
    
    // 创建者相关字段
    public final static String GTASK_JSON_CREATOR_ID = "creator_id";        // 创建者ID字段
    
    // 实体相关字段
    public final static String GTASK_JSON_CHILD_ENTITY = "child_entity";    // 子实体字段
    public final static String GTASK_JSON_ENTITY_DELTA = "entity_delta";    // 实体增量字段
    public final static String GTASK_JSON_ENTITY_TYPE = "entity_type";      // 实体类型字段
    public final static String GTASK_JSON_TYPE_GROUP = "GROUP";             // 组类型
    public final static String GTASK_JSON_TYPE_TASK = "TASK";               // 任务类型
    
    // 客户端版本字段
    public final static String GTASK_JSON_CLIENT_VERSION = "client_version"; // 客户端版本字段
    
    // 完成状态字段
    public final static String GTASK_JSON_COMPLETED = "completed";          // 完成状态字段
    
    // 列表相关字段
    public final static String GTASK_JSON_CURRENT_LIST_ID = "current_list_id"; // 当前列表ID字段
    public final static String GTASK_JSON_DEFAULT_LIST_ID = "default_list_id"; // 默认列表ID字段
    public final static String GTASK_JSON_DEST_LIST = "dest_list";          // 目标列表字段
    public final static String GTASK_JSON_LIST_ID = "list_id";              // 列表ID字段
    public final static String GTASK_JSON_LISTS = "lists";                  // 列表集合字段
    public final static String GTASK_JSON_SOURCE_LIST = "source_list";      // 源列表字段
    
    // 删除相关字段
    public final static String GTASK_JSON_DELETED = "deleted";              // 删除状态字段
    public final static String GTASK_JSON_GET_DELETED = "get_deleted";      // 获取删除项字段
    
    // 父级相关字段
    public final static String GTASK_JSON_DEST_PARENT = "dest_parent";      // 目标父级字段
    public final static String GTASK_JSON_DEST_PARENT_TYPE = "dest_parent_type"; // 目标父级类型字段
    public final static String GTASK_JSON_PARENT_ID = "parent_id";          // 父级ID字段
    
    // 通用字段
    public final static String GTASK_JSON_ID = "id";                        // ID字段
    public final static String GTASK_JSON_INDEX = "index";                  // 索引字段
    public final static String GTASK_JSON_LAST_MODIFIED = "last_modified";  // 最后修改时间字段
    public final static String GTASK_JSON_LATEST_SYNC_POINT = "latest_sync_point"; // 最新同步点字段
    public final static String GTASK_JSON_NAME = "name";                    // 名称字段
    public final static String GTASK_JSON_NEW_ID = "new_id";                // 新ID字段
    public final static String GTASK_JSON_NOTES = "notes";                  // 笔记字段
    public final static String GTASK_JSON_PRIOR_SIBLING_ID = "prior_sibling_id"; // 前兄弟ID字段
    public final static String GTASK_JSON_RESULTS = "results";              // 结果字段
    public final static String GTASK_JSON_TASKS = "tasks";                  // 任务字段
    public final static String GTASK_JSON_TYPE = "type";                    // 类型字段
    public final static String GTASK_JSON_USER = "user";                    // 用户字段
    
    // MIUI文件夹前缀
    public final static String MIUI_FOLDER_PREFFIX = "[MIUI_Notes]";        // MIUI笔记文件夹前缀
    
    // 文件夹名称常量
    public final static String FOLDER_DEFAULT = "Default";                  // 默认文件夹名称
    public final static String FOLDER_CALL_NOTE = "Call_Note";              // 通话笔记文件夹名称
    public final static String FOLDER_META = "METADATA";                    // 元数据文件夹名称
    
    // 元数据头部信息
    public final static String META_HEAD_GTASK_ID = "meta_gid";             // 元数据GTask ID头部
    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"; // 元数据笔记名称

}
[file content end]