ibuddyicon.cs

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

CS
37
字号
using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;
using System.IO;
using GPCore.Args;

namespace GPCore.Protocols
{
    /// <summary>
    /// An interface to extend IProtocol if it supports BuddyIcons/Avatars.
    /// </summary>
    public interface IBuddyIcon : IProtocol
    {
        /// <summary>
        /// Call this method to ask the IProtocol for a certain users BuddyIcon.
        /// </summary>
        /// <param name="Username">The username of the person whose icon you want.</param>
        void RequestBuddyIcon(string Username);
        /// <summary>
        /// Call this method to set your own BuddyIcon.
        /// </summary>
        /// <param name="filename">The path to the new BuddyIcon.</param>
        [GPArgumentMethod("Set Buddy Icon",typeof(User),"Filename",typeof(FileInfo))]
        void SetBuddyIcon(FileInfo filename);
        /// <summary>
        /// This event is thrown when the IProtocol recieves the Icon from the server.
        /// The name of this event is "onRecieveIcon" and its event args type is ImageEventArgs.
        /// </summary>
        //event NotifyCore onRecieveIcon;
    }
    public static  class BuddyIcon
    {
        public static Event<IBuddyIcon, BuddyIconEventArgs> RecieveIcon = new Event<IBuddyIcon, BuddyIconEventArgs>("RecieveIcon");
    }
}

⌨️ 快捷键说明

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