public Agent(UserAuth auth, Dictionary <string, object> sipSetting, string ip, string sessionId, IUiState uiState) { try { Auth = auth; SipSetting = sipSetting; IP = ip; AgentLoginSessionId = sessionId; UiState = uiState; AgentCurrentState = new AgentInitiate(); ardsHandler = new ResourceHandler(auth.SecurityToken, auth.TenantID, auth.CompanyID); InitializeArdsEvent(); CallHandler = new CallHandler(auth.SecurityToken, auth.TenantID, auth.CompanyID); LastActivity = DateTime.Now; } catch (Exception exception) { Logger.Instance.LogMessage(Logger.LogAppender.DuoLogger2, "Agent", exception, Logger.LogLevel.Error); } }
public Call(string phoneNo, IUiState uiState) { UiState = uiState; PhoneNo = phoneNo; CallCurrentState = new CallIdleState(); }
public void SwitchTo(IUiState <T> state) { PopAll(); Push(state); }