openmessaging / openmessaging-java

OpenMessaging Runtime Interface for Java
http://openmessaging.cloud/
Apache License 2.0
723 stars 220 forks source link

Make SendResult more general to use #14

Closed aCoder2013 closed 6 years ago

aCoder2013 commented 6 years ago

Currently SendResult's messageId is a String , in my case ,message id is a object with custom field ,i wonder if it can be a generic type like SendResult<T> ? Thanks for you time

public interface SendResult {
    /**
     * The unique message id related to the {@code SendResult} instance.
     *
     * @return the message id
     */
    String messageId();
}
zhouxinyu commented 6 years ago

Are the custom fields stored in some place?

aCoder2013 commented 6 years ago

@zhouxinyu The messageId is actually a protobuf object , so i choose to transfer it into a base64 string

vongosling commented 6 years ago

@aCoder2013 Yes, welcome to do that~