File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed
library/src/main/java/com/pengrad/telegrambot/request/business Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change
1
+ package com.pengrad.telegrambot.request.business
2
+
3
+ import com.pengrad.telegrambot.request.KBaseRequest
4
+ import com.pengrad.telegrambot.response.BaseResponse
5
+ import com.pengrad.telegrambot.utility.kotlin.optionalRequestParameter
6
+ import com.pengrad.telegrambot.utility.kotlin.requestParameter
7
+
8
+ @Suppress(" unused" )
9
+ class SetBusinessAccountUsername private constructor(
10
+ businessConnectionId : String ,
11
+ username : String?
12
+ ): KBaseRequest<SetBusinessAccountUsername, BaseResponse>(BaseResponse : :class) {
13
+
14
+ constructor (businessConnectionId: String ) : this (
15
+ businessConnectionId = businessConnectionId,
16
+ username = null
17
+ )
18
+
19
+ val businessConnectionId: String by requestParameter(businessConnectionId, customParameterName = " business_connection_id" )
20
+
21
+ var username: String? by optionalRequestParameter(username, customParameterName = " username" )
22
+ fun username (username : String ) = applySelf { this .username = username }
23
+
24
+ }
You can’t perform that action at this time.
0 commit comments