/*
* Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
*
* Licensed under the Apache License, Version 2.0 (the License);
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an AS IS BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
using System;
namespace Tizen.Telephony
{
///
/// This class contains the data related to the Notification event.
///
public class ChangeNotificationEventArgs : EventArgs
{
internal ChangeNotificationEventArgs(Notification noti, object data)
{
NotificationType = noti;
NotificationData = data;
}
///
/// Enumeration for the Telephony Notification.
///
public enum Notification
{
///
/// The notification to be invoked when the SIM card state changes.
/// SIM.State will be delivered in the notification data.
///
/// 3
///
/// http://tizen.org/privilege/telephony
///
SimStatus = 0x10,
///
/// The notification to be invoked when the SIM call forwarding indicator state changes.
/// 'state(bool)' will be delivered in the notification data.
///
/// 3
///
/// http://tizen.org/privilege/telephony
///
SimCallForwardingIndicatorState,
///
/// The notification to be invoked when the network service state changes.
/// Network.ServiceState will be delivered in the notification data.
///
/// 3
///
/// http://tizen.org/privilege/telephony
///
NetworkServiceState = 0x20,
///
/// The notification to be invoked when the cell ID changes.
/// 'cell_id(int)' will be delivered in the notification data.
///
/// 3
///
/// http://tizen.org/privilege/location.coarse
///
NetworkCellid,
///
/// The notification to be invoked when the roaming status changes.
/// 'roaming_status(bool)' will be delivered in the notification data.
///
/// 3
///
/// http://tizen.org/privilege/telephony
///
NetworkRoamingStatus,
///
/// The notification to be invoked when the signal strength changes.
/// Network.Rssi will be delivered in the notification data.
///
/// 3
///
/// http://tizen.org/privilege/telephony
///
NetworkSignalstrengthLevel,
///
/// The notification to be invoked when the network name changes.
/// 'network_name(string)' will be delivered in the notification data.
///
/// 3
///
/// http://tizen.org/privilege/telephony
///
NetworkNetworkName,
///
/// The notification to be invoked when the PS type changes.
/// Network.PSType will be delivered in the notification data.
///
/// 3
///
/// http://tizen.org/privilege/telephony
///
NetworkPsType,
///
/// The notification to be invoked when the default data subscription changes.
/// Network.DefaultDataSubscription will be delivered in the notification data.
///
/// 3
///
/// http://tizen.org/privilege/telephony
///
NetworkDefaultDataSubscription,
///
/// The notification to be invoked when the default subscription changes.
/// Network.DefaultSubscription will be delivered in the notification data.
///
/// 3
///
/// http://tizen.org/privilege/telephony
///
NetworkDefaultSubscription,
///
/// The notification to be invoked when the LAC (Location Area Code) changes.
/// 'lac(int)' will be delivered in the notification data.
///
/// 3
///
/// http://tizen.org/privilege/location.coarse
///
NetworkLac,
///
/// The notification to be invoked when the TAC (Tracking Area Code) changes.
/// 'tac(int)' will be delivered in the notification data.
///
/// 3
///
/// http://tizen.org/privilege/location.coarse
///
NetworkTac,
///
/// The notification to be invoked when the system ID changes.
/// 'sid(int)' will be delivered in the notification data.
///
/// 3
///
/// http://tizen.org/privilege/location.coarse
///
NetworkSystemId,
///
/// The notification to be invoked when the network ID changes.
/// 'nid(int)' will be delivered in the notification data.
///
/// 3
///
/// http://tizen.org/privilege/location.coarse
///
NetworkId,
///
/// The notification to be invoked when the base station ID changes.
/// 'id(int)' will be delivered in the notification data.
///
/// 3
///
/// http://tizen.org/privilege/location.coarse
///
NetworkBsId,
///
/// The notification to be invoked when the base station latitude changes.
/// 'latitude(int)' will be delivered in the notification data.
///
/// 3
///
/// http://tizen.org/privilege/location.coarse
///
NetworkBsLatitude,
///
/// The notification to be invoked when the base station longitude changes.
/// 'longitue(int)' will be delivered in the notification data.
///
/// 3
///
/// http://tizen.org/privilege/location.coarse
///
NetworkBsLongitude,
///
/// The notification to be invoked when a voice call is in the idle status.
/// 'handle id(uint)' will be delivered in the notification data.
///
/// 3
///
/// http://tizen.org/privilege/telephony
///
VoiceCallStatusIdle,
///
/// The notification to be invoked when a voice call is in the active status.
/// 'handle id(uint)' will be delivered in the notification data.
///
/// 3
///
/// http://tizen.org/privilege/telephony
///
VoiceCallStatusActive,
///
/// The notification to be invoked when a voice call is in the held status.
/// 'handle id(uint)' will be delivered in the notification data.
///
/// 3
///
/// http://tizen.org/privilege/telephony
///
VoiceCallStatusHeld,
///
/// The notification to be invoked when a voice call is in the dialing status.
/// 'handle id(uint)' will be delivered in the notification data.
///
/// 3
///
/// http://tizen.org/privilege/telephony
///
VoiceCallStatusDialing,
///
/// The notification to be invoked when a voice call is in the alerting status.
/// 'handle id(uint)' will be delivered in the notification data.
///
/// 3
///
/// http://tizen.org/privilege/telephony
///
VoiceCallStatusAlerting,
///
/// The notification to be invoked when a voice call is in the incoming status.
/// 'handle id(uint)' will be delivered in the notification data.
///
/// 3
///
/// http://tizen.org/privilege/telephony
///
VoiceCallStatusIncoming,
///
/// The notification to be invoked when a video call is in the idle status.
/// 'handle id(uint)' will be delivered in the notification data.
///
/// 3
///
/// http://tizen.org/privilege/telephony
///
VideoCallStatusIdle,
///
/// The notification to be invoked when a video call is in the active status.
/// 'handle id(uint)' will be delivered in the notification data.
///
/// 3
///
/// http://tizen.org/privilege/telephony
///
VideoCallStatusActive,
///
/// The notification to be invoked when a video call is in the dialing status.
/// 'handle id(uint)' will be delivered in the notification data.
///
/// 3
///
/// http://tizen.org/privilege/telephony
///
VideoCallStatusDialing,
///
/// The notification to be invoked when a video call is in the alerting status.
/// 'handle id(uint)' will be delivered in the notification data.
///
/// 3
///
/// http://tizen.org/privilege/telephony
///
VideoCallStatusAlerting,
///
/// The notification to be invoked when a video call is in the incoming status.
/// 'handle id(uint)' will be delivered in the notification data.
///
/// 3
///
/// http://tizen.org/privilege/telephony
///
VideoCallStatusIncoming,
///
/// The notification to be invoked when the preferred voice subscription changes.
/// CallPreferredVoiceSubscription will be delivered in the notification data.
///
/// 3
///
/// http://tizen.org/privilege/telephony
///
CallPreferredVoiceSubscription
};
///
/// The Telephony Notification type.
///
/// 3
public Notification NotificationType
{
get;
internal set;
}
///
/// The data as per the Notification type.
///
/// 3
public object NotificationData
{
get;
internal set;
}
}
}