chatinviteargs.cs

来自「Gibphone is CSharp Program, it can tell 」· CS 代码 · 共 43 行

CS
43
字号
using System;
using System.Collections.Generic;
using System.Text;

namespace GPCore.Args
{
    /// <summary>
    /// An EventArgs for when someone invites you into a chatroom.
    /// </summary>
    public class ChatInviteArgs : NewChatArgs
    {
        private string username;
        /// <summary>
        /// The username of the person who invited the user.
        /// </summary>
        public string Username
        {
            get { return username; }
        }
        private string msg;
        /// <summary>
        /// A message sent with the chat invite.
        /// </summary>
        public string Message
        {
            get { return msg; }
        }
        /// <summary>
        /// Creates a new ChatInviteArgs.
        /// </summary>
        /// <param name="chatid">The unique ID of the chat.</param>
        /// <param name="name">The name of the chat.</param>
        /// <param name="username">the username of the person who sent the invite.</param>
        /// <param name="message">A message to go with the invite.</param>
        public ChatInviteArgs(int chatid, string name, string username, string message)
            : base(chatid, name)
        {
            this.username = username;
            this.msg = message;
        }
    }
}

⌨️ 快捷键说明

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