-
Notifications
You must be signed in to change notification settings - Fork 0
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
f241f52
commit acac512
Showing
12 changed files
with
313 additions
and
89 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
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,7 @@ | ||
package santaspeen.vk.api.Exceptions; | ||
package santaspeen.vk.api.exceptions; | ||
|
||
|
||
public class VkApiError extends Exception{ | ||
public VkApiError(String error){ | ||
super(error); | ||
} | ||
public VkApiError(String error){super(error);} | ||
public VkApiError(Exception error){super(error);} | ||
} |
16 changes: 16 additions & 0 deletions
16
src/main/java/santaspeen/vk/api/features/VkAPIAccountTypes.java
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,16 @@ | ||
package santaspeen.vk.api.features; | ||
|
||
public enum VkAPIAccountTypes { | ||
USER("user"), | ||
GROUP("group"); | ||
|
||
private final String accountType; | ||
|
||
VkAPIAccountTypes(String type) { | ||
this.accountType = type; | ||
} | ||
|
||
public String getAccountType() { | ||
return accountType; | ||
} | ||
} |
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,19 @@ | ||
package santaspeen.vk.api.features; | ||
|
||
import java.lang.annotation.ElementType; | ||
import java.lang.annotation.Retention; | ||
import java.lang.annotation.RetentionPolicy; | ||
import java.lang.annotation.Target; | ||
|
||
|
||
@Retention(RetentionPolicy.RUNTIME) | ||
@Target(ElementType.METHOD) | ||
public @interface onVkMessage { | ||
|
||
String text(); | ||
int[] onlyBy() default {}; | ||
|
||
boolean startsWith() default false; | ||
boolean returnLongPoll() default false; | ||
|
||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
package santaspeen.vk.api; | ||
|
||
class utils { | ||
public class utils { | ||
|
||
public static long getLong(Object to){ | ||
try { | ||
|
Oops, something went wrong.