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

com.genesys.workspace.models.targets.AgentGroupTarget 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.AgentGroupAvailability;
import com.genesys.workspace.models.targets.availability.TargetAvailability;
import com.google.gson.internal.LinkedTreeMap;

public class AgentGroupTarget extends Target {

    public AgentGroupTarget(String name, String number) {
        super(TargetType.AGENT_GROUP, name, number);
    }

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

    
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy