public void SendDataGetReplyType(byte[] data, CloudPebbleCode code, OnGetReply callback, object d)
        {
            //All this does is register a type with the reply from this for the first reply. It is not reliable.
            InterruptOnRequest interr = new InterruptOnRequest(code, callback, d);

            interrupts.Add(interr);
            //Send the data now.
            SendData(data);
        }
 public InterruptOnRequest(CloudPebbleCode _code, OnGetReply _callback, object _d)
 {
     code     = _code;
     callback = _callback;
     d        = _d;
 }