original_string: private static function get_conversation_structure() {
          return new external_single_structure(
              array(
                  'id' => new external_value(PARAM_INT, 'The conversation id'),
                  'name' => new external_value(PARAM_TEXT, 'The conversation name, if set', VALUE_DEFAULT, null),
                  'subname' => new external_value(PARAM_TEXT, 'A subtitle for the conversation name, if set', VALUE_DEFAULT, null),
                  'imageurl' => new external_value(PARAM_URL, 'A link to the conversation picture, if set', VALUE_DEFAULT, null),
                  'type' => new external_value(PARAM_INT, 'The type of the conversation (1=individual,2=group,3=self)'),
                  'membercount' => new external_value(PARAM_INT, 'Total number of conversation members'),
                  'ismuted' => new external_value(PARAM_BOOL, 'If the user muted this conversation'),
                  'isfavourite' => new external_value(PARAM_BOOL, 'If the user marked this conversation as a favourite'),
                  'isread' => new external_value(PARAM_BOOL, 'If the user has read all messages in the conversation'),
                  'unreadcount' => new external_value(PARAM_INT, 'The number of unread messages in this conversation',
                      VALUE_DEFAULT, null),
                  'members' => new external_multiple_structure(
                      self::get_conversation_member_structure()
                  ),
                  'messages' => new external_multiple_structure(
                      self::get_conversation_message_structure()
                  ),
              )
          );
      }
code: private static function get_conversation_structure() {
          return new external_single_structure(
              array(
                  'id' => new external_value(PARAM_INT, 'The conversation id'),
                  'name' => new external_value(PARAM_TEXT, 'The conversation name, if set', VALUE_DEFAULT, null),
                  'subname' => new external_value(PARAM_TEXT, 'A subtitle for the conversation name, if set', VALUE_DEFAULT, null),
                  'imageurl' => new external_value(PARAM_URL, 'A link to the conversation picture, if set', VALUE_DEFAULT, null),
                  'type' => new external_value(PARAM_INT, 'The type of the conversation (1=individual,2=group,3=self)'),
                  'membercount' => new external_value(PARAM_INT, 'Total number of conversation members'),
                  'ismuted' => new external_value(PARAM_BOOL, 'If the user muted this conversation'),
                  'isfavourite' => new external_value(PARAM_BOOL, 'If the user marked this conversation as a favourite'),
                  'isread' => new external_value(PARAM_BOOL, 'If the user has read all messages in the conversation'),
                  'unreadcount' => new external_value(PARAM_INT, 'The number of unread messages in this conversation',
                      VALUE_DEFAULT, null),
                  'members' => new external_multiple_structure(
                      self::get_conversation_member_structure()
                  ),
                  'messages' => new external_multiple_structure(
                      self::get_conversation_message_structure()
                  ),
              )
          );
      }
code_tokens: private static function get_conversation_structure ( ) { return new external_single_structure ( array ( 'id' => new external_value ( PARAM_INT , 'The conversation id' ) , 'name' => new external_value ( PARAM_TEXT , 'The conversation name, if set' , VALUE_DEFAULT , null ) , 'subname' => new external_value ( PARAM_TEXT , 'A subtitle for the conversation name, if set' , VALUE_DEFAULT , null ) , 'imageurl' => new external_value ( PARAM_URL , 'A link to the conversation picture, if set' , VALUE_DEFAULT , null ) , 'type' => new external_value ( PARAM_INT , 'The type of the conversation (1=individual,2=group,3=self)' ) , 'membercount' => new external_value ( PARAM_INT , 'Total number of conversation members' ) , 'ismuted' => new external_value ( PARAM_BOOL , 'If the user muted this conversation' ) , 'isfavourite' => new external_value ( PARAM_BOOL , 'If the user marked this conversation as a favourite' ) , 'isread' => new external_value ( PARAM_BOOL , 'If the user has read all messages in the conversation' ) , 'unreadcount' => new external_value ( PARAM_INT , 'The number of unread messages in this conversation' , VALUE_DEFAULT , null ) , 'members' => new external_multiple_structure ( self :: get_conversation_member_structure ( ) ) , 'messages' => new external_multiple_structure ( self :: get_conversation_message_structure ( ) ) , ) ) ; }
docstring: Return the structure of a conversation.
  
  @return external_single_structure
  @since Moodle 3.6
docstring_tokens: Return the structure of a conversation .