sendDefaultMessage method

Future<MessageSendResult> sendDefaultMessage({
  1. required List<String> receiverUuids,
  2. required DefaultTemplate template,
})

KO: 친구에게 기본 템플릿으로 메시지 보내기
receiverUuids에 수신자 UUID 전달
template에 메시지 템플릿 객체 전달

EN: Send message with default template to friends
Pass the receiver UUIDs to receiverUuids
Pass an object of a message template to template

Implementation

Future<MessageSendResult> sendDefaultMessage({
  required List<String> receiverUuids,
  required DefaultTemplate template,
}) async {
  final params = {
    Constants.receiverUuids: jsonEncode(receiverUuids),
    Constants.templateObject: jsonEncode(template)
  };
  return _message(Constants.defaultPath, params);
}