Sha256: c3c5e470d09576fff22837d5db137fecd8aa7ad938143e83b0b83be79743b094

Contents?: true

Size: 1.39 KB

Versions: 1

Compression:

Stored size: 1.39 KB

Contents

package com.rho.sensor;

import java.util.List;
import java.util.Map;

import com.rhomobile.rhodes.api.IMethodResult;

public abstract class SensorSingletonBase  {


    public static class makeSensorByTypeTask implements Runnable {
        private ISensorSingleton mApiSingleton; 
        private String type; 
        private IMethodResult mResult;

        public makeSensorByTypeTask(ISensorSingleton obj, 
                String type,         
                IMethodResult result) {
            this.mApiSingleton = obj; 
            this.type = type;        
            this.mResult = result;
        }

        @Override
        public void run() {
            try {
                mApiSingleton.makeSensorByType(
                    type,  mResult);
            } catch (Throwable ex) {
                mResult.set(ex);
            }
        }
    }

    public static class enumerateTask implements Runnable {
        private ISensorSingleton mApiSingleton; 
        private IMethodResult mResult;

        public enumerateTask(ISensorSingleton obj,         
                IMethodResult result) {
            this.mApiSingleton = obj;         
            this.mResult = result;
        }

        @Override
        public void run() {
            try {
                mApiSingleton.enumerate( mResult);
            } catch (Throwable ex) {
                mResult.set(ex);
            }
        }
    }

    
}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tauplatform-1.0.1 lib/commonAPI/sensor/ext/platform/android/generated/src/com/rho/sensor/SensorSingletonBase.java