# frozen_string_literal: true

module DropboxApi::Metadata
  # Example of a serialized {UploadSessionCursor} object:
  #
  # ```json
  # {
  #   "session_id": "AAAAAAAABCJ61k9yZZtn8Q",
  #   "offset":9
  # }
  # ```
  class UploadSessionCursor < Base
    field :session_id, String
    field :offset, Integer

    def offset=(value)
      self[:offset] = value
    end
  end
end
