forked from Qortal/qortal
Added various new service types, in preparation for Q-Apps release.
This commit is contained in:
parent
16dc23ddc7
commit
33aeec7e87
22
Q-Apps.md
22
Q-Apps.md
@ -46,6 +46,8 @@ IMAGE,
|
||||
THUMBNAIL,
|
||||
VIDEO,
|
||||
AUDIO,
|
||||
PODCAST,
|
||||
VOICE,
|
||||
ARBITRARY_DATA,
|
||||
JSON,
|
||||
DOCUMENT,
|
||||
@ -55,7 +57,25 @@ METADATA,
|
||||
BLOG,
|
||||
BLOG_POST,
|
||||
BLOG_COMMENT,
|
||||
GIF_REPOSITORY
|
||||
GIF_REPOSITORY,
|
||||
ATTACHMENT,
|
||||
FILE,
|
||||
FILES,
|
||||
CHAIN_DATA,
|
||||
STORE,
|
||||
PRODUCT,
|
||||
OFFER,
|
||||
COUPON,
|
||||
CODE,
|
||||
PLUGIN,
|
||||
EXTENSION,
|
||||
GAME,
|
||||
ITEM,
|
||||
NFT,
|
||||
DATABASE,
|
||||
SNAPSHOT,
|
||||
COMMENT,
|
||||
CHAIN_COMMENT,
|
||||
WEBSITE,
|
||||
APP,
|
||||
QCHAT_ATTACHMENT,
|
||||
|
@ -47,6 +47,10 @@ public enum Service {
|
||||
return ValidationResult.OK;
|
||||
}
|
||||
},
|
||||
ATTACHMENT(130, false, null, true, null),
|
||||
FILE(140, false, null, true, null),
|
||||
FILES(150, false, null, false, null),
|
||||
CHAIN_DATA(160, false, 239L, true, null),
|
||||
WEBSITE(200, true, null, false, null) {
|
||||
@Override
|
||||
public ValidationResult validate(Path path) throws IOException {
|
||||
@ -75,11 +79,13 @@ public enum Service {
|
||||
QCHAT_IMAGE(420, true, 500*1024L, true, null),
|
||||
VIDEO(500, false, null, true, null),
|
||||
AUDIO(600, false, null, true, null),
|
||||
PODCAST(610, false, null, true, null),
|
||||
QCHAT_AUDIO(610, true, 10*1024*1024L, true, null),
|
||||
QCHAT_VOICE(620, true, 10*1024*1024L, true, null),
|
||||
VOICE(630, true, 10*1024*1024L, true, null),
|
||||
BLOG(700, false, null, false, null),
|
||||
BLOG_POST(777, false, null, true, null),
|
||||
BLOG_COMMENT(778, false, null, true, null),
|
||||
BLOG_COMMENT(778, false, 500*1024L, true, null),
|
||||
DOCUMENT(800, false, null, true, null),
|
||||
LIST(900, true, null, true, null),
|
||||
PLAYLIST(910, true, null, true, null),
|
||||
@ -139,7 +145,21 @@ public enum Service {
|
||||
}
|
||||
return ValidationResult.OK;
|
||||
}
|
||||
};
|
||||
},
|
||||
STORE(1200, false, null, true, null),
|
||||
PRODUCT(1210, false, null, true, null),
|
||||
OFFER(1230, false, null, true, null),
|
||||
COUPON(1240, false, null, true, null),
|
||||
CODE(1300, false, null, true, null),
|
||||
PLUGIN(1310, false, null, true, null),
|
||||
EXTENSION(1320, false, null, true, null),
|
||||
GAME(1400, false, null, false, null),
|
||||
ITEM(1410, false, null, true, null),
|
||||
NFT(1500, false, null, true, null),
|
||||
DATABASE(1600, false, null, false, null),
|
||||
SNAPSHOT(1610, false, null, false, null),
|
||||
COMMENT(1700, false, 500*1024L, true, null),
|
||||
CHAIN_COMMENT(1710, false, 239L, true, null);
|
||||
|
||||
public final int value;
|
||||
private final boolean requiresValidation;
|
||||
|
Loading…
Reference in New Issue
Block a user