com.voximplant.sdk.messaging

Class ConversationParticipant

  • java.lang.Object
    • com.voximplant.sdk.messaging.ConversationParticipant


  • public class ConversationParticipant extends java.lang.Object
    Class that represents participant of a conversation.
    • Constructor Summary

      Constructors 
      Constructor and Description
      ConversationParticipant(java.lang.String userId, boolean canWrite, boolean canManageParticipants) 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      boolean canManageParticipants()
      Check if the conversation participant can manage the conversation participants (add, remove, edit access rights), but not conversation moderators
      boolean canWrite()
      Check if the conversation participant can write to the conversation
      java.lang.String getUserId()
      Get Voximplant user identifier, ex 'username@appname.accname'
      void setCanManageParticipants(boolean canManageParticipants)
      Change access rights to manage participants in the conversation (add, remove, edit access rights), but not conversation moderators
      void setCanWrite(boolean canWrite)
      Change access rights to write to the conversation
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ConversationParticipant

        public ConversationParticipant(java.lang.String userId, boolean canWrite, boolean canManageParticipants)
    • Method Detail

      • getUserId

        public java.lang.String getUserId()
        Get Voximplant user identifier, ex 'username@appname.accname'
        Returns:
        Voximplant user identifier
      • canWrite

        public boolean canWrite()
        Check if the conversation participant can write to the conversation
        Returns:
        True if user can write to the conversation, false otherwise
      • canManageParticipants

        public boolean canManageParticipants()
        Check if the conversation participant can manage the conversation participants (add, remove, edit access rights), but not conversation moderators
        Returns:
        True if user can manage conversation participants, false otherwise
      • setCanWrite

        public void setCanWrite(boolean canWrite)
        Change access rights to write to the conversation
        Parameters:
        canWrite - True if user can write to the conversation, false otherwise
      • setCanManageParticipants

        public void setCanManageParticipants(boolean canManageParticipants)
        Change access rights to manage participants in the conversation (add, remove, edit access rights), but not conversation moderators
        Parameters:
        canManageParticipants - True if user can manage conversation participants, false otherwise