You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

56 lines
1.5 KiB

//-----------------------------------------------------------------------
// <copyright file="CResponseMessage.cs" company="Origtek">
// CResponseMessage belongs to Copyright (c) Origtek. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------
namespace OT.COM.SignalerMessage
{
/// <summary>
/// Present response status
/// </summary>
public enum EResponseResult
{
/// <summary>
/// Request success
/// </summary>
RR_TRUE = 1,
/// <summary>
/// Request fail
/// </summary>
RR_FALSE = 0
}
/// <summary>
/// It focus on return message.
/// </summary>
public class CResponseMessage : CMessageBase
{
/// <summary>
/// Initializes a new instance of the <see cref="CResponseMessage" /> class
/// </summary>
/// <param name="i_init">
/// Initial data
/// </param>
public CResponseMessage(CMessageBase i_init = null)
{
if (i_init != null)
{
this.method = i_init.method;
this.project = i_init.project;
this.projectver = i_init.projectver;
}
}
/// <summary>
/// Gets or sets response result.
/// </summary>
public EResponseResult result { get; set; }
/// <summary>
/// Gets or sets response message.
/// </summary>
public string msg { get; set; }
}
}