# PermissionsResult

# PermissionsResult


```
class PermissionsResult
```

<br />

*** ** * ** ***

The result of a request for home permissions.

## Summary

| ### Public constructors |
|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/PermissionsResult#PermissionsResult(com.google.home.PermissionsResultStatus,kotlin.String,kotlin.String)( status: https://developers.home.google.com/reference/kotlin/com/google/home/PermissionsResultStatus, errorMessage: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html?, serverAuthCode: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html? )` |

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html?` | `https://developers.home.google.com/reference/kotlin/com/google/home/PermissionsResult#errorMessage()` the error message if the permissions request resulted in an error. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html?` | `https://developers.home.google.com/reference/kotlin/com/google/home/PermissionsResult#serverAuthCode()` The authorization code that can be exchanged by the application's server for an access token and refresh token. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/PermissionsResultStatus` | `https://developers.home.google.com/reference/kotlin/com/google/home/PermissionsResult#status()` the result of the permissions request. |

## Public constructors

### PermissionsResult

```
PermissionsResult(
    status: PermissionsResultStatus,
    errorMessage: String? = null,
    serverAuthCode: String? = null
)
```

## Public properties

### errorMessage

```
val errorMessage: String?
```

the error message if the permissions request resulted in an error.

### serverAuthCode

```
val serverAuthCode: String?
```

The authorization code that can be exchanged by the application's server for an access token and refresh token. This is only populated if offline access was requested by providing a serverClientId in `https://developers.home.google.com/reference/kotlin/com/google/home/HomeConfig`.

### status

```
val status: PermissionsResultStatus
```

the result of the permissions request.