iprofile.cs

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

CS
37
字号
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 + =
减小字号Ctrl + -
显示快捷键?