NIMMessage.emptyMessage constructor

NIMMessage.emptyMessage(
  1. {required String sessionId,
  2. required NIMSessionType sessionType,
  3. required int timestamp}
)

Implementation

factory NIMMessage.emptyMessage(
    {required String sessionId,
    required NIMSessionType sessionType,
    required int timestamp}) {
  return NIMMessage(
      timestamp: timestamp,
      sessionId: sessionId,
      sessionType: sessionType,
      callbackExtension: 'empty',
      messageType: NIMMessageType.undef,
      messageDirection: NIMMessageDirection.outgoing);
}