APISonar


cc.blynk.server.core.model.widgets.others.eventor.TimerTime.time

> cc > blynk > server > core > model > widgets > others > eventor > TimerTime > time
cc APIs blynk APIs server APIs core APIs model APIs widgets APIs others APIs eventor APIs TimerTime APIs time APIs

Example 1
private void delete(UserKey userKey, int dashId, int deviceId, long widgetId, int additionalId,
                        long deviceTilesId, long templateId, TimerTime time) {
        ConcurrentHashMap<TimerKey, BaseAction[]> secondExecutor = timerExecutors.get(time.time);
        if (secondExecutor != null) {
            secondExecutor.remove(new TimerKey(userKey, dashId, deviceId,
                    widgetId, additionalId,
                    deviceTilesId, templateId, time));
        }
    }
Example 2
private void add(UserKey userKey, int dashId, int deviceId, long widgetId, int additionalId, TimerTime time, BaseAction[] actions) {
        ArrayList<BaseAction> validActions = new ArrayList<>(actions.length);
        for (BaseAction action : actions) {
            if (action.isValid()) {
                validActions.add(action);
            }
        }
        if (!validActions.isEmpty()) {
            timerExecutors[hash(time.time)].put(new TimerKey(userKey, dashId, deviceId, widgetId, additionalId, time), validActions.toArray(new BaseAction[validActions.size()]));
        }
    }