sendDefaultMessage method
- required List<
String> receiverUuids, - 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);
}