Ejemplo n.º 1
0
        public static void CampaignTriggeredConversationNoDisplay(string eventName, IDictionary <string, string> eventPayload)
        {
            if (!CanLog())
            {
                return;
            }
            SwrveQaUser qaUser = SwrveQaUser.Instance;
            string      reason = "No Conversation triggered because In App Message displayed";

            qaUser.CampaignTriggered(eventName, eventPayload, false, reason);
        }
Ejemplo n.º 2
0
        public static void CampaignTriggeredMessage(string eventName, IDictionary <string, string> eventPayload, bool displayed, List <SwrveQaUserCampaignInfo> campaignInfoList)
        {
            if (!CanLog())
            {
                return;
            }

            try {
                SwrveQaUser qaUser = SwrveQaUser.Instance;
                string      noCampaignTriggeredReason = displayed ? "" : "The loaded campaigns returned no message";
                qaUser.CampaignTriggered(eventName, eventPayload, displayed, noCampaignTriggeredReason, campaignInfoList);
            } catch (Exception ex) {
                SwrveLog.LogError("SwrveQaUser: CampaignTriggeredMessage exception:" + ex.ToString());
            }
        }