java.lang.Object
net.darkhax.curseforgegradle.api.metadata.Metadata

public final class Metadata extends Object
A POJO that represents the metadata value in a CurseForge upload request. This object exists to be serialized to the JSON used to make that request.
  • Field Details

    • changelog

      @Expose @SerializedName("changelog") public String changelog
      The changelog string. OPTIONAL
    • changelogType

      @Expose @SerializedName("changelogType") public String changelogType
      The changelog type. OPTIONAL
    • displayName

      @Expose @SerializedName("displayName") public String displayName
      The display name. OPTIONAL
    • parentFileID

      @Expose @SerializedName("parentFileID") public Long parentFileID
      The parent file ID. OPTIONAL
    • gameVersions

      @Expose @SerializedName("gameVersions") public Set<Long> gameVersions
      The supported game versions. REQUIRED SOMETIMES

      When parentFileID is null this must be a non-empty set. If parentFileID is not null this must be null.

    • releaseType

      @Expose @SerializedName("releaseType") public String releaseType
      The release type. REQUIRED
    • relations

      @Expose @SerializedName("relations") public ProjectRelations relations
      The relationship metadata. OPTIONAL

      If ProjectRelations.getRelations() is empty this must be null.

  • Constructor Details

    • Metadata

      public Metadata()