111 lines
4.1 KiB
C#
111 lines
4.1 KiB
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using System.Threading;
|
|
|
|
namespace ThinkingSDK.PC.Constant
|
|
{
|
|
public delegate void ResponseHandle(Dictionary<string,object> result = null);
|
|
public class ThinkingSDKConstant
|
|
{
|
|
|
|
//库运行的平台
|
|
public static readonly string PLATFORM = "PC";
|
|
//时间格式
|
|
public static readonly string TIME_PATTERN = "{0:yyyy-MM-dd HH:mm:ss.fff}";
|
|
|
|
/*
|
|
* 关键字声明
|
|
* */
|
|
//事件类型
|
|
public static readonly string TYPE = "#type";
|
|
//时间
|
|
public static readonly string TIME = "#time";
|
|
//访客ID
|
|
public static readonly string DISTINCT_ID = "#distinct_id";
|
|
//事件名称
|
|
public static readonly string EVENT_NAME = "#event_name";
|
|
//账号ID
|
|
public static readonly string ACCOUNT_ID = "#account_id";
|
|
//属性
|
|
public static readonly string PROPERTIES = "properties";
|
|
//网络类型
|
|
public static readonly string NETWORK_TYPE = "#network_type";
|
|
//库版本
|
|
public static readonly string LIB_VERSION = "#lib_version";
|
|
//运营商信息
|
|
public static readonly string CARRIER = "#carrier";
|
|
//库名称
|
|
public static readonly string LIB = "#lib";
|
|
//系统类型
|
|
public static readonly string OS = "#os";
|
|
//设备ID
|
|
public static readonly string DEVICE_ID = "#device_id";
|
|
//设备高度
|
|
public static readonly string SCREEN_HEIGHT = "#screen_height";
|
|
//设备宽度
|
|
public static readonly string SCREEN_WIDTH = "#screen_width";
|
|
//厂商
|
|
public static readonly string MANUFACTURE = "#manufacturer";
|
|
//设备型号
|
|
public static readonly string DEVICE_MODEL = "#device_model";
|
|
//系统语言
|
|
public static readonly string SYSTEM_LANGUAGE = "#system_language";
|
|
//系统版本号
|
|
public static readonly string OS_VERSION = "#os_version";
|
|
//app版本号
|
|
public static readonly string APP_VERSION = "#app_version";
|
|
//app唯一标识
|
|
public static readonly string APP_BUNDLEID = "#bundle_id";
|
|
//时区偏移
|
|
public static readonly string ZONE_OFFSET = "#zone_offset";
|
|
//appid
|
|
public static readonly string APPID = "#app_id";
|
|
//单条数据唯一标识
|
|
public static readonly string UUID = "#uuid";
|
|
//首次事件ID
|
|
public static readonly string FIRST_CHECK_ID = "#first_check_id";
|
|
//事件唯一ID
|
|
public static readonly string EVENT_ID = "#event_id";
|
|
//随机数
|
|
public static readonly string RANDOM_ID = "RANDDOM_ID";
|
|
//随机设备ID(WebGL)
|
|
public static readonly string RANDOM_DEVICE_ID = "RANDOM_DEVICE_ID";
|
|
//事件持续时长
|
|
public static readonly string DURATION = "#duration";
|
|
|
|
//静态公共事件属性
|
|
public static readonly string SUPER_PROPERTY = "super_properties";
|
|
|
|
//用户属性相关
|
|
public static readonly string USER_ADD = "user_add";
|
|
public static readonly string USER_SET = "user_set";
|
|
public static readonly string USER_SETONCE = "user_setOnce";
|
|
public static readonly string USER_UNSET = "user_unset";
|
|
public static readonly string USER_DEL = "user_del";
|
|
public static readonly string USER_APPEND = "user_append";
|
|
|
|
//是否暂停数据上报
|
|
public static readonly string ENABLE_TRACK = "enable_track";
|
|
//是否停止数据上报
|
|
public static readonly string OPT_TRACK = "opt_track";
|
|
//是否安装
|
|
public static readonly string IS_INSTALL = "is_install";
|
|
|
|
//安装事件
|
|
public static readonly string INSTALL_EVENT = "ta_app_install";
|
|
//启动事件
|
|
public static readonly string START_EVENT = "ta_app_start";
|
|
//崩溃事件
|
|
public static readonly string CRASH_EVENT = "ta_app_crash";
|
|
//崩溃原因
|
|
public static readonly string CRASH_REASON = @"#app_crashed_reason";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
}
|