mirror of
https://github.com/inthehand/32feet.git
synced 2026-10-23 17:38:30 +08:00
29 lines
658 B
C#
29 lines
658 B
C#
// 32feet.NET - Personal Area Networking for .NET
|
|
//
|
|
// InTheHand.Nfc.NdefMessage
|
|
//
|
|
// Copyright (c) 2020 In The Hand Ltd, All rights reserved.
|
|
// This source code is licensed under the MIT License
|
|
|
|
using System.Collections.Generic;
|
|
|
|
namespace InTheHand.Nfc
|
|
{
|
|
public class NdefMessage
|
|
{
|
|
private readonly List<NdefRecord> _records = new List<NdefRecord>();
|
|
|
|
public IReadOnlyCollection<NdefRecord> Records
|
|
{
|
|
get
|
|
{
|
|
return _records.AsReadOnly();
|
|
}
|
|
}
|
|
|
|
internal void AddRecord(NdefRecord record)
|
|
{
|
|
_records.Add(record);
|
|
}
|
|
}
|
|
} |