Class: GetStream::Generated::Models::GetFlagCountRequest

Inherits:
BaseModel
  • Object
show all
Defined in:
lib/getstream_ruby/generated/models/get_flag_count_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 = {}) ⇒ GetFlagCountRequest

Initialize with attributes



20
21
22
23
24
# File 'lib/getstream_ruby/generated/models/get_flag_count_request.rb', line 20

def initialize(attributes = {})
  super(attributes)
  @entity_creator_id = attributes[:entity_creator_id] || attributes['entity_creator_id']
  @entity_type = attributes[:entity_type] || attributes['entity_type'] || nil
end

Instance Attribute Details

#entity_creator_idString

Returns ID of the user whose content was flagged.

Returns:

  • (String)

    ID of the user whose content was flagged



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

def entity_creator_id
  @entity_creator_id
end

#entity_typeString

Returns Optional entity type filter (e.g., stream:chat:v1:message, stream:user).

Returns:

  • (String)

    Optional entity type filter (e.g., stream:chat:v1:message, stream:user)



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

def entity_type
  @entity_type
end

Class Method Details

.json_field_mappingsObject

Override field mappings for JSON serialization



27
28
29
30
31
32
# File 'lib/getstream_ruby/generated/models/get_flag_count_request.rb', line 27

def self.json_field_mappings
  {
    entity_creator_id: 'entity_creator_id',
    entity_type: 'entity_type'
  }
end