Пример #1
0
        private void Handle_ContactChanged_NotiEvent(object sender, NotificationChangedEventArgs e)
        {
            PhonebookContactChangeInfo info = (PhonebookContactChangeInfo)e.Data;

            Log.Debug(Globals.LogTag, "Pb contact change noti event received");
            Log.Debug(Globals.LogTag, "Pb Type: " + info.Type);
            Log.Debug(Globals.LogTag, "Pb index: " + info.Index);
            Log.Debug(Globals.LogTag, "Pb operation: " + info.Operation);
        }
Пример #2
0
        private void Handle_CallWaitingNoti(object sender, NotificationChangedEventArgs e)
        {
            Log.Debug(Globals.LogTag, "Ss call waiting noti event is received");
            SsWaitingResponse resp = (SsWaitingResponse)e.Data;

            Log.Debug(Globals.LogTag, "Record number: " + resp.RecordNumber);
            List <SsWaitingRecord> rec = resp.Record.ToList();

            for (int i = 0; i < resp.RecordNumber; i++)
            {
                Log.Debug(Globals.LogTag, "[" + i + "] Class: " + rec[i].Class);
                Log.Debug(Globals.LogTag, "[" + i + "] Status: " + rec[i].Status);
            }
        }
Пример #3
0
        private void Handle_NwNotificationChanged(object sender, NotificationChangedEventArgs e)
        {
            try
            {
                Log.Debug(Globals.LogTag, "Handle_NwNotificationChanged event receive, Notification Value = " + e.Id);
                switch (e.Id)
                {
                case Notification.NetworkCellInfo:
                    NetworkCellNoti data = (NetworkCellNoti)e.Data;
                    Log.Debug(Globals.LogTag, "NetworkCellInfo event receive, Lac = " + data.Lac + ", cell id = " + data.CellId);
                    break;

                case Notification.NetworkRegistrationStatus:
                    NetworkRegistrationStatus status = (NetworkRegistrationStatus)e.Data;
                    Log.Debug("NetworkRegistrationStatus event receive , circuit status = ", status.CircuitStatus + ", isroaming = " + status.IsRoaming + ", packetstatus = " + status.PacketStatus + ", type = " + status.Type);
                    break;

                case Notification.NetworkIdentity:
                    NetworkIdentityNoti noti = (NetworkIdentityNoti)e.Data;
                    Log.Debug("NetworkIdentity event receive , fullname = ", noti.FullName + ", plmn = " + noti.Plmn + ", shortname = " + noti.ShortName);
                    break;

                case Notification.NetworkChange:
                    NetworkChangeNoti changeNoti = (NetworkChangeNoti)e.Data;
                    Log.Debug("NetworkChange event receive , plmn = ", changeNoti.Plmn + ", act = " + changeNoti.Act);
                    break;

                case Notification.NetworkDefaultDataSubscription:
                    Log.Debug(Globals.LogTag, "NetworkDefaultDataSubscription event receive, data = " + e.Data);
                    break;

                case Notification.NetworkDefaultSubscription:
                    Log.Debug(Globals.LogTag, "NetworkDefaultSubscription event receive, data = " + e.Data);
                    break;
                }
            }

            catch (Exception ex)
            {
                Log.Debug(Globals.LogTag, "Handle_NwNotificationChanged event exception = " + ex.ToString());
            }
        }
Пример #4
0
        private void Handle_CallForwardNotiEvent(object sender, NotificationChangedEventArgs e)
        {
            Log.Debug(Globals.LogTag, "Call forward noti event received");
            SsForwardResponse resp = (SsForwardResponse)e.Data;

            Log.Debug(Globals.LogTag, "Record number: " + resp.RecordNumber);
            List <SsForwardRecord> rec = resp.Record.ToList();

            for (int i = 0; i < resp.RecordNumber; i++)
            {
                Log.Debug(Globals.LogTag, "[" + i + "] Class: " + rec[i].Class);
                Log.Debug(Globals.LogTag, "[" + i + "] Status: " + rec[i].Status);
                Log.Debug(Globals.LogTag, "[" + i + "] ForwardCondition: " + rec[i].ForwardCondition);
                Log.Debug(Globals.LogTag, "[" + i + "] IsFwNumPresent: " + rec[i].IsForwardingNumberPresent);
                Log.Debug(Globals.LogTag, "[" + i + "] NoReplyTime:: " + rec[i].NoReplyTime);
                Log.Debug(Globals.LogTag, "[" + i + "] Ton: " + rec[i].Ton);
                Log.Debug(Globals.LogTag, "[" + i + "] Npi: " + rec[i].Npi);
                Log.Debug(Globals.LogTag, "[" + i + "] Number: " + rec[i].ForwardingNumber);
            }
        }
Пример #5
0
 private async void Query_NotificationChanged(object sender, NotificationChangedEventArgs e)
 {
     if (Query.HasNotification)
         await Service.Current.Hooks.ShowNotification(e.Notification, e.NotificationType);
 }
