# 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.FirebaseDynamicLinks.V1.Model.IosInfo do
  @moduledoc """
  iOS related attributes to the Dynamic Link..

  ## Attributes

  *   `iosAppStoreId` (*type:* `String.t`, *default:* `nil`) - iOS App Store ID.
  *   `iosBundleId` (*type:* `String.t`, *default:* `nil`) - iOS bundle ID of the app.
  *   `iosCustomScheme` (*type:* `String.t`, *default:* `nil`) - Custom (destination) scheme to use for iOS. By default, we’ll use the bundle ID as the custom scheme. Developer can override this behavior using this param.
  *   `iosFallbackLink` (*type:* `String.t`, *default:* `nil`) - Link to open on iOS if the app is not installed.
  *   `iosIpadBundleId` (*type:* `String.t`, *default:* `nil`) - iPad bundle ID of the app.
  *   `iosIpadFallbackLink` (*type:* `String.t`, *default:* `nil`) - If specified, this overrides the ios_fallback_link value on iPads.
  *   `iosMinimumVersion` (*type:* `String.t`, *default:* `nil`) - iOS minimum version.
  """

  use GoogleApi.Gax.ModelBase

  @type t :: %__MODULE__{
          :iosAppStoreId => String.t() | nil,
          :iosBundleId => String.t() | nil,
          :iosCustomScheme => String.t() | nil,
          :iosFallbackLink => String.t() | nil,
          :iosIpadBundleId => String.t() | nil,
          :iosIpadFallbackLink => String.t() | nil,
          :iosMinimumVersion => String.t() | nil
        }

  field(:iosAppStoreId)
  field(:iosBundleId)
  field(:iosCustomScheme)
  field(:iosFallbackLink)
  field(:iosIpadBundleId)
  field(:iosIpadFallbackLink)
  field(:iosMinimumVersion)
end

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

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