} // CONSTRUCTOR

        #endregion

        // ------------------------------------------------------------------------------
        // ------------------------------------------------------------------------------

        #region HttpRequestReturned
        private void channelNeg1Error(ChannelEventArgs e)
        {
            Debug.WriteLine(LOG_TAG + ": Channel API Neg 1 error.");
            channelAPI = new ChannelAPI(this, delegate
            {
                //channelAPI.connect(this.notificationID);
            });
            channelAPI.channelEvent += new ChannelEventListener(channelNotification);
            channelAPI.neg1error    += new ChannelEventListener(channelNeg1Error);
        }
        // CONSTRUCTOR
        public CollabrifyClient(string _gmail, string _displayName, string _accountGmail, string _access_token, bool _get_latest)
        {
            participant = new CollabrifyParticipant(0, _displayName, _gmail, 0);
              http_object = new HttpRequest__Object();
              channelAPI = new ChannelAPI(this);

              accountGmail = _accountGmail;
              accessToken = _access_token;
              getLatest = _get_latest;

              http_object.HttpRequestDone += new CollabrifyEventListener(httpReturned);
              channelAPI.channelEvent += new ChannelEventListener(channelNotification);
              //channelAPI.neg1error += new ChannelEventListener(channelNeg1Error);

              HttpRequest_Warmup.make_request(this, http_object);

              eventsPaused = false;
        }
        // CONSTRUCTOR
        public CollabrifyClient(string _gmail, string _displayName, string _accountGmail, string _access_token, bool _get_latest)
        {
            participant = new CollabrifyParticipant(0, _displayName, _gmail, 0);
            http_object = new HttpRequest__Object();
            channelAPI  = new ChannelAPI(this);

            accountGmail = _accountGmail;
            accessToken  = _access_token;
            getLatest    = _get_latest;

            http_object.HttpRequestDone += new CollabrifyEventListener(httpReturned);
            channelAPI.channelEvent     += new ChannelEventListener(channelNotification);
            //channelAPI.neg1error += new ChannelEventListener(channelNeg1Error);

            HttpRequest_Warmup.make_request(this, http_object);

            eventsPaused = false;
        } // CONSTRUCTOR
 private void channelNeg1Error(ChannelEventArgs e)
 {
     Debug.WriteLine(LOG_TAG + ": Channel API Neg 1 error.");
       channelAPI = new ChannelAPI(this, delegate
       {
     //channelAPI.connect(this.notificationID);
       });
       channelAPI.channelEvent += new ChannelEventListener(channelNotification);
       channelAPI.neg1error += new ChannelEventListener(channelNeg1Error);
 }