use of com.google.gerrit.server.data.MessageAttribute in project gerrit by GerritCodeReview.
the class EventFactory method asMessageAttribute.
public MessageAttribute asMessageAttribute(ChangeMessage message) {
MessageAttribute a = new MessageAttribute();
a.timestamp = message.getWrittenOn().getEpochSecond();
a.reviewer = message.getAuthor() != null ? asAccountAttribute(message.getAuthor()) : asAccountAttribute(myIdent.get());
a.message = accountTemplateUtil.replaceTemplates(message.getMessage());
return a;
}
Aggregations