Exemplo n.º 1
0
    public void startHintConsumer()
    {
        AppConsumerTimestamp hintConsumer = new AppConsumerTimestamp(face_, keyChain_, false);
        HintHandler          hh           = new HintHandler(this);

        hintConsumer.consume(new Name(optPrefix).append(startTimeComponent), hh, hh, hh);
    }
Exemplo n.º 2
0
    void startGyroConsumer(string prefix)
    {
        gyroConsumer_    = new AppConsumerTimestamp(face_, keyChain_, false, -1);
        gyroDataHandler_ = new GyroDataHandler();

        gyroConsumer_.consume(new Name(prefix), gyroDataHandler_, gyroDataHandler_, gyroDataHandler_);
    }
Exemplo n.º 3
0
    // Use this for initialization
    void Start()
    {
        gyroValues       = new Vector3();
        scaledGyroValues = new Vector3();

        // main is static so cannot refer to non-static members here, if want to make onRequestSuccess and onRequestFailed non-static
        AppConsumerTimestamp consumer = new AppConsumerTimestamp(FaceSingleton.getFace(), FaceSingleton.getKeychain(), false);
        ConsumerDataHandler  cdh      = new ConsumerDataHandler(this);

        // todo: fill in simulator prefix
        consumer.consume(new Name(gyroPrefix), cdh, cdh, cdh);
    }