Пример #1
0
        public void onInteraction(StreamConsumer consumer, Interaction interaction, string hash)
        {
            try
            {
                m_form.footballLog("Type: " + interaction.getStringVal("interaction.type"));
                m_form.footballLog("Content: " + interaction.getStringVal("interaction.content"));
                m_form.footballLog("--");

                m_count--;
                if (m_count == 0)
                {
                    m_form.footballLog("Stopping consumer...");
                    consumer.stop();
                }
            }
            catch (Exception e)
            {
                m_form.footballLog(e.GetType().ToString() + ": " + e.Message);
            }
        }
Пример #2
0
 public void onDeleted(StreamConsumer consumer, Interaction interaction, string hash)
 {
     try
     {
         m_form.footballLog("Delete request for interaction " + interaction.getStringVal("interaction.id") + " of type " + interaction.getStringVal("interaction.type"));
         m_form.footballLog("Please delete it from your archive.");
         m_form.footballLog("--");
     }
     catch (Exception e)
     {
         m_form.footballLog(e.GetType().ToString() + ": " + e.Message);
     }
 }