messagesendfeedbackresult.cs

来自「这个版本(InteliIM Open Kernel Release 2)是目前最」· CS 代码 · 共 66 行

CS
66
字号
#region Using Directives

using System.Text;
using Org.InteliIM.Communications;

#endregion

namespace Org.InteliIM.Configurations
{
	/// <summary>
	/// The message containing the result of sending feedback.
	/// </summary>
	public sealed class MessageSendFeedbackResult : InstantMessage
    {
        /// <summary>
        /// Initializes a new instance of the MessageSendFeedbackResult class.
        /// </summary>
        public MessageSendFeedbackResult()
        {
        }
        
        private string reason;

		/// <summary>
		/// Gets or sets the reason.
		/// </summary>
		public string Reason
		{
			get
			{
				if (reason == null)
					reason = "";

				return reason;
			}
			set { reason = value; }
		}
		
		private bool ok = true;

		/// <summary>
		/// Gets or sets a value indicating whether ok or not.
		/// </summary>
		public bool Ok
		{
			get { return this.ok; }
			set { this.ok = value; }
		}

        /// <summary>
        /// Overridden. 
        /// Creates and returns a string representation of the current object.
        /// </summary>
        /// <returns></returns>
        public override string ToString()
		{
			StringBuilder sb = new StringBuilder();

			sb.Append("send feedback result [user: " + this.To + ", ok: " + this.Ok + "]");

			return sb.ToString();
		}

	}
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?