Search in sources :

Example 1 with MessageAttribute

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;
}
Also used : MessageAttribute(com.google.gerrit.server.data.MessageAttribute)

Aggregations

MessageAttribute (com.google.gerrit.server.data.MessageAttribute)1