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