Node:Membership Information, Next:Article Marks, Previous:Person Status Types, Up:LysKOM Data Types
Membership-Type ::= BITSTRING
( invitation;
passive;
secret;
passive-message-invert;
reserved2;
reserved3;
reserved4;
reserved5;
)
The Membership-Type type contains flags that modify a membership.
It is passed as part of both Member and Membership (and
obsolete versions of those types).
The flags are:
invitation
passive
passive-message-invert.
secret
passive-message-invert
passive bit is inverted when checking
for messages (see async-send-message) to this conference. In
other words, messages are blocked if one (but not both) of the bits
passive and passive-message-invert are set.
The remaining flags in the Membership-Type structure are reserved
and should be set to false on all new memberships and retained on all
existing memberships.
Member ::=
( member : Pers-No;
added-by : Pers-No;
added-at : Time;
type : Membership-Type;
)
The Member structure encodes information about a member in a
conference. It is returned by the get-members
call. The
fields of a Member structure are
member
added-by
added-at
type
The contents of a Member structure can be cleared (all fields set
to zero) if the person requesting the record has insufficient privileges
to see the contents of the structure.
Read-Range ::=
( first-read : Local-Text-No;
last-read : Local-Text-No;
)
Membership ::=
( position : INT32;
last-time-read : Time;
conference : Conf-No;
priority : INT8;
read-ranges : ARRAY Read-Range;
added-by : Pers-No;
added-at : Time;
type : Membership-Type;
)
Membership-Old ::=
( last-time-read : Time;
conference : Conf-No;
priority : INT8;
last-text-read : Local-Text-No;
read-texts : ARRAY Local-Text-No;
)
Membership-10 ::=
( position : INT32;
last-time-read : Time;
conference : Conf-No;
priority : INT8;
last-text-read : Local-Text-No;
read-texts : ARRAY Local-Text-No;
added-by : Pers-No;
added-at : Time;
type : Membership-Type;
)
The Membership structure encodes information about a person's
membership in a conference. It is returned by the
query-read-texts and get-membership
calls.
The Membership-10 and Membership-Old types are obsolete
variants of the same type, returned by older requests.
Membership-Old contains less information. The encoding of the
read texts in Membership-10 is very inefficient in the common
case where you have read many texts after the first unread text.
position
last-time-read
unread-is-secret
bit of the Personal-Flags is set and you don't have enough
privileges to get the info anyhow.
conference
priority
last-text-read
unread-is-secret is set, unless you have access to
the data anyhow. This field is not available in Membership,
but you can easily derive the same information from
read-ranges.
read-texts
last-text-read that have also been
read. This will be empty if unread-is-secret is set, unless
you have access to the data anyhow.
read-ranges
unread-is-secret is set, unless you have access to the data
anyhow.
added-by
added-at
type
A membership record may be cleared by the server (all fields set to zero) if the person requesting the membership has insufficient privileges to see the contents membership, but has sufficient privileges to know about the person.