-
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.
2. Remove WebHook
- Loading branch information
Showing
26 changed files
with
351 additions
and
453 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
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
17 changes: 0 additions & 17 deletions
17
src/main/java/org/boticordjava/api/entity/webhooks/bump/bot/Bonus.java
This file was deleted.
Oops, something went wrong.
22 changes: 0 additions & 22 deletions
22
src/main/java/org/boticordjava/api/entity/webhooks/bump/bot/BotBump.java
This file was deleted.
Oops, something went wrong.
17 changes: 0 additions & 17 deletions
17
src/main/java/org/boticordjava/api/entity/webhooks/bump/bot/Data.java
This file was deleted.
Oops, something went wrong.
18 changes: 0 additions & 18 deletions
18
src/main/java/org/boticordjava/api/entity/webhooks/bump/server/ServerBump.java
This file was deleted.
Oops, something went wrong.
19 changes: 0 additions & 19 deletions
19
src/main/java/org/boticordjava/api/entity/webhooks/comment/BotComment.java
This file was deleted.
Oops, something went wrong.
26 changes: 0 additions & 26 deletions
26
src/main/java/org/boticordjava/api/entity/webhooks/comment/Comment.java
This file was deleted.
Oops, something went wrong.
25 changes: 0 additions & 25 deletions
25
src/main/java/org/boticordjava/api/entity/webhooks/comment/CommentAction.java
This file was deleted.
Oops, something went wrong.
27 changes: 0 additions & 27 deletions
27
src/main/java/org/boticordjava/api/entity/webhooks/comment/CommentData.java
This file was deleted.
Oops, something went wrong.
19 changes: 0 additions & 19 deletions
19
src/main/java/org/boticordjava/api/entity/webhooks/comment/Type.java
This file was deleted.
Oops, something went wrong.
20 changes: 0 additions & 20 deletions
20
src/main/java/org/boticordjava/api/entity/webhooks/comment/Vote.java
This file was deleted.
Oops, something went wrong.
22 changes: 22 additions & 0 deletions
22
src/main/java/org/boticordjava/api/entity/webhooks/notification/Notification.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,22 @@ | ||
package org.boticordjava.api.entity.webhooks.notification; | ||
|
||
import org.boticordjava.api.entity.webhooks.WebhookListener; | ||
|
||
public class Notification implements WebhookListener { | ||
|
||
private String event; | ||
private NotificationData data; | ||
|
||
public String getEvent() { | ||
return event; | ||
} | ||
|
||
public NotificationData getData() { | ||
return data; | ||
} | ||
|
||
@Override | ||
public String getType() { | ||
return data.getType(); | ||
} | ||
} |
38 changes: 38 additions & 0 deletions
38
src/main/java/org/boticordjava/api/entity/webhooks/notification/NotificationData.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,38 @@ | ||
package org.boticordjava.api.entity.webhooks.notification; | ||
|
||
import org.boticordjava.api.entity.webhooks.WebhookListener; | ||
|
||
public class NotificationData implements WebhookListener { | ||
|
||
private String type; | ||
private Payload payload; | ||
private String affected; | ||
private String id; | ||
private String user; | ||
private long happened; | ||
|
||
public Payload getPayload() { | ||
return payload; | ||
} | ||
|
||
public String getAffected() { | ||
return affected; | ||
} | ||
|
||
public String getId() { | ||
return id; | ||
} | ||
|
||
public String getUser() { | ||
return user; | ||
} | ||
|
||
public long getHappened() { | ||
return happened; | ||
} | ||
|
||
@Override | ||
public String getType() { | ||
return type; | ||
} | ||
} |
Oops, something went wrong.