Skip to content
This repository has been archived by the owner on Feb 11, 2023. It is now read-only.

Commit

Permalink
[M] Rename data.set methods
Browse files Browse the repository at this point in the history
  • Loading branch information
hykilpikonna committed Dec 27, 2018
1 parent 4945aae commit b58b07a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ public String sendTest(String content)
* @param dataset 用户信息Dataset
* @return 执行结果
*/
public String sendSetUserInfo(UserInfoDataset dataset)
public String sendUserInfo(UserInfoDataset dataset)
{
return send("data.set.user.info", null, "dataset", GSON_WRITE.toJson(dataset));
}
Expand All @@ -164,7 +164,7 @@ public String sendSetUserInfo(UserInfoDataset dataset)
* @param dataset 位置信息Dataset
* @return 执行结果
*/
public String sendSetLocationDataset(LocationDataset dataset)
public String sendLocationDataset(LocationDataset dataset)
{
return send("data.set.user.location", null, "dataset", GSON_WRITE.toJson(dataset));
}
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/HLLApiClientTester.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public static void main(String[] args)
System.out.println(client.ping() + " ms");

System.out.println("\n-------------------=[ 上传位置 ]=--------------------");
System.out.println(client.sendSetLocationDataset(new LocationDataset("testUser", 47d, -12d))); // 返回 Success
System.out.println(client.sendLocationDataset(new LocationDataset("testUser", 47d, -12d))); // 返回 Success

System.out.println("\n-----------------=[ 获取用户列表 ]=------------------");
System.out.println(client.getUserListAll()); // 返回 ArrayList<UserInfoDataset>
Expand Down

0 comments on commit b58b07a

Please sign in to comment.