Current section
Files
Jump to
Current section
Files
lib/google_api/plus/v1/model/person.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.Plus.V1.Model.Person do
@moduledoc """
## Attributes
- aboutMe (String): A short biography for this person. Defaults to: `null`.
- ageRange (PersonAgeRange): Defaults to: `null`.
- birthday (String): The person's date of birth, represented as YYYY-MM-DD. Defaults to: `null`.
- braggingRights (String): The \"bragging rights\" line of this person. Defaults to: `null`.
- circledByCount (Integer): For followers who are visible, the number of people who have added this person or page to a circle. Defaults to: `null`.
- cover (PersonCover): Defaults to: `null`.
- currentLocation (String): (this field is not currently used) Defaults to: `null`.
- displayName (String): The name of this person, which is suitable for display. Defaults to: `null`.
- domain (String): The hosted domain name for the user's Google Apps account. For instance, example.com. The plus.profile.emails.read or email scope is needed to get this domain name. Defaults to: `null`.
- emails (List[PersonEmails]): A list of email addresses that this person has, including their Google account email address, and the public verified email addresses on their Google+ profile. The plus.profile.emails.read scope is needed to retrieve these email addresses, or the email scope can be used to retrieve just the Google account email address. Defaults to: `null`.
- etag (String): ETag of this response for caching purposes. Defaults to: `null`.
- gender (String): The person's gender. Possible values include, but are not limited to, the following values: - \"male\" - Male gender. - \"female\" - Female gender. - \"other\" - Other. Defaults to: `null`.
- id (String): The ID of this person. Defaults to: `null`.
- image (PersonImage): Defaults to: `null`.
- isPlusUser (Boolean): Whether this user has signed up for Google+. Defaults to: `null`.
- kind (String): Identifies this resource as a person. Value: \"plus#person\". Defaults to: `null`.
- language (String): The user's preferred language for rendering. Defaults to: `null`.
- name (PersonName): Defaults to: `null`.
- nickname (String): The nickname of this person. Defaults to: `null`.
- objectType (String): Type of person within Google+. Possible values include, but are not limited to, the following values: - \"person\" - represents an actual person. - \"page\" - represents a page. Defaults to: `null`.
- occupation (String): The occupation of this person. Defaults to: `null`.
- organizations (List[PersonOrganizations]): A list of current or past organizations with which this person is associated. Defaults to: `null`.
- placesLived (List[PersonPlacesLived]): A list of places where this person has lived. Defaults to: `null`.
- plusOneCount (Integer): If a Google+ Page, the number of people who have +1'd this page. Defaults to: `null`.
- relationshipStatus (String): The person's relationship status. Possible values include, but are not limited to, the following values: - \"single\" - Person is single. - \"in_a_relationship\" - Person is in a relationship. - \"engaged\" - Person is engaged. - \"married\" - Person is married. - \"its_complicated\" - The relationship is complicated. - \"open_relationship\" - Person is in an open relationship. - \"widowed\" - Person is widowed. - \"in_domestic_partnership\" - Person is in a domestic partnership. - \"in_civil_union\" - Person is in a civil union. Defaults to: `null`.
- skills (String): The person's skills. Defaults to: `null`.
- tagline (String): The brief description (tagline) of this person. Defaults to: `null`.
- url (String): The URL of this person's profile. Defaults to: `null`.
- urls (List[PersonUrls]): A list of URLs for this person. Defaults to: `null`.
- verified (Boolean): Whether the person or Google+ Page has been verified. Defaults to: `null`.
"""
defstruct [
:"aboutMe",
:"ageRange",
:"birthday",
:"braggingRights",
:"circledByCount",
:"cover",
:"currentLocation",
:"displayName",
:"domain",
:"emails",
:"etag",
:"gender",
:"id",
:"image",
:"isPlusUser",
:"kind",
:"language",
:"name",
:"nickname",
:"objectType",
:"occupation",
:"organizations",
:"placesLived",
:"plusOneCount",
:"relationshipStatus",
:"skills",
:"tagline",
:"url",
:"urls",
:"verified"
]
end
defimpl Poison.Decoder, for: GoogleApi.Plus.V1.Model.Person do
import GoogleApi.Plus.V1.Deserializer
def decode(value, options) do
value
|> deserialize(:"ageRange", :struct, GoogleApi.Plus.V1.Model.PersonAgeRange, options)
|> deserialize(:"cover", :struct, GoogleApi.Plus.V1.Model.PersonCover, options)
|> deserialize(:"emails", :list, GoogleApi.Plus.V1.Model.PersonEmails, options)
|> deserialize(:"image", :struct, GoogleApi.Plus.V1.Model.PersonImage, options)
|> deserialize(:"name", :struct, GoogleApi.Plus.V1.Model.PersonName, options)
|> deserialize(:"organizations", :list, GoogleApi.Plus.V1.Model.PersonOrganizations, options)
|> deserialize(:"placesLived", :list, GoogleApi.Plus.V1.Model.PersonPlacesLived, options)
|> deserialize(:"urls", :list, GoogleApi.Plus.V1.Model.PersonUrls, options)
end
end
defimpl Poison.Encoder, for: GoogleApi.Plus.V1.Model.Person do
def encode(value, options) do
GoogleApi.Plus.V1.Deserializer.serialize_non_nil(value, options)
end
end