Current section

Files

Jump to
google_api_games lib google_api games v1 model player.ex
Raw

lib/google_api/games/v1/model/player.ex

# Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# NOTE: This class is auto generated by the swagger code generator program.
# https://github.com/swagger-api/swagger-codegen.git
# Do not edit the class manually.
defmodule GoogleApi.Games.V1.Model.Player do
@moduledoc """
This is a JSON template for a Player resource.
## Attributes
- avatarImageUrl (String.t): The base URL for the image that represents the player. Defaults to: `null`.
- bannerUrlLandscape (String.t): The url to the landscape mode player banner image. Defaults to: `null`.
- bannerUrlPortrait (String.t): The url to the portrait mode player banner image. Defaults to: `null`.
- displayName (String.t): The name to display for the player. Defaults to: `null`.
- experienceInfo (PlayerExperienceInfo): An object to represent Play Game experience information for the player. Defaults to: `null`.
- kind (String.t): Uniquely identifies the type of this resource. Value is always the fixed string games#player. Defaults to: `null`.
- lastPlayedWith (Played): Details about the last time this player played a multiplayer game with the currently authenticated player. Populated for PLAYED_WITH player collection members. Defaults to: `null`.
- name (PlayerName): Defaults to: `null`.
- originalPlayerId (String.t): The player ID that was used for this player the first time they signed into the game in question. This is only populated for calls to player.get for the requesting player, only if the player ID has subsequently changed, and only to clients that support remapping player IDs. Defaults to: `null`.
- playerId (String.t): The ID of the player. Defaults to: `null`.
- profileSettings (ProfileSettings): The player's profile settings. Controls whether or not the player's profile is visible to other players. Defaults to: `null`.
- title (String.t): The player's title rewarded for their game activities. Defaults to: `null`.
"""
use GoogleApi.Gax.ModelBase
@type t :: %__MODULE__{
:avatarImageUrl => any(),
:bannerUrlLandscape => any(),
:bannerUrlPortrait => any(),
:displayName => any(),
:experienceInfo => GoogleApi.Games.V1.Model.PlayerExperienceInfo.t(),
:kind => any(),
:lastPlayedWith => GoogleApi.Games.V1.Model.Played.t(),
:name => GoogleApi.Games.V1.Model.PlayerName.t(),
:originalPlayerId => any(),
:playerId => any(),
:profileSettings => GoogleApi.Games.V1.Model.ProfileSettings.t(),
:title => any()
}
field(:avatarImageUrl)
field(:bannerUrlLandscape)
field(:bannerUrlPortrait)
field(:displayName)
field(:experienceInfo, as: GoogleApi.Games.V1.Model.PlayerExperienceInfo)
field(:kind)
field(:lastPlayedWith, as: GoogleApi.Games.V1.Model.Played)
field(:name, as: GoogleApi.Games.V1.Model.PlayerName)
field(:originalPlayerId)
field(:playerId)
field(:profileSettings, as: GoogleApi.Games.V1.Model.ProfileSettings)
field(:title)
end
defimpl Poison.Decoder, for: GoogleApi.Games.V1.Model.Player do
def decode(value, options) do
GoogleApi.Games.V1.Model.Player.decode(value, options)
end
end
defimpl Poison.Encoder, for: GoogleApi.Games.V1.Model.Player do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end