-
-
Notifications
You must be signed in to change notification settings - Fork 375
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #373 from pengrad/kotlin-support
Add Kotlin
- Loading branch information
Showing
37 changed files
with
271 additions
and
465 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,4 +20,4 @@ jobs: | |
cache: 'gradle' | ||
|
||
- name: Gradle PR Test | ||
run: ./gradlew clean prTest | ||
run: ./gradlew clean check -PprTest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
103 changes: 0 additions & 103 deletions
103
library/src/main/java/com/pengrad/telegrambot/model/Audio.java
This file was deleted.
Oops, something went wrong.
17 changes: 17 additions & 0 deletions
17
library/src/main/java/com/pengrad/telegrambot/model/Audio.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package com.pengrad.telegrambot.model | ||
|
||
/** | ||
* stas | ||
* 8/5/15. | ||
*/ | ||
data class Audio( | ||
@get:JvmName("fileId") val fileId: String? = null, | ||
@get:JvmName("fileUniqueId") val fileUniqueId: String? = null, | ||
@get:JvmName("duration") val duration: Int? = null, | ||
@get:JvmName("performer") val performer: String? = null, | ||
@get:JvmName("title") val title: String? = null, | ||
@get:JvmName("fileName") val fileName: String? = null, | ||
@get:JvmName("mimeType") val mimeType: String? = null, | ||
@get:JvmName("fileSize") val fileSize: Long? = null, | ||
@get:JvmName("thumbnail") val thumbnail: PhotoSize? = null, | ||
) |
10 changes: 0 additions & 10 deletions
10
library/src/main/java/com/pengrad/telegrambot/model/botcommandscope/BotCommandScope.java
This file was deleted.
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
library/src/main/java/com/pengrad/telegrambot/model/botcommandscope/BotCommandScope.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
package com.pengrad.telegrambot.model.botcommandscope | ||
|
||
open class BotCommandScope(val type: String) |
8 changes: 0 additions & 8 deletions
8
...a/com/pengrad/telegrambot/model/botcommandscope/BotCommandScopeAllChatAdministrators.java
This file was deleted.
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
...ava/com/pengrad/telegrambot/model/botcommandscope/BotCommandScopeAllChatAdministrators.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
package com.pengrad.telegrambot.model.botcommandscope | ||
|
||
class BotCommandScopeAllChatAdministrators : BotCommandScope(type = "all_chat_administrators") |
8 changes: 0 additions & 8 deletions
8
...main/java/com/pengrad/telegrambot/model/botcommandscope/BotCommandScopeAllGroupChats.java
This file was deleted.
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
...c/main/java/com/pengrad/telegrambot/model/botcommandscope/BotCommandScopeAllGroupChats.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
package com.pengrad.telegrambot.model.botcommandscope | ||
|
||
class BotCommandScopeAllGroupChats : BotCommandScope(type = "all_group_chats") |
8 changes: 0 additions & 8 deletions
8
...in/java/com/pengrad/telegrambot/model/botcommandscope/BotCommandScopeAllPrivateChats.java
This file was deleted.
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
...main/java/com/pengrad/telegrambot/model/botcommandscope/BotCommandScopeAllPrivateChats.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
package com.pengrad.telegrambot.model.botcommandscope | ||
|
||
class BotCommandScopeAllPrivateChats : BotCommandScope(type = "all_private_chats") |
9 changes: 0 additions & 9 deletions
9
...y/src/main/java/com/pengrad/telegrambot/model/botcommandscope/BotCommandScopeDefault.java
This file was deleted.
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
...ary/src/main/java/com/pengrad/telegrambot/model/botcommandscope/BotCommandScopeDefault.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
package com.pengrad.telegrambot.model.botcommandscope | ||
|
||
class BotCommandScopeDefault : BotCommandScope(type = "default") |
16 changes: 0 additions & 16 deletions
16
...ary/src/main/java/com/pengrad/telegrambot/model/botcommandscope/BotCommandsScopeChat.java
This file was deleted.
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
library/src/main/java/com/pengrad/telegrambot/model/botcommandscope/BotCommandsScopeChat.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
package com.pengrad.telegrambot.model.botcommandscope | ||
|
||
class BotCommandsScopeChat(val chatId: Any) : BotCommandScope(type = "chat") |
16 changes: 0 additions & 16 deletions
16
...ava/com/pengrad/telegrambot/model/botcommandscope/BotCommandsScopeChatAdministrators.java
This file was deleted.
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
.../java/com/pengrad/telegrambot/model/botcommandscope/BotCommandsScopeChatAdministrators.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
package com.pengrad.telegrambot.model.botcommandscope | ||
|
||
class BotCommandsScopeChatAdministrators(val chatId: Any) : BotCommandScope(type = "chat_administrators") |
19 changes: 0 additions & 19 deletions
19
...c/main/java/com/pengrad/telegrambot/model/botcommandscope/BotCommandsScopeChatMember.java
This file was deleted.
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
...src/main/java/com/pengrad/telegrambot/model/botcommandscope/BotCommandsScopeChatMember.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
package com.pengrad.telegrambot.model.botcommandscope | ||
|
||
class BotCommandsScopeChatMember(val chatId: Any, val userId: Long) : BotCommandScope(type = "chat_member") |
11 changes: 0 additions & 11 deletions
11
library/src/main/java/com/pengrad/telegrambot/model/request/CallbackGame.java
This file was deleted.
Oops, something went wrong.
9 changes: 9 additions & 0 deletions
9
library/src/main/java/com/pengrad/telegrambot/model/request/CallbackGame.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package com.pengrad.telegrambot.model.request | ||
|
||
/** | ||
* Stas Parshin | ||
* 04 June 2019 | ||
*/ | ||
object CallbackGame | ||
|
||
|
5 changes: 3 additions & 2 deletions
5
...telegrambot/model/request/ChatAction.java → ...d/telegrambot/model/request/ChatAction.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 0 additions & 33 deletions
33
library/src/main/java/com/pengrad/telegrambot/model/request/ForceReply.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.