Skip to content

Commit

Permalink
Add getter for object type
Browse files Browse the repository at this point in the history
  • Loading branch information
mrashed-dev committed Nov 17, 2023
1 parent 78fd04d commit fd3dedb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main/kotlin/com/nylas/models/GetFreeBusyResponse.kt
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,12 @@ sealed class GetFreeBusyResponse {
override val email: String,
) : GetFreeBusyResponse()

/**
* Returns the type of object.
* @return The type of object.
*/
fun getObject() = obj

companion object {
/**
* A JsonAdapter factory for the [GetFreeBusyResponse] sealed class (used for deserialization).
Expand Down

0 comments on commit fd3dedb

Please sign in to comment.