# 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.Books.V1.Model.Review do @moduledoc """ ## Attributes - author (ReviewAuthor): Defaults to: `null`. - content (String.t): Review text. Defaults to: `null`. - date (String.t): Date of this review. Defaults to: `null`. - fullTextUrl (String.t): URL for the full review text, for reviews gathered from the web. Defaults to: `null`. - kind (String.t): Resource type for a review. Defaults to: `null`. - rating (String.t): Star rating for this review. Possible values are ONE, TWO, THREE, FOUR, FIVE or NOT_RATED. Defaults to: `null`. - source (ReviewSource): Defaults to: `null`. - title (String.t): Title for this review. Defaults to: `null`. - type (String.t): Source type for this review. Possible values are EDITORIAL, WEB_USER or GOOGLE_USER. Defaults to: `null`. - volumeId (String.t): Volume that this review is for. Defaults to: `null`. """ use GoogleApi.Gax.ModelBase @type t :: %__MODULE__{ :author => GoogleApi.Books.V1.Model.ReviewAuthor.t(), :content => any(), :date => any(), :fullTextUrl => any(), :kind => any(), :rating => any(), :source => GoogleApi.Books.V1.Model.ReviewSource.t(), :title => any(), :type => any(), :volumeId => any() } field(:author, as: GoogleApi.Books.V1.Model.ReviewAuthor) field(:content) field(:date) field(:fullTextUrl) field(:kind) field(:rating) field(:source, as: GoogleApi.Books.V1.Model.ReviewSource) field(:title) field(:type) field(:volumeId) end defimpl Poison.Decoder, for: GoogleApi.Books.V1.Model.Review do def decode(value, options) do GoogleApi.Books.V1.Model.Review.decode(value, options) end end defimpl Poison.Encoder, for: GoogleApi.Books.V1.Model.Review do def encode(value, options) do GoogleApi.Gax.ModelBase.encode(value, options) end end