/*
* 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.Messaging.Push
{
///
/// An extended EventArgs class, which contains the State Information.
///
/// 3
public class PushConnectionStateEventArgs : EventArgs
{
///
/// Enumeration for the different states.
///
/// 3
public enum PushState
{
///
/// Registered with the Server.
///
Registered = 0,
///
/// Unregistered.
///
Unregistered = 1,
///
/// To change the provisioning server IP.
///
ProvisioningIPChanged = 2,
///
/// Ping interval is changing.
///
PingChanged = 3,
///
/// Error Occured in Changing State.
///
StateError = 4
}
///
/// Gives the current state.
///
/// 3
///
/// It is the current state.
///
public PushState State
{
get;
internal set;
}
///
/// Gives information about the error if set.
///
/// 3
///
/// It is the string, which contains the error string if set.
///
public string Error
{
get;
internal set;
}
internal PushConnectionStateEventArgs(PushState state, string error)
{
State = state;
Error = error;
}
}
}