Skip to content

Commit a7a90ec

Browse files
committed
Define fetUserInfos SDK
1 parent 1496df1 commit a7a90ec

2 files changed

Lines changed: 39 additions & 0 deletions

File tree

src/main/java/org/mushare/pluto/Pluto.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,12 @@
77
import java.io.UnsupportedEncodingException;
88
import java.security.Signature;
99
import java.util.Base64;
10+
import java.util.List;
1011

1112
public class Pluto {
1213

1314
private PublicKeyManager keyManager;
15+
private String server;
1416
private String appId;
1517

1618
private Pluto() {
@@ -21,6 +23,7 @@ private Pluto() {
2123

2224
public static void setup(String server, String appId) {
2325
shared.keyManager = new PublicKeyManager(server);
26+
shared.server = server;
2427
shared.appId = appId;
2528
}
2629

@@ -68,4 +71,9 @@ public static PlutoUser auth(String token) throws PlutoException {
6871
return new PlutoUser(payload);
6972
}
7073

74+
public static List<PlutoUserInfo> fetUserInfos(long[] userIds) {
75+
76+
return null;
77+
}
78+
7179
}
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
package org.mushare.pluto;
2+
3+
public class PlutoUserInfo {
4+
private long userId;
5+
private String name;
6+
private String avatar;
7+
8+
public long getUserId() {
9+
return userId;
10+
}
11+
12+
public void setUserId(long userId) {
13+
this.userId = userId;
14+
}
15+
16+
public String getName() {
17+
return name;
18+
}
19+
20+
public void setName(String name) {
21+
this.name = name;
22+
}
23+
24+
public String getAvatar() {
25+
return avatar;
26+
}
27+
28+
public void setAvatar(String avatar) {
29+
this.avatar = avatar;
30+
}
31+
}

0 commit comments

Comments
 (0)