|
-
May 28th, 2003, 05:59 AM
#1
Thread Starter
Conquistador
irc client development - user tracking question / data types?
I was wondering what the best way would be for me to keep track of the channels the client has joined and the users ( + their status - voiced, opped etc) in each channel
I'm new to .net so i'm unsure as to how to do this, suggestions would be great
-
May 28th, 2003, 08:46 AM
#2
Thread Starter
Conquistador
-
May 28th, 2003, 02:53 PM
#3
Fanatic Member
I ran into a situation similar to this a little while ago.. what i would do is make up a namespace for Channels.
in that namespace, have a class that is called Channels, which inherits the collection object, and make my own add/remove/find kind of stuff..
beside that class you could have a class called Channel which will define an object type for each channel and will hold info like channel name, creator, topic, etc...
then inside that channel class, you could put a class called Users which also inherits collection object and then beside it (still inside the Channel class) a class called User, which defines a user...
this may sound quite confusing, and i don't know it if is exactly proper, but i did something like this, and it seems to work fairly well..
so the end result is like this:
VB Code:
Namespace Channels
Class Channels (Inherits Collection)
Class Users (Inherits Colletion)
Class User (Defines an object to be stored in Users collection)
Class Channel (Defines an object to be stored in the Channels Collection)
get what i mean?
Last edited by Redth; May 28th, 2003 at 02:58 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|