java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.CallServerType
it.tdlight.jni.TdApi.CallServerTypeWebrtc
- Enclosing class:
- TdApi
A WebRTC server.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Identifier uniquely determining type of the object.Authentication password.boolean
True, if the server supports STUN.boolean
True, if the server supports TURN.Username to be used for authentication. -
Constructor Summary
ConstructorDescriptionA WebRTC server.CallServerTypeWebrtc
(DataInput input) A WebRTC server.CallServerTypeWebrtc
(String username, String password, boolean supportsTurn, boolean supportsStun) A WebRTC server. -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
Returns an identifier uniquely determining type of the object.int
hashCode()
void
serialize
(DataOutput output) Serialize the TDLib classMethods inherited from class it.tdlight.jni.TdApi.Object
serialize, toString
-
Field Details
-
username
Username to be used for authentication. -
password
Authentication password. -
supportsTurn
public boolean supportsTurnTrue, if the server supports TURN. -
supportsStun
public boolean supportsStunTrue, if the server supports STUN. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
CallServerTypeWebrtc
public CallServerTypeWebrtc()A WebRTC server. -
CallServerTypeWebrtc
public CallServerTypeWebrtc(String username, String password, boolean supportsTurn, boolean supportsStun) A WebRTC server.- Parameters:
username
- Username to be used for authentication.password
- Authentication password.supportsTurn
- True, if the server supports TURN.supportsStun
- True, if the server supports STUN.
-
CallServerTypeWebrtc
A WebRTC server.- Parameters:
input
- Serialized input- Throws:
IOException
- the deserialization failed
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.Object
Returns an identifier uniquely determining type of the object.- Specified by:
getConstructor
in classTdApi.Object
- Returns:
- this.CONSTRUCTOR
-
serialize
Serialize the TDLib class- Specified by:
serialize
in classTdApi.Object
- Parameters:
output
- output data stream- Throws:
IOException
- the serialization failed
-
equals
-
hashCode
public int hashCode()
-