⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 chatinviteargs.cs

📁 Gibphone is CSharp Program, it can tell you how to design p2p chat.
💻 CS
字号:
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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -