コード例 #1
0
        private void btnPersonalConferenceJoin_Click(object sender, EventArgs e)
        {
            Boolean asModerator = cbPersonalConferenceModerator.Checked;
            Boolean muted       = cbPersonalConferenceMuted.Checked;
            String  phoneNumber = tbPersonalConferencePhoneNumber.Text;

            if (String.IsNullOrEmpty(phoneNumber))
            {
                AddStateLine(String.Format("Personal Conference - Cannot Join - No phone number specified"));
                return;
            }

            rainbowBubbles.PersonalConferenceJoin(asModerator, muted, phoneNumber, "", callback =>
            {
                if (callback.Result.Success)
                {
                    AddStateLine(String.Format("Personal Conference - Join done"));
                }
                else
                {
                    AddStateLine("Pb to join Personal Conference ...");
                    log.LogDebug("Pb to join Personal Conference - error:[{0}]", Util.SerializeSdkError(callback.Result));
                }
            });
        }
コード例 #2
0
        private void PersonalConferenceJoin()
        {
            Boolean asModerator = cbPersonalConferenceModerator.State == NSCellStateValue.On;
            Boolean muted       = cbPersonalConferenceMuted.State == NSCellStateValue.On;
            String  phoneNumber = txtPersonalConference_PhoneNumber.StringValue;

            if (String.IsNullOrEmpty(phoneNumber))
            {
                AddStateLine(String.Format("Personal Conference - Cannot Join - No phone number specified"));
                return;
            }

            rainbowBubbles.PersonalConferenceJoin(asModerator, muted, phoneNumber, "", callback =>
            {
                if (callback.Result.Success)
                {
                    AddStateLine(String.Format("Personal Conference - Join done"));
                }
                else
                {
                    AddStateLine("Impossible to join Personal Conference ...");
                    log.Debug("Impossible to join Personal Conference - error:[{0}]", Util.SerializeSdkError(callback.Result));
                }
            });
        }