CallLogRequestBuilder
, This builder allows you to customize the call logs fetching process according to your needs.
CallLogRequestBuilder
has the following settings available.
Setting | Description |
---|---|
setLimit(int limit) | Specifies the number of call logs to fetch. |
setCallType(@CometChatCallsConstants.CallType String callType) | Sets the type of calls to fetch (audio or video). It accepts CallType Enum with following values CometChatCallsConstants.CallType.CALL_TYPE_VIDEO , CometChatCallsConstants.CallType.CALL_TYPE_AUDIO & CometChatCallsConstants.CallType.CALL_TYPE_AUDIO_VIDEO |
setCallStatus(@CometChatCallsConstants.CallStatus String callStatus) | Sets the status of calls to fetch (initiated, ongoing, etc.). It accepts CallStatus Enum with following values CometChatCallsConstants.CallStatus.CALL_STATUS_ONGOING , CometChatCallsConstants.CallStatus.CALL_STATUS_BUSY , CometChatCallsConstants.CallStatus.CALL_STATUS_REJECTED , CometChatCallsConstants.CallStatus.CALL_STATUS_CANCELLED , CometChatCallsConstants.CallStatus.CALL_STATUS_ENDED , CometChatCallsConstants.CallStatus.CALL_STATUS_MISSED , CometChatCallsConstants.CallStatus.CALL_STATUS_INITIATED , CometChatCallsConstants.CallStatus.CALL_STATUS_UNANSWERED |
setHasRecording(boolean hasRecording) | Sets whether to fetch calls that have recordings. |
setCallCategory(@CometChatCallsConstants.CallLogCategory String callCategory) | Sets the category of calls to fetch (call or meet). It accepts CallLogCategory Enum with following values CometChatCallsConstants.CallLogCategory.CALL_CATEGORY_CALL & CometChatCallsConstants.CallLogCategory.CALL_CATEGORY_MEET |
setCallDirection(@CometChatCallsConstants.CallDirection String callDirection) | Sets the direction of calls to fetch. It accepts CallDirection Enum with following values CometChatCallsConstants.CallDirection.CALL_DIRECTION_INCOMING & CometChatCallsConstants.CallDirection.CALL_DIRECTION_OUTGOING |
setUid(String uid) | Sets the UID of the user whose call logs to fetch. |
setGuid(String guid) | Sets the GUID of the user whose call logs to fetch. |
setAuthToken(String authToken) | Sets the Auth token of the logged-in user. |
fetchNext()
**method retrieves the next set of call logs.
fetchPrevious()
**method retrieves the previous set of call logs.
getCallDetails()
**method. This method requires the Auth token of the logged-in user and the session ID along with a callback listener.
"SESSION_ID"
**with the ID of the session you are interested in.