Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
Participant.cs
1using System;
2
4{
8 public class Participant : Visitor
9 {
13 public override string Name => "participant";
14
18 public override bool SendMessagesToAll => true;
19
23 public override bool ModifySubject => true;
24
30 public override bool CanBroadcastPresence(BroadcastPresence Level)
31 {
32 return Level.HasFlag(BroadcastPresence.Participant);
33 }
34
40 public override bool CanGetMembership(RetrieveMembershipList Level)
41 {
42 return Level.HasFlag(RetrieveMembershipList.Participant);
43 }
44
50 public override bool CanSendPrivateMessage(CanSendPrivateMessages Level)
51 {
52 return Level <= CanSendPrivateMessages.Participants;
53 }
54 }
55}
override bool CanGetMembership(RetrieveMembershipList Level)
If occupants of this role can get membership list.
Definition: Participant.cs:40
override bool ModifySubject
If user can modify the room subject
Definition: Participant.cs:23
override bool CanBroadcastPresence(BroadcastPresence Level)
If occupants of this role should be broadcast.
Definition: Participant.cs:30
override bool CanSendPrivateMessage(CanSendPrivateMessages Level)
If occupants of this role can send private messages.
Definition: Participant.cs:50
override bool SendMessagesToAll
If user can send messages to all occupants
Definition: Participant.cs:18
override string Name
Name of role, in XML.
Definition: Participant.cs:13