Exemplo n.º 1
0
        public ConferenceMember(ConferenceController parent, InCallController call, eConferenceMemberStatus conStatus, byte conferenceId) : base(call.ClientApp, call.Channel, call.Unit)
        {
            this.Parent = parent;
            call.DisconnectPOConnectionWhenFinalise = false;
            call.KeepSelection = true;
            call.Finalise();

            this.ConferenceId            = conferenceId;
            this.Connection.ConferenceId = this.ConferenceId;

            SendConnection(this.Connection);
            this.ConStatus = conStatus;
        }
Exemplo n.º 2
0
        public void InitMemberVolumn()
        {
            eConferenceMemberStatus status = eConferenceMemberStatus.Listening;
            var list = GetAllMembers().ToList();

            if (list.Count <= MaxSpeaker)
            {
                status = eConferenceMemberStatus.Speaking;
            }
            foreach (var mem in list)
            {
                mem.ConStatus = status;
                mem.SendAdjustVolumn();
            }
        }
Exemplo n.º 3
0
        public ConferenceMember(ConferenceController parent, HostPhoneViewModel channel, byte conferenceId, UnitPhoneViewModel unit = null)
            : base(parent.ClientApp, channel, unit)
        {
            this.StartSpeakingTime       = DateTime.Now;
            this.Parent                  = parent;
            _conStatus                   = eConferenceMemberStatus.Waiting;
            this.ConferenceId            = conferenceId;
            this.Connection.ConferenceId = this.ConferenceId;

            if (this.Unit != null)
            {
                this.Channel.Tone = this.Unit.GetFullNumber();
            }

            Dial();
        }