From 1e3d22b22d80207ca03af7cc2ed5648f13166525 Mon Sep 17 00:00:00 2001 From: Stoyan Tzenkov Date: Wed, 16 Jan 2019 13:06:52 +0200 Subject: [PATCH] NY-5816: Problem fixed. Birthday appears in the response. Signed-off-by: Stoyan Tzenkov --- .../java/biz/nynja/account/models/AccountByUsername.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/biz/nynja/account/models/AccountByUsername.java b/src/main/java/biz/nynja/account/models/AccountByUsername.java index 6e5f930..e3c829e 100644 --- a/src/main/java/biz/nynja/account/models/AccountByUsername.java +++ b/src/main/java/biz/nynja/account/models/AccountByUsername.java @@ -9,6 +9,7 @@ import java.util.UUID; import biz.nynja.account.grpc.AccessStatus; import biz.nynja.account.grpc.AccountDetails; +import biz.nynja.account.grpc.Date; import biz.nynja.account.grpc.AccountDetails.Builder; import biz.nynja.account.grpc.Role; @@ -354,6 +355,10 @@ public class AccountByUsername { builder.addContactsInfo(c.toProto()); } } + if (getBirthday() != null) { + builder.setBirthday(Date.newBuilder().setYear(getBirthday().getYear()) + .setMonth(getBirthday().getMonthValue()).setDay(getBirthday().getDayOfMonth()).build()); + } if (getCreationTimestamp() != null) { builder.setCreationTimestamp(getCreationTimestamp()); } -- GitLab