generated from GSM-MSG/MSG-Repository-Generator
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
105 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package gauth; | ||
|
||
public class GAuthCode { | ||
private String code; | ||
|
||
public GAuthCode(String code) { | ||
this.code = code; | ||
} | ||
|
||
public String getCode() { | ||
return code; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package gauth; | ||
|
||
import java.util.Map; | ||
|
||
public class GAuthToken { | ||
private String accessToken; | ||
private String refreshToken; | ||
|
||
public GAuthToken(Map<String, String> map) { | ||
this.accessToken = map.get("accessToken"); | ||
this.refreshToken = map.get("refreshToken"); | ||
} | ||
|
||
public String getAccessToken() { | ||
return accessToken; | ||
} | ||
|
||
public String getRefreshToken() { | ||
return refreshToken; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
package gauth; | ||
|
||
import java.util.Map; | ||
|
||
public class GAuthUserInfo { | ||
private String email; | ||
private String name; | ||
private Integer grade; | ||
private Integer classNum; | ||
private Integer num; | ||
private String gender; | ||
private String profileUrl; | ||
private String role; | ||
|
||
public GAuthUserInfo(Map<String, Object> map) { | ||
this.email = (String) map.get("email"); | ||
this.name = (String) map.get("name"); | ||
this.grade = (Integer) map.get("grade"); | ||
this.classNum = (Integer) map.get("classNum"); | ||
this.num = (Integer) map.get("num"); | ||
this.gender = (String) map.get("gender"); | ||
this.profileUrl = (String) map.get("profileUrl"); | ||
this.role = (String) map.get("role"); | ||
} | ||
|
||
public String getEmail() { | ||
return email; | ||
} | ||
|
||
public String getName() { | ||
return name; | ||
} | ||
|
||
public Integer getGrade() { | ||
return grade; | ||
} | ||
|
||
public Integer getClassNum() { | ||
return classNum; | ||
} | ||
|
||
public Integer getNum() { | ||
return num; | ||
} | ||
|
||
public String getGender() { | ||
return gender; | ||
} | ||
|
||
public String getProfileUrl() { | ||
return profileUrl; | ||
} | ||
|
||
public String getRole() { | ||
return role; | ||
} | ||
} |