Class UserDatabaseList
Inheritance
System.Object
UserDatabaseList
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: Asgard3.Core.dll
Syntax
public class UserDatabaseList
Constructors
|
Improve this Doc
View Source
UserDatabaseList(String, String, String)
Initializes the database class.
Declaration
public UserDatabaseList(string FileName, string PrimaryTag, string SecondaryTag)
Parameters
Type |
Name |
Description |
System.String |
FileName |
The filename of the file to be saved and loaded.
|
System.String |
PrimaryTag |
The tag for the client (If the user is logging on with WAR3 or W3XP then this tag is @Azeroth or it's equlivant).
|
System.String |
SecondaryTag |
The secondary tag for the client (If the user is logging on with WAR3 or W3XP then this tag is @USEast or it's equlivant).
|
Fields
|
Improve this Doc
View Source
DBTagPrimary
Declaration
public readonly string DBTagPrimary
Field Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
Declaration
public readonly string DBTagSecondary
Field Value
Type |
Description |
System.String |
|
Properties
|
Improve this Doc
View Source
Users
Declaration
public List<DbUser> Users { get; set; }
Property Value
Type |
Description |
System.Collections.Generic.List<DbUser> |
|
Methods
|
Improve this Doc
View Source
AddUser(String, String, DbFlags)
Adds a user to the database
Declaration
public bool AddUser(string username, string addedby, DbFlags flags)
Parameters
Type |
Name |
Description |
System.String |
username |
The user to add.
|
System.String |
addedby |
The user adding the user to the database.
|
DbFlags |
flags |
The flags for the user.
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
CanDoCommand(UserItem, DbFlags, CommandLocation)
Declaration
public bool CanDoCommand(UserItem u, DbFlags flags, CommandLocation CL)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
CanDoCommand(String, DbFlags, CommandLocation)
Declaration
public bool CanDoCommand(string username, DbFlags flags, CommandLocation CL)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
CanUser(String, DbFlags)
Checks to see if a username has certain flags.
Declaration
public bool CanUser(string username, DbFlags flagsallowed)
Parameters
Type |
Name |
Description |
System.String |
username |
The user to check against.
|
DbFlags |
flagsallowed |
The flags to check.
|
Returns
Type |
Description |
System.Boolean |
True (User has atleast one of the flags), False (User has none of the flags)
|
|
Improve this Doc
View Source
FindUser(String)
Find a user by his username.
Declaration
public DbUser FindUser(string Username)
Parameters
Type |
Name |
Description |
System.String |
Username |
|
Returns
|
Improve this Doc
View Source
FindUsersByFlag(DbFlags)
Declaration
public List<DbUser> FindUsersByFlag(DbFlags Flags)
Parameters
Type |
Name |
Description |
DbFlags |
Flags |
|
Returns
Type |
Description |
System.Collections.Generic.List<DbUser> |
|
|
Improve this Doc
View Source
Declaration
public string FormatForTagCheck(string Data)
Parameters
Type |
Name |
Description |
System.String |
Data |
|
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
Will format the username by adding the missing tag.
Declaration
public string FormatUserName(string username)
Parameters
Type |
Name |
Description |
System.String |
username |
The username to be formatted.
|
Returns
Type |
Description |
System.String |
Returns the formatted username.
|
|
Improve this Doc
View Source
Load()
Loads the database class file specified when you initialize the class.
Declaration
|
Improve this Doc
View Source
RemoveUser(String)
Removes a user from the database.
Declaration
public bool RemoveUser(string username)
Parameters
Type |
Name |
Description |
System.String |
username |
The username of the user to remove.
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Save()
Saves the database class file specified when you initialize the class.
Declaration
|
Improve this Doc
View Source
StringToFlags(String)
Declaration
public DbFlags StringToFlags(string flags)
Parameters
Type |
Name |
Description |
System.String |
flags |
|
Returns
|
Improve this Doc
View Source
UpdateUser(String, DbFlags)
Declaration
public bool UpdateUser(string username, DbFlags newflags)
Parameters
Type |
Name |
Description |
System.String |
username |
The username to update.
|
DbFlags |
newflags |
The new flags the user has.
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
WildCardCheck(String, String)
Declaration
public bool WildCardCheck(string Tag, string Data)
Parameters
Type |
Name |
Description |
System.String |
Tag |
|
System.String |
Data |
|
Returns
Type |
Description |
System.Boolean |
|
Events
|
Improve this Doc
View Source
HandleDatabaseMessage
Passes along messages from the database class.
Declaration
public event UserDatabaseList.DelDatabaseHandle HandleDatabaseMessage
Event Type