Merge remote-tracking branch 'runelite/master' into 2308-merge

This commit is contained in:
Owain van Brakel
2019-08-23 02:31:44 +02:00
30 changed files with 416 additions and 123 deletions

View File

@@ -53,13 +53,13 @@ public class LootTrackerClient
private final UUID uuid;
public void submit(LootRecord lootRecord)
public void submit(Collection<LootRecord> lootRecords)
{
HttpUrl url = RuneLiteAPI.getApiBase().newBuilder()
.addPathSegment("loottracker")
.build();
RequestBody body = RequestBody.Companion.create(GSON.toJson(lootRecord), JSON);
RequestBody body = RequestBody.Companion.create(GSON.toJson(lootRecords), JSON);
Request request = new Request.Builder()
.header(RuneLiteAPI.RUNELITE_AUTH, uuid.toString())
.post(body)