From 12274d0791823132aeba7c3b96a061a51edfc952 Mon Sep 17 00:00:00 2001 From: Umberto Furno Date: Thu, 21 Nov 2019 09:25:15 +0100 Subject: [PATCH] new feature --- .../java/wekan/wrapper/entity/Action.java | 13 +++++ .../wekan/wrapper/entity/UserPrototype.java | 47 +++++++++++++++++++ 2 files changed, 60 insertions(+) create mode 100644 wrapper/src/main/java/wekan/wrapper/entity/Action.java create mode 100644 wrapper/src/main/java/wekan/wrapper/entity/UserPrototype.java diff --git a/wrapper/src/main/java/wekan/wrapper/entity/Action.java b/wrapper/src/main/java/wekan/wrapper/entity/Action.java new file mode 100644 index 0000000..8b091e8 --- /dev/null +++ b/wrapper/src/main/java/wekan/wrapper/entity/Action.java @@ -0,0 +1,13 @@ +package wekan.wrapper.entity; + +import com.google.gson.annotations.SerializedName; + +public enum Action { + + @SerializedName("takeOwnership") + TAKE_OWNERSHIP, + @SerializedName("disableLogin") + DISABLE_LOGIN, + @SerializedName("enableLogin") + ENABLE_LOGIN +} diff --git a/wrapper/src/main/java/wekan/wrapper/entity/UserPrototype.java b/wrapper/src/main/java/wekan/wrapper/entity/UserPrototype.java new file mode 100644 index 0000000..fee4e13 --- /dev/null +++ b/wrapper/src/main/java/wekan/wrapper/entity/UserPrototype.java @@ -0,0 +1,47 @@ +package wekan.wrapper.entity; + +public class UserPrototype { + + public UserPrototype(String id, String token, String tokenExpires) { + this.id = id; + this.token = token; + this.tokenExpires = tokenExpires; + } + + @Override + public String toString() { + return "User{" + + "id='" + id + '\'' + + ", token='" + token + '\'' + + ", tokenExpires='" + tokenExpires + '\'' + + '}'; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getToken() { + return token; + } + + public void setToken(String token) { + this.token = token; + } + + public String getTokenExpires() { + return tokenExpires; + } + + public void setTokenExpires(String tokenExpires) { + this.tokenExpires = tokenExpires; + } + + private String id; + private String token; + private String tokenExpires; +}