private static PartipantLogState ConvertState(UCC_SESSION_ENTITY_STATE uccState) { switch (uccState) { case UCC_SESSION_ENTITY_STATE.UCCSES_CONNECTED: return(PartipantLogState.Connected); case UCC_SESSION_ENTITY_STATE.UCCSES_CONNECTING: return(PartipantLogState.Connecting); case UCC_SESSION_ENTITY_STATE.UCCSES_DISCONNECTED: return(PartipantLogState.Disconnected); case UCC_SESSION_ENTITY_STATE.UCCSES_DISCONNECTING: return(PartipantLogState.Disconnecting); case UCC_SESSION_ENTITY_STATE.UCCSES_IDLE: return(PartipantLogState.Idle); } return(PartipantLogState.Null); }
public void SetState(UCC_SESSION_ENTITY_STATE uccState) { this.State = ConvertState(uccState); }