michael@0: /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: /* Copyright © 2013 Deutsche Telekom, Inc. */ michael@0: michael@0: [Constructor(octet tnf, optional Uint8Array type, optional Uint8Array id, optional Uint8Array payload)] michael@0: interface MozNDEFRecord michael@0: { michael@0: /** michael@0: * Type Name Field (3-bits) - Specifies the NDEF record type in general. michael@0: * tnf_empty: 0x00 michael@0: * tnf_well_known: 0x01 michael@0: * tnf_mime_media: 0x02 michael@0: * tnf_absolute_uri: 0x03 michael@0: * tnf_external type: 0x04 michael@0: * tnf_unknown: 0x05 michael@0: * tnf_unchanged: 0x06 michael@0: * tnf_reserved: 0x07 michael@0: */ michael@0: [Constant] michael@0: readonly attribute octet tnf; michael@0: michael@0: /** michael@0: * type - Describes the content of the payload. This can be a mime type. michael@0: */ michael@0: [Constant] michael@0: readonly attribute Uint8Array? type; michael@0: michael@0: /** michael@0: * id - Identifer is application dependent. michael@0: */ michael@0: [Constant] michael@0: readonly attribute Uint8Array? id; michael@0: michael@0: /** michael@0: * payload - Binary data blob. The meaning of this field is application michael@0: * dependent. michael@0: */ michael@0: [Constant] michael@0: readonly attribute Uint8Array? payload; michael@0: };