Class RCCallPlusSummaryMessageContent

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      public final static Creator<RCCallPlusSummaryMessageContent> CREATOR
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      Array<byte> encode() 将本地消息对象序列化为消息数据。
      int describeContents() 描述了包含在 Parcelable 对象排列信息中的特殊对象的类型。
      void writeToParcel(Parcel dest, int flags) // 对消息属性进行序列化,将类的数据写入外部提供的 Parcel 中,此处以需要序列化"用户信息","@信息" 等为例
      String getCallId() 获取呼叫会话id
      String getCallerUserId() 通话发起人 ID
      String getTargetId() 获取目标 id。 根据不同的 conversationType,可能是对端用户 id、群组 id。
      RCCallPlusMediaType getMediaType() 获取当前呼叫媒体类型
      RCCallPlusReason getEndCallReason() 通话结束原因
      long getCallStartTime() 通话开始时间戳(当前时间到1970-1-1 00:00:00的总毫秒数)。 会和onCallStartTimeFromServer 返回的值保持一致
      long getFirstFrameTime() 客户端收到首帧时间戳(当前时间到1970-1-1 00:00:00的总毫秒数)。 会和onCallFirstFrameTimeFromServer 返回的值保持一致
      long getEndTime() 通话结束时间。
      String toString()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RCCallPlusSummaryMessageContent

        RCCallPlusSummaryMessageContent(String callId, String callerUserId, String targetId, int mediaType, int endCallReason, long callStartTime, long firstFrameTime, long endTime)
      • RCCallPlusSummaryMessageContent

        RCCallPlusSummaryMessageContent(Array<byte> data)
      • RCCallPlusSummaryMessageContent

        RCCallPlusSummaryMessageContent(Parcel in)
    • Method Detail

      • encode

         Array<byte> encode()

        将本地消息对象序列化为消息数据。

        Returns:

        消息数据。

      • describeContents

         int describeContents()

        描述了包含在 Parcelable 对象排列信息中的特殊对象的类型。

        Returns:

        一个标志位,表明Parcelable对象特殊对象类型集合的排列。

      • writeToParcel

         void writeToParcel(Parcel dest, int flags)

        // 对消息属性进行序列化,将类的数据写入外部提供的 Parcel 中,此处以需要序列化"用户信息","@信息" 等为例

        Parameters:
        dest - The Parcel in which the object should be written.
        flags - Additional flags about how the object should be written.
      • getCallId

         String getCallId()

        获取呼叫会话id

      • getTargetId

         String getTargetId()

        获取目标 id。

        根据不同的 conversationType,可能是对端用户 id、群组 id。

        Returns:

        目标 id 的值。

      • getMediaType

         RCCallPlusMediaType getMediaType()

        获取当前呼叫媒体类型

      • getCallStartTime

         long getCallStartTime()

        通话开始时间戳(当前时间到1970-1-1 00:00:00的总毫秒数)。

        会和onCallStartTimeFromServer 返回的值保持一致

      • getFirstFrameTime

         long getFirstFrameTime()

        客户端收到首帧时间戳(当前时间到1970-1-1 00:00:00的总毫秒数)。

        会和onCallFirstFrameTimeFromServer 返回的值保持一致

      • getEndTime

         long getEndTime()

        通话结束时间。