Esempio n. 1
0
        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);
        }
Esempio n. 2
0
 public void SetState(UCC_SESSION_ENTITY_STATE uccState)
 {
     this.State = ConvertState(uccState);
 }