-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ещё одна подсказка для закрытых групп
- Loading branch information
1 parent
43c728d
commit 0e34776
Showing
8 changed files
with
72 additions
and
48 deletions.
There are no files selected for viewing
5 changes: 5 additions & 0 deletions
5
...main/java/ru/spliterash/vkVideoUnlocker/common/exceptions/ReUploadRestrictionException.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,5 @@ | ||
package ru.spliterash.vkVideoUnlocker.common.exceptions | ||
|
||
interface ReUploadRestrictionException : AlwaysNotifyException { | ||
val restrictionName: String | ||
} |
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
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
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
5 changes: 4 additions & 1 deletion
5
...main/java/ru/spliterash/vkVideoUnlocker/video/exceptions/PrivateVideoDisabledException.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 |
---|---|---|
@@ -1,8 +1,11 @@ | ||
package ru.spliterash.vkVideoUnlocker.video.exceptions | ||
|
||
import ru.spliterash.vkVideoUnlocker.common.exceptions.ReUploadRestrictionException | ||
import ru.spliterash.vkVideoUnlocker.common.exceptions.VkUnlockerException | ||
import ru.spliterash.vkVideoUnlocker.longpoll.message.RootMessage | ||
|
||
class PrivateVideoDisabledException : VkUnlockerException() { | ||
class PrivateVideoDisabledException : VkUnlockerException(), ReUploadRestrictionException { | ||
override fun messageForUser(source: RootMessage?) = "Видео из закрытых групп временно отключены" | ||
override val restrictionName: String | ||
get() = "закрытая группа" | ||
} |
5 changes: 4 additions & 1 deletion
5
src/main/java/ru/spliterash/vkVideoUnlocker/video/exceptions/VideoTooLongException.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 |
---|---|---|
@@ -1,8 +1,11 @@ | ||
package ru.spliterash.vkVideoUnlocker.video.exceptions | ||
|
||
import ru.spliterash.vkVideoUnlocker.common.exceptions.ReUploadRestrictionException | ||
import ru.spliterash.vkVideoUnlocker.common.exceptions.VkUnlockerException | ||
import ru.spliterash.vkVideoUnlocker.longpoll.message.RootMessage | ||
|
||
class VideoTooLongException : VkUnlockerException() { | ||
class VideoTooLongException : VkUnlockerException(), ReUploadRestrictionException { | ||
override fun messageForUser(source: RootMessage?) = "Извини, но я не перезаливаю видео длинее 5 минут" | ||
override val restrictionName: String | ||
get() = "слишком длинное" | ||
} |
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
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