Class TChatUsers (unit ChatChannel)

Inherits from

TObject

Constructors


constructor Create;

returns a single TChatUser by index


Functions

function AddUser (const Callback: IChatEvent; var UserId : integer): boolean;

destroy internal TChatUsers list

function Count : integer;

if

function DeleteUser (UserId : integer) : boolean;

add a new TChatUser to the internal list and returns a unique UserId to caller

destructor Destroy;

create internal TChatUsers list

function FindUser (UserId : integer) : integer;

if

function GetItems (i : integer) : TChatUser;

TChatUsers

Properties

property Items : TChatUser


Events

Variables

FItems : TList;


FLastUserId : integer;



Constructors


constructor Create;

returns a single TChatUser by index


Functions


function AddUser (const Callback: IChatEvent; var UserId : integer): boolean;

destroy internal TChatUsers list


function Count : integer;

if


function DeleteUser (UserId : integer) : boolean;

add a new TChatUser to the internal list and returns a unique UserId to caller


destructor Destroy;

create internal TChatUsers list


function FindUser (UserId : integer) : integer;

if


function GetItems (i : integer) : TChatUser;

TChatUsers


Properties


property Items : TChatUser


Events


Variables


FItems : TList;


FLastUserId : integer;