コード例 #1
0
    public override void Log(string eventID, Dictionary <string, string> data)
    {
        ClientReport2Server msg = new ClientReport2Server();

        msg.eventName = eventID;

        msg.datas = KeyValueData.Dictionary2KeyValueDataList(data);

        JsonMessageProcessingController.SendMessage(msg);
    }
コード例 #2
0
    /// <summary>
    /// 数据上报
    /// </summary>
    /// <param 上报事件名 ="eventName"></param>
    /// <param 具体数据 ="datas"></param>
    public static void ReportEvent(string eventName, Dictionary <string, string> datas)
    {
        CitentReport2Server msg = new CitentReport2Server();

        msg.eventName = eventName;

        msg.datas = KeyValueData.Dictionary2KeyValueDataList(datas);

        JsonMessageProcessingController.SendMessage(msg);
    }