Class: GetStream::Generated::Models::QueryThreadsRequest

Inherits:
BaseModel
  • Object
show all
Defined in:
lib/getstream_ruby/generated/models/query_threads_request.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from BaseModel

#==, #inspect, omit_empty_fields, #to_h, #to_json

Constructor Details

#initialize(attributes = {}) ⇒ QueryThreadsRequest

Initialize with attributes



44
45
46
47
48
49
50
51
52
53
54
55
56
# File 'lib/getstream_ruby/generated/models/query_threads_request.rb', line 44

def initialize(attributes = {})
  super(attributes)
  @limit = attributes.fetch(:limit) { attributes.fetch('limit', nil) }
  @member_limit = attributes.fetch(:member_limit) { attributes.fetch('member_limit', nil) }
  @next = attributes.fetch(:next) { attributes.fetch('next', nil) }
  @participant_limit = attributes.fetch(:participant_limit) { attributes.fetch('participant_limit', nil) }
  @prev = attributes.fetch(:prev) { attributes.fetch('prev', nil) }
  @reply_limit = attributes.fetch(:reply_limit) { attributes.fetch('reply_limit', nil) }
  @user_id = attributes.fetch(:user_id) { attributes.fetch('user_id', nil) }
  @sort = attributes.fetch(:sort) { attributes.fetch('sort', nil) }
  @filter = attributes.fetch(:filter) { attributes.fetch('filter', nil) }
  @user = attributes.fetch(:user) { attributes.fetch('user', nil) }
end

Instance Attribute Details

#filter ⇒ Object

Returns Filter to apply to the query.

Returns:

  • (Object) —

    Filter to apply to the query



38
39
40
# File 'lib/getstream_ruby/generated/models/query_threads_request.rb', line 38

def filter
  @filter
end

#limit ⇒ Integer

Returns:

  • (Integer)


14
15
16
# File 'lib/getstream_ruby/generated/models/query_threads_request.rb', line 14

def limit
  @limit
end

#member_limit ⇒ Integer

Returns:

  • (Integer)


17
18
19
# File 'lib/getstream_ruby/generated/models/query_threads_request.rb', line 17

def member_limit
  @member_limit
end

#next ⇒ String

Returns:

  • (String)


20
21
22
# File 'lib/getstream_ruby/generated/models/query_threads_request.rb', line 20

def next
  @next
end

#participant_limit ⇒ Integer

Returns Limit the number of participants returned per each thread.

Returns:

  • (Integer) —

    Limit the number of participants returned per each thread



23
24
25
# File 'lib/getstream_ruby/generated/models/query_threads_request.rb', line 23

def participant_limit
  @participant_limit
end

#prev ⇒ String

Returns:

  • (String)


26
27
28
# File 'lib/getstream_ruby/generated/models/query_threads_request.rb', line 26

def prev
  @prev
end

#reply_limit ⇒ Integer

Returns Limit the number of replies returned per each thread.

Returns:

  • (Integer) —

    Limit the number of replies returned per each thread



29
30
31
# File 'lib/getstream_ruby/generated/models/query_threads_request.rb', line 29

def reply_limit
  @reply_limit
end

#sort ⇒ Array<SortParamRequest>

Returns Array of sort parameters.

Returns:



35
36
37
# File 'lib/getstream_ruby/generated/models/query_threads_request.rb', line 35

def sort
  @sort
end

#user ⇒ UserRequest

Returns User request object.

Returns:



41
42
43
# File 'lib/getstream_ruby/generated/models/query_threads_request.rb', line 41

def user
  @user
end

#user_id ⇒ String

Returns:

  • (String)


32
33
34
# File 'lib/getstream_ruby/generated/models/query_threads_request.rb', line 32

def user_id
  @user_id
end

Class Method Details

.json_field_mappings ⇒ Object

Override field mappings for JSON serialization



59
60
61
62
63
64
65
66
67
68
69
70
71
72
# File 'lib/getstream_ruby/generated/models/query_threads_request.rb', line 59

def self.json_field_mappings
  {
    limit: 'limit',
    member_limit: 'member_limit',
    next: 'next',
    participant_limit: 'participant_limit',
    prev: 'prev',
    reply_limit: 'reply_limit',
    user_id: 'user_id',
    sort: 'sort',
    filter: 'filter',
    user: 'user'
  }
end