-
public final class IncomingCallDataThe call description sent as the
dataobject when triggering an incoming-call push.This is the send-side counterpart of IncomingCallPayload: what a device receives and parses is exactly what the caller built here. The fields the receiving SDK requires to ring (
type,callId,callTimestamp,body,title) are guaranteed —typeandcallTimestampare supplied by the SDK, the rest are constructor parameters — so an unringable payload cannot be constructed.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classIncomingCallData.Companion
-
Method Summary
Modifier and Type Method Description final StringgetCallId()final StringgetTitle()final StringgetBody()final CallergetSender()final StringgetCallerId()final StringgetReceiverId()final Map<String, String>getExtraData()final JsonObjecttoDataJson(String callTimestamp)Builds the wire dataobject for the notification-trigger endpoints.-
-
Method Detail
-
getCallerId
final String getCallerId()
-
getReceiverId
final String getReceiverId()
-
getExtraData
final Map<String, String> getExtraData()
-
toDataJson
final JsonObject toDataJson(String callTimestamp)
Builds the wire
dataobject for the notification-trigger endpoints.- Parameters:
callTimestamp- When the call was placed, ISO-8601 UTC.
-
-
-
-