
## ThreadedCommentAuthorCollection class

Represents all persons.

```javascript
class ThreadedCommentAuthorCollection implements Iterable<ThreadedCommentAuthor>;
```


## Constructors

| Constructor | Description |
| --- | --- |
| [constructor()](#constructor--)| Default Constructor. |

## Properties

| Property | Type | Description |
| --- | --- | --- |
| [currentPerson](#currentPerson--)| ThreadedCommentAuthor | Gets and sets the current user. |

## Methods

| Method | Description |
| --- | --- |
| [get(number)](#get-number-)| Gets the person who create threaded comments. |
| [get(string)](#get-string-)| Gets the person who create threaded comments. |
| [getCurrentPerson()](#getCurrentPerson--)| <b>@deprecated.</b> Please use the 'currentPerson' property instead. Gets and sets the current user. |
| [setCurrentPerson(ThreadedCommentAuthor)](#setCurrentPerson-threadedcommentauthor-)| <b>@deprecated.</b> Please use the 'currentPerson' property instead. Gets and sets the current user. |
| [indexOf(ThreadedCommentAuthor)](#indexOf-threadedcommentauthor-)| Gets the index of ThreadedCommentAuthor object |
| [add(string, string, string)](#add-string-string-string-)| Adds one thread comment person. |
| [getCount()](#getCount--)| <b>@deprecated.</b> Please use the 'count' property instead. Gets the number of elements contained in. |
| [isNull()](#isNull--)| Checks whether the implementation object is null. |

## \[Symbol.iterator\](): Iterator\<ThreadedCommentAuthor\>

Returns an iterator over the items in the collection. Enables use of `for...of`, spread syntax, and `Array.from()`.



### constructor() {#constructor--}

Default Constructor.

```javascript
constructor();
```


### currentPerson {#currentPerson--}

Gets and sets the current user.

```javascript
currentPerson : ThreadedCommentAuthor;
```


### get(number) {#get-number-}

Gets the person who create threaded comments.

```javascript
get(index: number) : ThreadedCommentAuthor;
```

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| index | number | The index |

**Returns**

[ThreadedCommentAuthor](../threadedcommentauthor/)

### get(string) {#get-string-}

Gets the person who create threaded comments.

```javascript
get(name: string) : ThreadedCommentAuthor;
```

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| name | string | The name of the author. |

**Returns**

[ThreadedCommentAuthor](../threadedcommentauthor/)

### getCurrentPerson() {#getCurrentPerson--}

<b>@deprecated.</b> Please use the 'currentPerson' property instead. Gets and sets the current user.

```javascript
getCurrentPerson() : ThreadedCommentAuthor;
```


**Returns**

[ThreadedCommentAuthor](../threadedcommentauthor/)

### setCurrentPerson(ThreadedCommentAuthor) {#setCurrentPerson-threadedcommentauthor-}

<b>@deprecated.</b> Please use the 'currentPerson' property instead. Gets and sets the current user.

```javascript
setCurrentPerson(value: ThreadedCommentAuthor) : void;
```

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | [ThreadedCommentAuthor](../threadedcommentauthor/) | The value to set. |

### indexOf(ThreadedCommentAuthor) {#indexOf-threadedcommentauthor-}

Gets the index of ThreadedCommentAuthor object

```javascript
indexOf(author: ThreadedCommentAuthor) : number;
```

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| author | [ThreadedCommentAuthor](../threadedcommentauthor/) | The ThreadedCommentAuthor object |

**Returns**

The index in the ThreadedCommentAuthor collection

### add(string, string, string) {#add-string-string-string-}

Adds one thread comment person.

```javascript
add(name: string, userId: string, providerId: string) : number;
```

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| name | string | The name of the person. |
| userId | string |  |
| providerId | string | The id of the provider |

### getCount() {#getCount--}

<b>@deprecated.</b> Please use the 'count' property instead. Gets the number of elements contained in.

```javascript
getCount() : number;
```


### isNull() {#isNull--}

Checks whether the implementation object is null.

```javascript
isNull() : boolean;
```