Пример #6
0
        private void Handle_CallNotificationChanged(object sender, NotificationChangedEventArgs e)
        {
            try
            {
                Notification id = e.Id;
                Log.Debug(Globals.LogTag, "Handle_CallNotificationChanged event receive, Notification Value = " + id);
                switch (id)
                {
                case Notification.NetworkDefaultSubscription:
                    Log.Debug(Globals.LogTag, "Notification.NetworkDefaultSubscription event receive , data =" + e.Data);
                    break;

                case Notification.IdleVoiceCall:
                    Log.Debug(Globals.LogTag, "Notification.IdleVoiceCall event receive");
                    CallIdleStatusNotificationData status = (CallIdleStatusNotificationData)e.Data;
                    Log.Debug(Globals.LogTag, "CallIdleStatusNotificationData , notiid = " + status.NotiId + ", end cause = " + status.EndCause);
                    break;

                case Notification.ActiveVoiceCall:
                    activeCallHandle = (uint)e.Data;
                    Log.Debug(Globals.LogTag, "Notification.ActiveVoiceCall event receive, notiid = " + e.Id + ", callid= " + activeCallHandle);
                    break;

                case Notification.HeldVoiceCall:
                    heldCallHandle = (uint)e.Data;
                    Log.Debug(Globals.LogTag, "Notification.HeldVoiceCall event receive, notiid = " + e.Id + ", callid= " + heldCallHandle);
                    break;

                case Notification.AlertVoiceCall:
                    Log.Debug(Globals.LogTag, "Notification.AlertVoiceCall event receive, notiid = " + e.Id + ", callid= " + e.Data);
                    break;

                case Notification.DialingVoiceCall:
                    Log.Debug(Globals.LogTag, "Notification.DialingVoiceCall event receive, notiid = " + e.Id + ", callid= " + e.Data);
                    break;

                case Notification.IncomingVoiceCall:
                    Log.Debug(Globals.LogTag, "Notification.IncomingVoiceCall event receive");
                    CallIncomingInfo info = (CallIncomingInfo)e.Data;
                    incomingCallHandle = info.CallHandle;
                    Log.Debug(Globals.LogTag, "CallIncomingInfo data , callid = " + incomingCallHandle + ", callernumber = " + info.CallerNumber + ", calltype= " + info.CallType
                              + ", callmode = " + info.CliMode + ", active line = " + info.ActiveLine + ", nocli cause = " + info.CliCause + ",isfwded = " + info.IsForwarded
                              + ", name = " + info.NameInfo.Name + ", namemode = " + info.NameInfo.NameMode);
                    break;

                case Notification.HeldCallInfo:
                    Log.Debug(Globals.LogTag, "Notification.HeldCallInfo event receive, notiid = " + e.Id + ", data= " + e.Data);
                    break;

                case Notification.ActiveCallInfo:
                    Log.Debug(Globals.LogTag, "Notification.ActiveCallInfo event receive, notiid = " + e.Id + ", data= " + e.Data);
                    break;

                case Notification.JoinedCallInfo:
                    Log.Debug(Globals.LogTag, "Notification.JoinedCallInfo event receive, notiid = " + e.Id + ", data= " + e.Data);
                    break;

                case Notification.CallSoundRingbackTone:
                    Log.Debug(Globals.LogTag, "Notification.CallSoundRingbackTone event receive, notiid = " + e.Id + ", data= " + e.Data);
                    break;

                case Notification.CallPreferredVoiceSubscription:
                    Log.Debug(Globals.LogTag, "Notification.CallPreferredVoiceSubscription event receive, notiid = " + e.Id + ", data= " + e.Data);
                    break;

                case Notification.CallSoundWbamr:
                    Log.Debug(Globals.LogTag, "Notification.CallSoundWbamr event receive, notiid = " + e.Id + ", data= " + e.Data);
                    break;

                case Notification.CallSoundPath:
                    Log.Debug(Globals.LogTag, "Notification.CallSoundPath event receive, notiid = " + e.Id + ", data= " + e.Data);
                    break;
                }

                Log.Debug(Globals.LogTag, "Handle_CallNotificationChanged event receive end");
            }

            catch (Exception ex)
            {
                Log.Debug(Globals.LogTag, "Handle_CallNotificationChanged event exception = " + ex.ToString());
            }
        }
 private async void PersistentObject_NotificationChanged(object sender, NotificationChangedEventArgs e)
 {
     if (!string.IsNullOrEmpty(e.Notification))
         await Service.Current.Hooks.ShowNotification(e.Notification, e.NotificationType);
 }
Пример #8
0
 private void Handle_NotiPowerStateChanged(object sender, NotificationChangedEventArgs e)
 {
     Log.Debug(Globals.LogTag, "Sim status noti event received, Status: " + e.Data + " Noti value: " + e.Id);
 }
Пример #9
0
 private void Handle_NotiPowerStatusChanged(object sender, NotificationChangedEventArgs e)
 {
     Log.Debug(Globals.LogTag, "Handle_NotiPowerStatusChanged event receive, status = " + e.Data + ", Notification Value = " + e.Id);
 }
Пример #10
0
 private async void Lookup_NotificationChanged(object sender, NotificationChangedEventArgs e)
 {
     await Service.Current.Hooks.ShowNotification(e.Notification, e.NotificationType);
 }