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.
liuli/src/tool/GTaskStringUtils.java

163 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;
/**
* 该类主要定义了与 Google 任务GTask相关的 JSON 字符串常量,用于在处理 GTask 相关数据时作为键名使用,
* 同时也定义了一些文件夹名称和元数据相关的常量。
*/
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";
// 表示创建操作的类型值
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";
// 表示 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";
// 表示组类型的值
public final static String GTASK_JSON_TYPE_GROUP = "GROUP";
// 表示任务类型的值
public final static String GTASK_JSON_TYPE_TASK = "TASK";
// 表示 JSON 中用户的键名
public final static String GTASK_JSON_USER = "user";
// MIUI 文件夹的前缀,用于标识特定的 MIUI 笔记文件夹
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";
// 元数据头部中 Google 任务 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";
}