Class: WhopSDK::Models::DmMember
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- WhopSDK::Models::DmMember
- Defined in:
- lib/whop_sdk/models/dm_member.rb
Overview
Instance Attribute Summary collapse
-
#channel_id ⇒ String
The unique identifier of the messaging channel this membership belongs to.
-
#id ⇒ String
The unique identifier for the entity.
-
#last_viewed_at ⇒ String?
The timestamp when this member last viewed the channel, as a Unix timestamp in milliseconds.
-
#notification_preference ⇒ Symbol, WhopSDK::Models::DmFeedMemberNotificationPreferences
The notification level for this channel: all, mentions, or none.
-
#status ⇒ Symbol, WhopSDK::Models::DmFeedMemberStatuses
The current state of this membership: requested, accepted, hidden, closed, or archived.
-
#user_id ⇒ String
The unique identifier of the user who holds this channel membership.
Instance Method Summary collapse
-
#initialize(id:, channel_id:, last_viewed_at:, notification_preference:, status:, user_id:) ⇒ Object
constructor
Some parameter documentations has been truncated, see DmMember for more details.
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(id:, channel_id:, last_viewed_at:, notification_preference:, status:, user_id:) ⇒ Object
Some parameter documentations has been truncated, see WhopSDK::Models::DmMember for more details.
A user’s membership record in a messaging channel, including notification preferences and read state.
|
|
# File 'lib/whop_sdk/models/dm_member.rb', line 45
|
Instance Attribute Details
#channel_id ⇒ String
The unique identifier of the messaging channel this membership belongs to.
17 |
# File 'lib/whop_sdk/models/dm_member.rb', line 17 required :channel_id, String |
#id ⇒ String
The unique identifier for the entity
11 |
# File 'lib/whop_sdk/models/dm_member.rb', line 11 required :id, String |
#last_viewed_at ⇒ String?
The timestamp when this member last viewed the channel, as a Unix timestamp in milliseconds. Null if the member has never viewed the channel.
24 |
# File 'lib/whop_sdk/models/dm_member.rb', line 24 required :last_viewed_at, String, nil?: true |
#notification_preference ⇒ Symbol, WhopSDK::Models::DmFeedMemberNotificationPreferences
The notification level for this channel: all, mentions, or none.
30 |
# File 'lib/whop_sdk/models/dm_member.rb', line 30 required :notification_preference, enum: -> { WhopSDK::DmFeedMemberNotificationPreferences } |
#status ⇒ Symbol, WhopSDK::Models::DmFeedMemberStatuses
The current state of this membership: requested, accepted, hidden, closed, or archived.
37 |
# File 'lib/whop_sdk/models/dm_member.rb', line 37 required :status, enum: -> { WhopSDK::DmFeedMemberStatuses } |
#user_id ⇒ String
The unique identifier of the user who holds this channel membership.
43 |
# File 'lib/whop_sdk/models/dm_member.rb', line 43 required :user_id, String |