/*
* 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.
*/
namespace Tizen.Messaging.Push
{
///
/// The ServerResponse structure provides the result and the server response if any.
///
/// 3
public struct ServerResponse
{
///
/// Enumeration for the Result from the server.
///
/// 3
public enum Result
{
///
/// Successful.
///
Success = 0,
///
/// Time Out Occured.
///
Timeout = 1,
///
/// Server Error Occured.
///
ServerError = 2,
///
/// System Error Occured.
///
SystemError = 3
}
///
/// Gives the Result of the opeartion.
///
/// 3
///
/// It is the Result state of the operation performed.
///
public Result ServerResult
{
get;
internal set;
}
///
/// Gives the Message from the server.
///
/// 3
///
/// It is the Message sent by the server.
///
public string ServerMessage
{
get;
internal set;
}
}
}