aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick/model/ext/facebook
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2022-12-21 02:36:49 +0300
committerGravatar Vitaly Takmazov2022-12-21 02:36:49 +0300
commit1ad1b73a7b85e7e907de1870991a8849487f9543 (patch)
tree4cda16090472d739a79ab57efbc94a6ad4e8ddc9 /src/main/java/com/juick/model/ext/facebook
parent8a32b359eed27ab1d4e054ffed99b6602fa18acf (diff)
Social logins: adopt records
Diffstat (limited to 'src/main/java/com/juick/model/ext/facebook')
-rw-r--r--src/main/java/com/juick/model/ext/facebook/User.java31
1 files changed, 2 insertions, 29 deletions
diff --git a/src/main/java/com/juick/model/ext/facebook/User.java b/src/main/java/com/juick/model/ext/facebook/User.java
index 44a3e73e..4c9433e9 100644
--- a/src/main/java/com/juick/model/ext/facebook/User.java
+++ b/src/main/java/com/juick/model/ext/facebook/User.java
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2008-2020, Juick
+ * Copyright (C) 2008-2022, Juick
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
@@ -24,32 +24,5 @@ import com.fasterxml.jackson.annotation.JsonProperty;
* Created by vitalyster on 28.11.2016.
*/
@JsonIgnoreProperties(ignoreUnknown = true)
-public class User {
- private String id;
- private String name;
- private String firstName;
- private String lastName;
- private String email;
-
- public String getId() {
- return id;
- }
-
- public String getName() {
- return name;
- }
-
- @JsonProperty("first_name")
- public String getFirstName() {
- return firstName;
- }
-
- @JsonProperty("last_name")
- public String getLastName() {
- return lastName;
- }
-
- public String getEmail() {
- return email;
- }
+public record User(String id, String name, @JsonProperty("first_name") String firstName, @JsonProperty("last_name") String lastName, String email) {
}