ityping.cs
来自「Gibphone is CSharp Program, it can tell 」· CS 代码 · 共 34 行
CS
34 行
using System;
using System.Collections.Generic;
using System.Text;
using GPCore.Args;
namespace GPCore.Protocols
{
/// <summary>
/// An interface to Extend <see cref="IProtocol"/> if it supports recieving
/// and sending TypingNotifications
/// </summary>
public interface ITyping : IProtocol
{
/// <summary>
/// Send a Typing Notification to the person
/// </summary>
/// <param name="Username">The Account of the person you wnat to inform</param>
/// <param name="type">The <see cref="TypingType"/> of the Notification</param>
void SendTypingNotification(String Username, TypingType type);
/// <summary>
/// The event sent when a Typing Notification is Received from a contact.
/// </summary>
/// <remarks>
/// The <paramref name="name"/> of this Event is "onTypingNotification"
/// and the Type of EventArgs is <see cref="TypingArgs"/>
/// </remarks>
//event NotifyCore onTypingNotification;
}
public static class TypingNotification
{
public static Event<ITyping, TypingArgs> NotificationRecieved = new Event<ITyping, TypingArgs>("NotificationRecieved");
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?