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

📄 iprofile.cs

📁 Gibphone is CSharp Program, it can tell you how to design p2p chat.
💻 CS
字号:
using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;
using GPCore.Args;

namespace GPCore.Protocols
{
    /// <summary>
    /// An interface to extend IProtocol to allow for a Profile
    /// </summary>
    public interface IProfile : IProtocol
    {
        /// <summary>
        /// The user's user information.
        /// </summary>
        string Info { get;set;}
        /// <summary>
        /// Requests the user information for the given account.
        /// </summary>
        /// <param name="Username">The account of the person whose profile you want</param>
        [GPMethod("Request Profile",typeof(SqlAccount))]
        void GetInfo(SqlAccount Username);
        /// <summary>
        /// An event to throw when a profile of an Account is Received.
        /// </summary>
        /// <remarks>
        /// The name of this event is onProfileReceived and the EventArgs is UsernameEventArgs.
        /// </remarks>
        //event NotifyCore onProfileReceived;
    }
    public static class Profile
    {
        public static Event<IProfile, UsernameEventArgs> ProfileRecieved = new Event<IProfile, UsernameEventArgs>("ProfileRecieved");
    }
}

⌨️ 快捷键说明

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