Class: GetStream::Generated::Models::WrappedUnreadCountsResponse
- Inherits:
-
BaseModel
- Object
- BaseModel
- GetStream::Generated::Models::WrappedUnreadCountsResponse
show all
- Defined in:
- lib/getstream_ruby/generated/models/wrapped_unread_counts_response.rb
Overview
Basic response information
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 with attributes
35
36
37
38
39
40
41
42
43
44
|
# File 'lib/getstream_ruby/generated/models/wrapped_unread_counts_response.rb', line 35
def initialize(attributes = {})
super(attributes)
@duration = attributes[:duration] || attributes['duration']
@total_unread_count = attributes[:total_unread_count] || attributes['total_unread_count']
@total_unread_threads_count = attributes[:total_unread_threads_count] || attributes['total_unread_threads_count']
@channel_type = attributes[:channel_type] || attributes['channel_type']
@channels = attributes[:channels] || attributes['channels']
@threads = attributes[:threads] || attributes['threads']
@total_unread_count_by_team = attributes[:total_unread_count_by_team] || attributes['total_unread_count_by_team'] || nil
end
|
Instance Attribute Details
23
24
25
|
# File 'lib/getstream_ruby/generated/models/wrapped_unread_counts_response.rb', line 23
def channel_type
@channel_type
end
|
26
27
28
|
# File 'lib/getstream_ruby/generated/models/wrapped_unread_counts_response.rb', line 26
def channels
@channels
end
|
#duration ⇒ String
14
15
16
|
# File 'lib/getstream_ruby/generated/models/wrapped_unread_counts_response.rb', line 14
def duration
@duration
end
|
29
30
31
|
# File 'lib/getstream_ruby/generated/models/wrapped_unread_counts_response.rb', line 29
def threads
@threads
end
|
#total_unread_count ⇒ Integer
17
18
19
|
# File 'lib/getstream_ruby/generated/models/wrapped_unread_counts_response.rb', line 17
def total_unread_count
@total_unread_count
end
|
#total_unread_count_by_team ⇒ Hash<String, Integer>
32
33
34
|
# File 'lib/getstream_ruby/generated/models/wrapped_unread_counts_response.rb', line 32
def total_unread_count_by_team
@total_unread_count_by_team
end
|
#total_unread_threads_count ⇒ Integer
20
21
22
|
# File 'lib/getstream_ruby/generated/models/wrapped_unread_counts_response.rb', line 20
def total_unread_threads_count
@total_unread_threads_count
end
|
Class Method Details
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization
47
48
49
50
51
52
53
54
55
56
57
|
# File 'lib/getstream_ruby/generated/models/wrapped_unread_counts_response.rb', line 47
def self.json_field_mappings
{
duration: 'duration',
total_unread_count: 'total_unread_count',
total_unread_threads_count: 'total_unread_threads_count',
channel_type: 'channel_type',
channels: 'channels',
threads: 'threads',
total_unread_count_by_team: 'total_unread_count_by_team'
}
end
|