SIGN UP

VIConversationParticipant

Interface that represents participant of a conversation.

Methods

initWithUserId:canWrite:canManageParticipants:

- (instancetype)initWithUserId:(NSString *)userId
                      canWrite:(BOOL)canWrite
         canManageParticipants:(BOOL)canManageParticipants

Initialize conversation participant

Parameters

  • userId:

    NSString *

    Voximplant user identifier, ex username@appname.accname.

  • canWrite:

    BOOL

    If 'YES', user can write to the conversation.

  • canManageParticipants:

    BOOL

    If 'YES', user can add, remove and edit access rights for conversation participants (but not conversation moderators).

Returns

  • Return:

    instancetype

    Participant instance.

Properties

canManageParticipants

@property (nonatomic, assign) BOOL canManageParticipants

If 'YES', user can add, remove and edit access rights for conversation participants (but not conversation moderators).

canWrite

@property (nonatomic, assign) BOOL canWrite

If 'YES', user can write to the conversation.

userId

@property (nonatomic, copy, readonly) NSString *userId

Voximplant user identifier, ex username@appname.accname.