Sha256: ff2fb0d1992a21f1b1e40123c359a0f61071dea873c451437182b14e4d392cb1

Contents?: true

Size: 1.92 KB

Versions: 1

Compression:

Stored size: 1.92 KB

Contents

package com.rho.timer;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.rhomobile.rhodes.api.IMethodResult;
import com.rhomobile.rhodes.api.RhoApiObject;


public class TimerBase extends RhoApiObject {

    public TimerBase(String id) {
        super(id);

    }


    public static class startTask implements Runnable {
        private ITimer mApiObject; 
        private int interval;
        private IMethodResult mResult;

        public startTask(ITimer obj, 
                int interval, 
                IMethodResult result) {
            this.mApiObject = obj; 
            this.interval = interval;
            this.mResult = result;
        }

        @Override
        public void run() {
            try {
                mApiObject.start(
                    interval, mResult);
            } catch (Throwable ex) {
                mResult.set(ex);
            }
        }
    }


    public static class stopTask implements Runnable {
        private ITimer mApiObject; 
        private IMethodResult mResult;

        public stopTask(ITimer obj, 
                IMethodResult result) {
            this.mApiObject = obj; 
            this.mResult = result;
        }

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


    public static class isAliveTask implements Runnable {
        private ITimer mApiObject; 
        private IMethodResult mResult;

        public isAliveTask(ITimer obj, 
                IMethodResult result) {
            this.mApiObject = obj; 
            this.mResult = result;
        }

        @Override
        public void run() {
            try {
                mApiObject.isAlive(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/coreapi/ext/platform/android/generated/src/com/rho/timer/TimerBase.java