# AVAConversationActivity

Objective-C

    @interface AVAConversationActivity : NSObject

Swift

    class AVAConversationActivity : NSObject

An activity related to a `AVAConversation`

- `role`

  @abstract the role of who is performing the typing activity

  #### Declaration

  Objective-C

      @property (readonly, nullable) NSString *role;

  Swift

      var role: String? { get }

- `type`

  @abstract the type of activity that is being triggered. Could be either

  - AVAConversationActivityTypeTypingStart
  - AVAConversationActivityTypeTypingStop
  - AVAConversationActivityTypeConversationRead
  - AVAConversationActivityTypeConversationAdded
  - AVAConversationActivityTypeConversationRemoved
  - AVAConversationActivityTypeParticipantAdded
  - AVAConversationActivityTypeParticipantRemoved

  #### Declaration

  Objective-C

      @property (readonly) NSString *_Nonnull type;

  Swift

      var type: String { get }

- `data`

  @abstract additional data for this activity. Posible values are the business’s ‘name’ and/or ‘avatarUrl’

  #### Declaration

  Objective-C

      @property (readonly, nullable) NSDictionary *data;

  Swift

      var data: [AnyHashable : Any]? { get }

- `conversationId`

  @abstract conversationId for activity. Can be nil

  #### Declaration

  Objective-C

      @property (readonly, nullable) NSString *conversationId;

  Swift

      var conversationId: String? { get }

- `businessLastRead`

  @abstract date when the business last read user messages for activities of type AVAConversationActivityTypeConversationRead

  #### Declaration

  Objective-C

      @property (readonly, nullable) NSDate *businessLastRead;

  Swift

      var businessLastRead: Date? { get }

- `userId`

  @abstract The userId if available, null otherwise

  available for AVAConversationActivityTypeParticipantAdded, AVAConversationActivityTypeParticipantRemoved

  #### Declaration

  Objective-C

      @property (readonly, nullable) NSString *userId;

  Swift

      var userId: String? { get }

© 2022 . All rights reserved. (Last updated: 2022-06-30)

Generated by jazzy ♪♫ v0.14.2, a Realm project.