Class BedrockRealmStories
java.lang.Object
com.viaversion.viafabricplus.bedrock.features.realms.BedrockRealmStories
Realm events and player posts share Xbox club comments and relationships.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionBedrockRealmStories(net.raphimc.minecraftauth.bedrock.BedrockAuthManager account, String clubId) -
Method Summary
Modifier and TypeMethodDescriptionCompletableFuture<com.google.gson.JsonObject> CompletableFuture<com.google.gson.JsonObject> CompletableFuture<com.google.gson.JsonObject> CompletableFuture<com.google.gson.JsonObject> deleteComment(String root, String commentId) CompletableFuture<com.google.gson.JsonObject> deleteStory(String root) CompletableFuture<com.google.gson.JsonObject> dismissReport(String id, boolean deleted) CompletableFuture<com.google.gson.JsonObject> CompletableFuture<com.google.gson.JsonObject> CompletableFuture<com.google.gson.JsonObject> likeComment(String root, String commentId, boolean liked) CompletableFuture<com.google.gson.JsonObject> static List<BedrockRealmStories.Story> merge(com.google.gson.JsonArray posts, com.google.gson.JsonArray events) Merge by the stable club post ID, including events outside the loaded club page.CompletableFuture<com.google.gson.JsonObject> CompletableFuture<com.google.gson.JsonObject> CompletableFuture<com.google.gson.JsonObject> CompletableFuture<com.google.gson.JsonObject> reports()static CompletableFuture<Map<String, Integer>> unread(net.raphimc.minecraftauth.bedrock.BedrockAuthManager account, Collection<String> clubIds)
-
Constructor Details
-
BedrockRealmStories
public BedrockRealmStories(net.raphimc.minecraftauth.bedrock.BedrockAuthManager account, String clubId)
-
-
Method Details
-
feed
-
unread
public static CompletableFuture<Map<String,Integer>> unread(net.raphimc.minecraftauth.bedrock.BedrockAuthManager account, Collection<String> clubIds) -
comments
-
comments
-
deleteStory
-
deleteComment
-
likeComment
public CompletableFuture<com.google.gson.JsonObject> likeComment(String root, String commentId, boolean liked) -
reports
-
dismissReport
-
report
public CompletableFuture<com.google.gson.JsonObject> report(String root, String author, String reason, boolean xbox, String commentId) -
markRead
-
like
-
comment
-
post
-
post
public CompletableFuture<com.google.gson.JsonObject> post(String xuid, String text, Path screenshot) -
merge
public static List<BedrockRealmStories.Story> merge(com.google.gson.JsonArray posts, com.google.gson.JsonArray events) Merge by the stable club post ID, including events outside the loaded club page.
-