Current section

Files

Jump to
google_api_fitness lib google_api fitness v1 model session.ex
Raw

lib/google_api/fitness/v1/model/session.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.Fitness.V1.Model.Session do
@moduledoc """
Sessions contain metadata, such as a user-friendly name and time interval information.
## Attributes
- activeTimeMillis (String.t): Session active time. While start_time_millis and end_time_millis define the full session time, the active time can be shorter and specified by active_time_millis. If the inactive time during the session is known, it should also be inserted via a com.google.activity.segment data point with a STILL activity value Defaults to: `null`.
- activityType (integer()): The type of activity this session represents. Defaults to: `null`.
- application (Application): The application that created the session. Defaults to: `null`.
- description (String.t): A description for this session. Defaults to: `null`.
- endTimeMillis (String.t): An end time, in milliseconds since epoch, inclusive. Defaults to: `null`.
- id (String.t): A client-generated identifier that is unique across all sessions owned by this particular user. Defaults to: `null`.
- modifiedTimeMillis (String.t): A timestamp that indicates when the session was last modified. Defaults to: `null`.
- name (String.t): A human readable name of the session. Defaults to: `null`.
- startTimeMillis (String.t): A start time, in milliseconds since epoch, inclusive. Defaults to: `null`.
"""
use GoogleApi.Gax.ModelBase
@type t :: %__MODULE__{
:activeTimeMillis => any(),
:activityType => any(),
:application => GoogleApi.Fitness.V1.Model.Application.t(),
:description => any(),
:endTimeMillis => any(),
:id => any(),
:modifiedTimeMillis => any(),
:name => any(),
:startTimeMillis => any()
}
field(:activeTimeMillis)
field(:activityType)
field(:application, as: GoogleApi.Fitness.V1.Model.Application)
field(:description)
field(:endTimeMillis)
field(:id)
field(:modifiedTimeMillis)
field(:name)
field(:startTimeMillis)
end
defimpl Poison.Decoder, for: GoogleApi.Fitness.V1.Model.Session do
def decode(value, options) do
GoogleApi.Fitness.V1.Model.Session.decode(value, options)
end
end
defimpl Poison.Encoder, for: GoogleApi.Fitness.V1.Model.Session do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end