| 123456789101112131415161718192021222324252627282930313233343536 |
- #pragma once
- #include <atomic>
- #include <string>
- class AgentDetailStatis
- {
- public:
- AgentDetailStatis();
- ~AgentDetailStatis();
- AgentDetailStatis& operator = (const AgentDetailStatis&a);
- bool operator ==(const AgentDetailStatis&a) const;
- void setAgentOnlineCount(const std::int32_t& nCount) ; // 参数 1 或-1
- void setAgentFreeCount(const std::int32_t& nCount);
- void setAgentSpeakCount(const std::int32_t& nCount);
- void setAgentReposeCount(const std::int32_t& nCount);
- void setTrunkCallInCount(const std::int32_t& nCount);
- void resetAgent();
- void resetAgentOnlineCount();
- void resetAgentFreeCount() ;
- void resetAgentSpeakCount() ;
- void resetAgentReposeCount() ;
- void resetTrunkCallInCount() ;
- std::string to_string();
-
- private:
- std::atomic_int32_t m_AgentOnlineCount; // 坐席登录数量
- std::atomic_int32_t m_AgentFreeCount; // 空闲数量
- std::atomic_int32_t m_AgentSpeakCount; // 通话中数量
- std::atomic_int32_t m_AgentReposeCount; // 置忙数量
- std::atomic_int32_t m_TrunkCallInCount; // 中继呼入数量
- };
|