public void AssignAppInterface(ApplicationInterface appinterface) { appinterface.AnnounceLoginCompletedEvent += OnLoginCompleted; appinterface.PrivateMessageEvent += ProcessPrivateMessage; appinterface.ChatRoomMessageEvent += ProcessChatRoomMessage; appinterface.ChatMemberInfoEvent += ChatMemberInfo; }
public void DoWork(ApplicationInterface Bot) { bool Running = true; while (Running) { Bot.tick(); } }
public override void ProcessPrivateMessage(object sender, MessageEventArgs e) { ApplicationInterface AppInterface = (ApplicationInterface)sender; e.InterfaceHandlerDestination = AppInterface; e.ReplyMessage = ChatMessageHandler(e, e.ReceivedMessage); if (e.ReplyMessage != null) { e.InterfaceHandlerDestination.SendPrivateMessage(this, e); } }
public static void AssignConnection(UserHandler userhandler, ApplicationInterface applicationinterface) { userhandler.AssignAppInterface(applicationinterface); applicationinterface.AssignUserHandler(userhandler); }
public User(object identifier, ApplicationInterface Application) : base(identifier, Application) { }
public MessageEventArgs(ApplicationInterface interfacehandlerdestination) { InterfaceHandlerDestination = interfacehandlerdestination; }
public ChatroomEntity(object identifier, ApplicationInterface Application) { this.identifier = identifier; this.Application = Application; }
public Chatroom(object identifier, ApplicationInterface Application) : base(identifier, Application) { }