1
0
mirror of https://github.com/ErnyTech/TLScheme2Json synced 2024-06-15 17:40:15 +02:00
TLScheme2Json/dscheme/dscheme.d

22 lines
431 B
D
Raw Normal View History

module dscheme;
import tlscheme2json;
class DScheme {
private static TLClass[] tlClasses;
static this() {
import asdf : deserialize;
auto parser = new TLScheme2Json();
parser.parse;
auto jsonScheme = parser.toJson;
auto tljson = deserialize!TLJson(jsonScheme);
this.tlClasses = tljson.tl_classes;
}
static TLClass get() {
return this.tlClasses;
}
}