1 module libwasm.bindings.DecoderDoctorNotification;
2 
3 import libwasm.types;
4 
5 import memutils.ct: tuple;
6 @safe:
7 nothrow:
8 
9 struct DecoderDoctorNotification {
10   nothrow:
11   JsHandle handle;
12   alias handle this;
13   this(Handle h) {
14     this.handle = JsHandle(h);
15   }
16   static auto create() {
17     return DecoderDoctorNotification(libwasm_add__object());
18   }
19   void type()(DecoderDoctorNotificationType type) {
20     Object_Call_int__void(this.handle, "type", type);
21   }
22   DecoderDoctorNotificationType type()() {
23     return Object_Getter__int(this.handle, "type");
24   }
25   void isSolved()(bool isSolved) {
26     Object_Call_bool__void(this.handle, "isSolved", isSolved);
27   }
28   bool isSolved()() {
29     return Object_Getter__bool(this.handle, "isSolved");
30   }
31   void decoderDoctorReportId()(string decoderDoctorReportId) {
32     Object_Call_string__void(this.handle, "decoderDoctorReportId", decoderDoctorReportId);
33   }
34   string decoderDoctorReportId()() {
35     return Object_Getter__string(this.handle, "decoderDoctorReportId");
36   }
37   void formats()(string formats) {
38     Object_Call_string__void(this.handle, "formats", formats);
39   }
40   string formats()() {
41     return Object_Getter__string(this.handle, "formats");
42   }
43   void decodeIssue()(string decodeIssue) {
44     Object_Call_string__void(this.handle, "decodeIssue", decodeIssue);
45   }
46   string decodeIssue()() {
47     return Object_Getter__string(this.handle, "decodeIssue");
48   }
49   void docURL()(string docURL) {
50     Object_Call_string__void(this.handle, "docURL", docURL);
51   }
52   string docURL()() {
53     return Object_Getter__string(this.handle, "docURL");
54   }
55   void resourceURL()(string resourceURL) {
56     Object_Call_string__void(this.handle, "resourceURL", resourceURL);
57   }
58   string resourceURL()() {
59     return Object_Getter__string(this.handle, "resourceURL");
60   }
61 }
62 enum DecoderDoctorNotificationType {
63   cannot_play,
64   platform_decoder_not_found,
65   can_play_but_some_missing_decoders,
66   cannot_initialize_pulseaudio,
67   unsupported_libavcodec,
68   decode_error,
69   decode_warning
70 }
71 
72