All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.genesys.workspace.models.targets.DnTarget Maven / Gradle / Ivy

There is a newer version: 9.0.73
Show newest version
package com.genesys.workspace.models.targets;

import com.genesys.workspace.models.targets.availability.DnAvailability;
import com.genesys.workspace.models.targets.availability.TargetAvailability;
import com.google.gson.internal.LinkedTreeMap;

public abstract class DnTarget extends Target {

    public DnTarget(TargetType type, String name, String number) {
        super(type, name, number);
    }

    @Override
    protected TargetAvailability extractAvailability(LinkedTreeMap data) {
        Integer waitingCalls = ((Double)data.get("waitingCalls")).intValue();
        DnAvailability availability = new DnAvailability(waitingCalls);
        return availability;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy