Package masecla.modrinth4j.model.team
Class ModrinthPermissionMask.ModrinthPermissionMaskAdapter
java.lang.Object
com.google.gson.TypeAdapter<ModrinthPermissionMask>
masecla.modrinth4j.model.team.ModrinthPermissionMask.ModrinthPermissionMaskAdapter
- Enclosing class:
ModrinthPermissionMask
public static class ModrinthPermissionMask.ModrinthPermissionMaskAdapter
extends com.google.gson.TypeAdapter<ModrinthPermissionMask>
This is a
TypeAdapter for ModrinthPermissionMask. Used to
build the bitmask
from the JSON.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionread(com.google.gson.stream.JsonReader in) Reads the mask from the JSON.voidwrite(com.google.gson.stream.JsonWriter out, ModrinthPermissionMask value) Writes the mask to the JSON.Methods inherited from class com.google.gson.TypeAdapter
fromJson, fromJson, fromJsonTree, nullSafe, toJson, toJson, toJsonTree
-
Constructor Details
-
ModrinthPermissionMaskAdapter
public ModrinthPermissionMaskAdapter()
-
-
Method Details
-
write
public void write(com.google.gson.stream.JsonWriter out, ModrinthPermissionMask value) throws IOException Writes the mask to the JSON.- Specified by:
writein classcom.google.gson.TypeAdapter<ModrinthPermissionMask>- Throws:
IOException
-
read
Reads the mask from the JSON.- Specified by:
readin classcom.google.gson.TypeAdapter<ModrinthPermissionMask>- Throws:
IOException
-