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.
note/GTaskStringUtils.java

124 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.
*/
// 定义包名表示这个类属于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";
}