Exspotify.Structs.Device (Exspotify v0.1.0)

View Source

Represents a device object from Spotify API. Used for user's available playback devices.

Summary

Functions

Creates a Device struct from a map.

Types

t()

@type t() :: %Exspotify.Structs.Device{
  id: String.t(),
  is_active: boolean() | nil,
  is_private_session: boolean() | nil,
  is_restricted: boolean() | nil,
  name: String.t(),
  supports_volume: boolean() | nil,
  type: String.t(),
  volume_percent: integer() | nil
}

Functions

from_map(map)

@spec from_map(map()) :: t()

Creates a Device struct from a map.