-
-
Notifications
You must be signed in to change notification settings - Fork 6
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
cubewhy
committed
Jan 7, 2024
1 parent
c28b312
commit df3f09b
Showing
4 changed files
with
53 additions
and
1 deletion.
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
27 changes: 27 additions & 0 deletions
27
src/main/java/org/cubewhy/celestial/event/impl/FileDownloadEvent.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,27 @@ | ||
/* | ||
* Celestial Launcher <me@lunarclient.top> | ||
* License under GPLv3 | ||
* Do NOT remove this note if you want to copy this file. | ||
*/ | ||
|
||
package org.cubewhy.celestial.event.impl; | ||
|
||
import org.cubewhy.celestial.event.Event; | ||
|
||
import java.io.File; | ||
|
||
public class FileDownloadEvent extends Event { | ||
|
||
public final File file; | ||
public final Type type; | ||
|
||
public enum Type { | ||
START, | ||
SUCCESS, FALURE; | ||
} | ||
|
||
public FileDownloadEvent(File file, Type type) { | ||
this.file = file; | ||
this.type = type; | ||
} | ||
} |
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