|
1 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
|
2 /* This Source Code Form is subject to the terms of the Mozilla Public |
|
3 * License, v. 2.0. If a copy of the MPL was not distributed with this |
|
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
|
5 |
|
6 /* Copyright © 2013 Deutsche Telekom, Inc. */ |
|
7 |
|
8 [Constructor(octet tnf, optional Uint8Array type, optional Uint8Array id, optional Uint8Array payload)] |
|
9 interface MozNDEFRecord |
|
10 { |
|
11 /** |
|
12 * Type Name Field (3-bits) - Specifies the NDEF record type in general. |
|
13 * tnf_empty: 0x00 |
|
14 * tnf_well_known: 0x01 |
|
15 * tnf_mime_media: 0x02 |
|
16 * tnf_absolute_uri: 0x03 |
|
17 * tnf_external type: 0x04 |
|
18 * tnf_unknown: 0x05 |
|
19 * tnf_unchanged: 0x06 |
|
20 * tnf_reserved: 0x07 |
|
21 */ |
|
22 [Constant] |
|
23 readonly attribute octet tnf; |
|
24 |
|
25 /** |
|
26 * type - Describes the content of the payload. This can be a mime type. |
|
27 */ |
|
28 [Constant] |
|
29 readonly attribute Uint8Array? type; |
|
30 |
|
31 /** |
|
32 * id - Identifer is application dependent. |
|
33 */ |
|
34 [Constant] |
|
35 readonly attribute Uint8Array? id; |
|
36 |
|
37 /** |
|
38 * payload - Binary data blob. The meaning of this field is application |
|
39 * dependent. |
|
40 */ |
|
41 [Constant] |
|
42 readonly attribute Uint8Array? payload; |
|
43 }; |