-
Notifications
You must be signed in to change notification settings - Fork 8
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
b880043
commit 1870954
Showing
5 changed files
with
88 additions
and
5 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 |
---|---|---|
@@ -0,0 +1,60 @@ | ||
package com.javadiscord.jdi; | ||
|
||
public class RateLimit { | ||
private String bucket; | ||
private int limit; | ||
private int remaining; | ||
private long reset; | ||
private int resetAfter; | ||
private boolean globalRateLimit; | ||
|
||
public RateLimit() {} | ||
|
||
public String getBucket() { | ||
return bucket; | ||
} | ||
|
||
public void setBucket(String bucket) { | ||
this.bucket = bucket; | ||
} | ||
|
||
public int getLimit() { | ||
return limit; | ||
} | ||
|
||
public void setLimit(int limit) { | ||
this.limit = limit; | ||
} | ||
|
||
public int getRemaining() { | ||
return remaining; | ||
} | ||
|
||
public void setRemaining(int remaining) { | ||
this.remaining = remaining; | ||
} | ||
|
||
public long getReset() { | ||
return reset; | ||
} | ||
|
||
public void setReset(long reset) { | ||
this.reset = reset; | ||
} | ||
|
||
public int getResetAfter() { | ||
return resetAfter; | ||
} | ||
|
||
public void setResetAfter(int resetAfter) { | ||
this.resetAfter = resetAfter; | ||
} | ||
|
||
public boolean isGlobalRateLimit() { | ||
return globalRateLimit; | ||
} | ||
|
||
public void setGlobalRateLimit(boolean globalRateLimit) { | ||
this.globalRateLimit = globalRateLimit; | ||
} | ||
} |
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
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