Sha256: eae1ea4173c26727505a314e6973b21e032bf61d1a526c8b90c0221c86b3ead0

Contents?: true

Size: 897 Bytes

Versions: 1

Compression:

Stored size: 897 Bytes

Contents

# frozen_string_literal: true
require 'vk/api/objects'
require 'vk/schema/namespace'

module Vk
  module API
    class Messages < Vk::Schema::Namespace
      # @see https://github.com/VKCOM/vk-api-schema/blob/master/objects.json
      class Dialog < Vk::Schema::Object
        # @return [Integer] Information whether unread messages are in the dialog
        attribute :unread, API::Types::Coercible::Int.optional
        # @return [API::Messages::Message] @see https://github.com/VKCOM/vk-api-schema/blob/master/objects.json
        attribute :message, Dry::Types[API::Messages::Message].optional
        # @return [Integer] ID of the last message read by current user
        attribute :in_read, API::Types::Coercible::Int.optional
        # @return [Integer] ID of the last message read by the others
        attribute :out_read, API::Types::Coercible::Int.optional
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
vk-0.99.5.53.alpha lib/vk/api/messages/dialog.rb