NebulaGraph Java Client  release-3.8
AuthResult.java
1 /* Copyright (c) 2021 vesoft inc. All rights reserved.
2  *
3  * This source code is licensed under Apache 2.0 License.
4  */
5 
6 package com.vesoft.nebula.client.graph.net;
7 
8 import java.io.Serializable;
9 
10 public class AuthResult implements Serializable {
11 
12  private static final long serialVersionUID = 8795815613377375650L;
13 
14  private final long sessionId;
15  private final int timezoneOffset;
16 
17  public AuthResult(long sessionId, int timezoneOffset) {
18  this.sessionId = sessionId;
19  this.timezoneOffset = timezoneOffset;
20  }
21 
22  public long getSessionId() {
23  return sessionId;
24  }
25 
26  public int getTimezoneOffset() {
27  return timezoneOffset;
28  }
29 }