# SMusicDirectory

**الأعضاء** 4

|      |                                 |   |
| ---- | ------------------------------- | - |
| دالة | [GetTop100](#gettop100)         | – |
| دالة | [GetGenreList](#getgenrelist)   | – |
| دالة | [SearchByGenre](#searchbygenre) | – |
| دالة | [SearchByText](#searchbytext)   | – |

## الدوال

### GetTop100

void GetTop100(Closure onLoad)

المعاملات

| الاسم  | النوع   | القيمة الافتراضية |
| ------ | ------- | ----------------- |
| onLoad | Closure | –                 |

القيم المرجعة

`void`

مثال

**Lua**

```lua
example 1

```

**Lua**

```lua
example 2

```

### GetGenreList

void GetGenreList(Closure onLoad, int parentId = 0)

المعاملات

| الاسم    | النوع   | القيمة الافتراضية |
| -------- | ------- | ----------------- |
| onLoad   | Closure | –                 |
| parentId | int     | 0                 |

القيم المرجعة

`void`

مثال

**Lua**

```lua
example 1

```

**Lua**

```lua
example 2

```

### SearchByGenre

void SearchByGenre([SGenre](/docs/ar/scripting/client-scripting-api-reference/types/sgenre.md) genre, Closure onLoad)

المعاملات

| الاسم  | النوع                                                                       | القيمة الافتراضية |
| ------ | --------------------------------------------------------------------------- | ----------------- |
| genre  | [SGenre](/docs/ar/scripting/client-scripting-api-reference/types/sgenre.md) | –                 |
| onLoad | Closure                                                                     | –                 |

القيم المرجعة

`void`

مثال

**Lua**

```lua
example 1

```

**Lua**

```lua
example 2

```

### SearchByText

void SearchByText(string search, Closure onLoad)

المعاملات

| الاسم  | النوع   | القيمة الافتراضية |
| ------ | ------- | ----------------- |
| search | string  | –                 |
| onLoad | Closure | –                 |

القيم المرجعة

`void`

مثال

**Lua**

```lua
example 1

```

**Lua**

```lua
example 2

```
