|
Platform SDK Java 8.5 API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.genesyslab.platform.voice.protocol.EventMask
public class EventMask
EventMask specifies which T-Server events can be transmitted to the application.
To check if a certain event can be received from T-Server call isMessageSupported(int messageId)
method.
Together with
...
EventServerInfo eventServerInfo = (EventServerInfo) message;
EventMask mask = evt.getCapabilities();
boolean isSupported = mask.isMessageSupported(EventCallDataChanged.ID);
RequestSetInputMask
the EventMask can narrow the list of messages, sent by T-Server to client application.
Mask bits: 1 - event is permitted; 0 - event is forbidden.
Constructor Summary | |
---|---|
EventMask()
|
|
EventMask(byte[] b,
int offset)
|
Method Summary | |
---|---|
void |
clear(int nn)
Clears bit. |
void |
clearAll()
Clears all bits. |
boolean |
equals(java.lang.Object obj)
|
byte[] |
getBytes()
|
int |
hashCode()
|
boolean |
isMessageSupported(int messageId)
Checks whether the message with specified id is supported. |
void |
set(int nn)
Sets bit. |
void |
setAll()
Sets all bits = 1. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EventMask()
public EventMask(byte[] b, int offset)
Method Detail |
---|
public void setAll()
public void clearAll()
public void set(int nn)
nn
- Bit number. Valid values [0-511]
java.lang.IllegalArgumentException
- if input is out of rangepublic void clear(int nn)
nn
- Bit number. Valid values [0-511]
java.lang.IllegalArgumentException
- if input is out of rangepublic boolean isMessageSupported(int messageId)
messageId
- Bit number. Valid values [0-511]
java.lang.IllegalArgumentException
- if input is out of rangepublic byte[] getBytes()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
|
Platform SDK Java 8.5 API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |