@@ -41,27 +41,27 @@ open class APIMethods(val authSession: AuthSession) {
4141 }
4242 }
4343
44- inline fun <reified T > get (path : String , queryParams : Values = mapOf(), body : Any? = null): SDKResponse {
44+ inline fun <reified T : Any > get (path : String , queryParams : Values = mapOf(), body : Any? = null): SDKResponse {
4545 return authSession.transport.request<T >(HttpMethod .GET , path, queryParams, body, authRequest)
4646 }
4747
48- inline fun <reified T > head (path : String , queryParams : Values = mapOf(), body : Any? = null): SDKResponse {
48+ inline fun <reified T : Any > head (path : String , queryParams : Values = mapOf(), body : Any? = null): SDKResponse {
4949 return authSession.transport.request<T >(HttpMethod .HEAD , path, queryParams, body, authRequest)
5050 }
5151
52- inline fun <reified T > delete (path : String , queryParams : Values = mapOf(), body : Any? = null): SDKResponse {
52+ inline fun <reified T : Any > delete (path : String , queryParams : Values = mapOf(), body : Any? = null): SDKResponse {
5353 return authSession.transport.request<T >(HttpMethod .DELETE , path, queryParams, body, authRequest)
5454 }
5555
56- inline fun <reified T > post (path : String , queryParams : Values = mapOf(), body : Any? = null): SDKResponse {
56+ inline fun <reified T : Any > post (path : String , queryParams : Values = mapOf(), body : Any? = null): SDKResponse {
5757 return authSession.transport.request<T >(HttpMethod .POST , path, queryParams, body, authRequest)
5858 }
5959
60- inline fun <reified T > put (path : String , queryParams : Values = mapOf(), body : Any? = null): SDKResponse {
60+ inline fun <reified T : Any > put (path : String , queryParams : Values = mapOf(), body : Any? = null): SDKResponse {
6161 return authSession.transport.request<T >(HttpMethod .PUT , path, queryParams, body, authRequest)
6262 }
6363
64- inline fun <reified T > patch (path : String , queryParams : Values = mapOf(), body : Any? = null): SDKResponse {
64+ inline fun <reified T : Any > patch (path : String , queryParams : Values = mapOf(), body : Any? = null): SDKResponse {
6565 return authSession.transport.request<T >(HttpMethod .PATCH , path, queryParams, body, authRequest)
6666 }
6767
0 commit comments