diff --git a/Notes-master/src/net/micode/notes/tool/GTaskStringUtils.java b/Notes-master/src/net/micode/notes/tool/GTaskStringUtils.java index 666b729..3b31dda 100644 --- a/Notes-master/src/net/micode/notes/tool/GTaskStringUtils.java +++ b/Notes-master/src/net/micode/notes/tool/GTaskStringUtils.java @@ -16,98 +16,63 @@ package net.micode.notes.tool; +/** + * GTaskStringUtils 是一个工具类,提供了一系列与 Google 任务 API 交互时使用的静态常量字符串。 + * 这些常量涵盖了 JSON 字段名称、操作类型以及其他标识符,用于 Google 任务框架内的任务同步与操作。 + */ public class GTaskStringUtils { + // 一组与 Google 任务 API 请求和响应中使用的 JSON 字段名称相关的常量。 public final static String GTASK_JSON_ACTION_ID = "action_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"; - public final static String GTASK_JSON_CHILD_ENTITY = "child_entity"; - 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"; - public final static String GTASK_JSON_DEFAULT_LIST_ID = "default_list_id"; - public final static String GTASK_JSON_DELETED = "deleted"; - public final static String GTASK_JSON_DEST_LIST = "dest_list"; - 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_ENTITY_DELTA = "entity_delta"; - public final static String GTASK_JSON_ENTITY_TYPE = "entity_type"; - public final static String GTASK_JSON_GET_DELETED = "get_deleted"; - public final static String GTASK_JSON_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_LIST_ID = "list_id"; - public final static String GTASK_JSON_LISTS = "lists"; - public final static String GTASK_JSON_NAME = "name"; - public final static String GTASK_JSON_NEW_ID = "new_id"; - public final static String GTASK_JSON_NOTES = "notes"; - public final static String GTASK_JSON_PARENT_ID = "parent_id"; - public final static String GTASK_JSON_PRIOR_SIBLING_ID = "prior_sibling_id"; - public final static String GTASK_JSON_RESULTS = "results"; - public final static String GTASK_JSON_SOURCE_LIST = "source_list"; - public final static String GTASK_JSON_TASKS = "tasks"; - 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"; - public final static String GTASK_JSON_USER = "user"; + // 特定于某个应用或系统的常量 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"; + // 与元数据相关的常量 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"; - -} +} \ No newline at end of file