From d621bb7f2fefb06785c564bad02f9f4c7ee6b954 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Mon, 6 Jul 2015 15:24:59 +0200 Subject: [Thrift] Include UserData in response for login request (local accounts) --- .../bwlp/thrift/iface/ClientSessionData.java | 113 ++++++++++++++++++++- 1 file changed, 109 insertions(+), 4 deletions(-) (limited to 'src/main/java/org/openslx/bwlp/thrift') diff --git a/src/main/java/org/openslx/bwlp/thrift/iface/ClientSessionData.java b/src/main/java/org/openslx/bwlp/thrift/iface/ClientSessionData.java index 21d8270..fe0b74b 100644 --- a/src/main/java/org/openslx/bwlp/thrift/iface/ClientSessionData.java +++ b/src/main/java/org/openslx/bwlp/thrift/iface/ClientSessionData.java @@ -38,6 +38,7 @@ public class ClientSessionData implements org.apache.thrift.TBase, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { @@ -48,12 +49,14 @@ public class ClientSessionData implements org.apache.thrift.TBase satellites; // required + public UserInfo userInfo; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SESSION_ID((short)1, "sessionId"), AUTH_TOKEN((short)2, "authToken"), - SATELLITES((short)3, "satellites"); + SATELLITES((short)3, "satellites"), + USER_INFO((short)4, "userInfo"); private static final Map byName = new HashMap(); @@ -74,6 +77,8 @@ public class ClientSessionData implements org.apache.thrift.TBase satellites) + List satellites, + UserInfo userInfo) { this(); this.sessionId = sessionId; this.authToken = authToken; this.satellites = satellites; + this.userInfo = userInfo; } /** @@ -159,6 +168,9 @@ public class ClientSessionData implements org.apache.thrift.TBase