# Copyright 2019 Google LLC
#
# 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 file is auto generated by the elixir code generator program.
# Do not edit this file manually.

defmodule GoogleApi.Books.V1.Model.Notification do
  @moduledoc """


  ## Attributes

  *   `body` (*type:* `String.t`, *default:* `nil`) - 
  *   `crmExperimentIds` (*type:* `list(String.t)`, *default:* `nil`) - The list of crm experiment ids.
  *   `doc_id` (*type:* `String.t`, *default:* `nil`) - 
  *   `doc_type` (*type:* `String.t`, *default:* `nil`) - 
  *   `dont_show_notification` (*type:* `boolean()`, *default:* `nil`) - 
  *   `iconUrl` (*type:* `String.t`, *default:* `nil`) - 
  *   `is_document_mature` (*type:* `boolean()`, *default:* `nil`) - 
  *   `kind` (*type:* `String.t`, *default:* `nil`) - Resource type.
  *   `notificationGroup` (*type:* `String.t`, *default:* `nil`) - 
  *   `notification_type` (*type:* `String.t`, *default:* `nil`) - 
  *   `pcampaign_id` (*type:* `String.t`, *default:* `nil`) - 
  *   `reason` (*type:* `String.t`, *default:* `nil`) - 
  *   `show_notification_settings_action` (*type:* `boolean()`, *default:* `nil`) - 
  *   `targetUrl` (*type:* `String.t`, *default:* `nil`) - 
  *   `timeToExpireMs` (*type:* `String.t`, *default:* `nil`) - 
  *   `title` (*type:* `String.t`, *default:* `nil`) - 
  """

  use GoogleApi.Gax.ModelBase

  @type t :: %__MODULE__{
          :body => String.t() | nil,
          :crmExperimentIds => list(String.t()) | nil,
          :doc_id => String.t() | nil,
          :doc_type => String.t() | nil,
          :dont_show_notification => boolean() | nil,
          :iconUrl => String.t() | nil,
          :is_document_mature => boolean() | nil,
          :kind => String.t() | nil,
          :notificationGroup => String.t() | nil,
          :notification_type => String.t() | nil,
          :pcampaign_id => String.t() | nil,
          :reason => String.t() | nil,
          :show_notification_settings_action => boolean() | nil,
          :targetUrl => String.t() | nil,
          :timeToExpireMs => String.t() | nil,
          :title => String.t() | nil
        }

  field(:body)
  field(:crmExperimentIds, type: :list)
  field(:doc_id)
  field(:doc_type)
  field(:dont_show_notification)
  field(:iconUrl)
  field(:is_document_mature)
  field(:kind)
  field(:notificationGroup)
  field(:notification_type)
  field(:pcampaign_id)
  field(:reason)
  field(:show_notification_settings_action)
  field(:targetUrl)
  field(:timeToExpireMs)
  field(:title)
end

defimpl Poison.Decoder, for: GoogleApi.Books.V1.Model.Notification do
  def decode(value, options) do
    GoogleApi.Books.V1.Model.Notification.decode(value, options)
  end
end

defimpl Poison.Encoder, for: GoogleApi.Books.V1.Model.Notification do
  def encode(value, options) do
    GoogleApi.Gax.ModelBase.encode(value, options)
  end
end
