GoogleApi.Games.V1.Model.SnapshotCoverImageResource (google_api_games v0.19.0) View Source

Identifies a snapshot cover image resource. The image is provided by the game.

Attributes

  • contentHash (type: String.t, default: nil) - Output only. Hash-like weak identifier of the uploaded image bytes, consistent per player per application. Within the context of a single player/application, it's guaranteed that two identical blobs coming from two different uploads will have the same content hash. It's extremely likely, though not guaranteed, that if two content hashes are equal, the images are identical.
  • downloadUrl (type: String.t, default: nil) - Output only. A URL the client can use to download the image. May vary across requests, and only guaranteed to be valid for a short time after it is returned.
  • height (type: integer(), default: nil) - Output only. The height of the image in pixels.
  • mimeType (type: String.t, default: nil) - Output only. The MIME type of the image.
  • resourceId (type: String.t, default: nil) - The ID of the image resource. It's guaranteed that if two IDs are equal then the contents are equal as well. It's not guaranteed that two identical blobs coming from separate uploads have the same ID. The resource ID can only be used within the application, user and resource type it was originally returned for. For example, it's not possible to use SnapshotDataResource's resource ID as the resource_id of a SnapshotCoverImageResource, even if the blob is a valid image file.
  • width (type: integer(), default: nil) - Output only. The width of the image in pixels.

Link to this section Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Link to this section Types

Specs

t() :: %GoogleApi.Games.V1.Model.SnapshotCoverImageResource{
  contentHash: String.t(),
  downloadUrl: String.t(),
  height: integer(),
  mimeType: String.t(),
  resourceId: String.t(),
  width: integer()
}

Link to this section Functions

Specs

decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.