diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..4479ccd
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+src/ndefpclib/obj/
diff --git a/import/NFC.xaml b/import/NFC.xaml
deleted file mode 100644
index 9f7e46c..0000000
--- a/import/NFC.xaml
+++ /dev/null
@@ -1,44 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/import/NFC.xaml.cs b/import/NFC.xaml.cs
deleted file mode 100644
index 463f2f1..0000000
--- a/import/NFC.xaml.cs
+++ /dev/null
@@ -1,127 +0,0 @@
-//-----------------------------------------------------------------------
-//
-// Company copyright tag.
-//
-// stubbfel
-// 08.08.2013
-//----------------------------------------------------------------------
-
-namespace CampusAppWP8.Pages.Dev
-{
- using System;
- using System.Collections.Generic;
- using System.Runtime.InteropServices.WindowsRuntime;
- using System.Windows;
- using System.Windows.Navigation;
- using CampusAppWP8.Model.Campusmap;
- using CampusAppWP8.Model.GeoDb;
- using CampusAppWP8.Utility.NDEF;
- using Microsoft.Phone.Controls;
- using Windows.Networking.Proximity;
-
- /// Nfc page.
- /// Stubbfel, 22.08.2013.
- public partial class NFC : PhoneApplicationPage
- {
- /// The device.
- private readonly ProximityDevice device = ProximityDevice.GetDefault();
-
- /// Zero-based index of the act ndef.
- private int actNDEFIndex;
-
- /// List of ndefs.
- private List ndefList;
-
- /// Initializes a new instance of the NFC class.
- /// Stubbfel, 22.08.2013.
- public NFC()
- {
- this.InitializeComponent();
- this.ndefList = new List();
- MapModel map = new CBMainMapModel();
- foreach (PlaceModel place in map.Spatial.Places)
- {
- this.ndefList.Add(new NDEFMessage(place.ToNfcString(), NDEFMessage.TYPEVAL.TEXT));
- }
-
- this.actNDEFIndex = 0;
- }
-
- /// Override the OnNavigatedTo method.
- /// Stubbfel, 22.08.2013.
- /// Arguments of navigation.
- protected override void OnNavigatedTo(NavigationEventArgs e)
- {
- base.OnNavigatedTo(e);
- this.Writecontent.Text = this.ndefList[this.actNDEFIndex].GetContent();
- }
-
- /// Handler, called when the publish.
- /// Stubbfel, 22.08.2013.
- /// The sender.
- /// Identifier for the message.
- private void PublishHandler(ProximityDevice sender, long messageId)
- {
- this.device.StopPublishingMessage(messageId);
- this.Dispatcher.BeginInvoke(new Action(() => MessageBox.Show("Writed:" + this.actNDEFIndex)));
- }
-
- /// Handler, called when the ndef.
- /// Stubbfel, 22.08.2013.
- /// The sender.
- /// The message.
- private void NDEFHandler(ProximityDevice sender, ProximityMessage message)
- {
- this.device.StopSubscribingForMessage(message.SubscriptionId);
- var ndefMessage = message.Data;
- byte[] testa = ndefMessage.ToArray();
-
- NDEFMessage ndef = new NDEFMessage(testa);
- this.Dispatcher.BeginInvoke(new Action(() => MessageBox.Show(ndef.GetContent())));
- }
-
- /// Event handler. Called by Read for click events.
- /// Stubbfel, 22.08.2013.
- /// The sender.
- /// Routed event information.
- private void Read_Click(object sender, RoutedEventArgs e)
- {
- this.device.SubscribeForMessage("NDEF", this.NDEFHandler);
- }
-
- /// Event handler. Called by Next for click events.
- /// Stubbfel, 22.08.2013.
- /// The sender.
- /// Routed event information.
- private void Next_Click(object sender, RoutedEventArgs e)
- {
- if (this.actNDEFIndex < this.ndefList.Count - 1)
- {
- this.actNDEFIndex++;
- this.Writecontent.Text = this.ndefList[this.actNDEFIndex].GetContent();
- }
- }
-
- /// Event handler. Called by Prev for click events.
- /// Stubbfel, 22.08.2013.
- /// The sender.
- /// Routed event information.
- private void Prev_Click(object sender, RoutedEventArgs e)
- {
- if (this.actNDEFIndex > 0)
- {
- this.actNDEFIndex--;
- this.Writecontent.Text = this.ndefList[this.actNDEFIndex].GetContent();
- }
- }
-
- /// Event handler. Called by Write for click events.
- /// Stubbfel, 22.08.2013.
- /// The sender.
- /// Routed event information.
- private void Write_Click(object sender, RoutedEventArgs e)
- {
- this.device.PublishBinaryMessage("NDEF:WriteTag", this.ndefList[this.actNDEFIndex].ToByteArray().AsBuffer(), this.PublishHandler);
- }
- }
-}
\ No newline at end of file
diff --git a/src/ndefpclib/Properties/AssemblyInfo.cs b/src/ndefpclib/Properties/AssemblyInfo.cs
new file mode 100644
index 0000000..af44b6b
--- /dev/null
+++ b/src/ndefpclib/Properties/AssemblyInfo.cs
@@ -0,0 +1,30 @@
+using System.Resources;
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+// Allgemeine Informationen über eine Assembly werden über folgende
+// Attribute gesteuert. Ändern Sie diese Attributwerte, um die Informationen zu ändern,
+// die einer Assembly zugeordnet sind.
+[assembly: AssemblyTitle("ndefpclib")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyProduct("ndefpclib")]
+[assembly: AssemblyCopyright("Copyright © 2013")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+[assembly: NeutralResourcesLanguage("de")]
+
+// Versionsinformationen für eine Assembly bestehen aus den folgenden vier Werten:
+//
+// Hauptversion
+// Nebenversion
+// Buildnummer
+// Revision
+//
+// Sie können alle Werte angeben oder die standardmäßigen Build- und Revisionsnummern
+// durch Einsatz von '*', wie in nachfolgendem Beispiel:
+// [assembly: AssemblyVersion("1.0.*")]
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
diff --git a/src/ndefpclib/UNLICENSE.t.txt b/src/ndefpclib/UNLICENSE.t.txt
new file mode 100644
index 0000000..c97db69
--- /dev/null
+++ b/src/ndefpclib/UNLICENSE.t.txt
@@ -0,0 +1,28 @@
+
+This is free and unencumbered software released into the public domain.
+
+Anyone is free to copy, modify, publish, use, compile, sell, or
+distribute this software, either in source code form or as a compiled
+binary, for any purpose, commercial or non-commercial, and by any
+means.
+
+In jurisdictions that recognize copyright laws, the author or authors
+of this software dedicate any and all copyright interest in the
+software to the public domain. We make this dedication for the benefit
+of the public at large and to the detriment of our heirs and
+successors. We intend this dedication to be an overt act of
+relinquishment in perpetuity of all present and future rights to this
+software under copyright law.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
+OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
+ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+OTHER DEALINGS IN THE SOFTWARE.
+
+For more information, please refer to [http://unlicense.org]
+
+
+
\ No newline at end of file
diff --git a/src/ndefpclib/bin/Debug/ndefpclib.dll b/src/ndefpclib/bin/Debug/ndefpclib.dll
new file mode 100644
index 0000000..c729264
Binary files /dev/null and b/src/ndefpclib/bin/Debug/ndefpclib.dll differ
diff --git a/src/ndefpclib/bin/Debug/ndefpclib.pdb b/src/ndefpclib/bin/Debug/ndefpclib.pdb
new file mode 100644
index 0000000..6de9243
Binary files /dev/null and b/src/ndefpclib/bin/Debug/ndefpclib.pdb differ
diff --git a/import/NDEF/NDEFMessage.cs b/src/ndefpclib/message/NDEFMessage.cs
similarity index 92%
rename from import/NDEF/NDEFMessage.cs
rename to src/ndefpclib/message/NDEFMessage.cs
index f4038e4..599d158 100644
--- a/import/NDEF/NDEFMessage.cs
+++ b/src/ndefpclib/message/NDEFMessage.cs
@@ -1,12 +1,6 @@
-//-----------------------------------------------------------------------
-//
-// Company copyright tag.
-//
-// stubbfel
-// 21.08.2013
-//----------------------------------------------------------------------
-namespace CampusAppWP8.Utility.NDEF
+namespace ndefpclib.message
{
+ using ndefpclib.records;
using System.Collections.Generic;
using System.IO;
diff --git a/src/ndefpclib/ndefpclib.csproj b/src/ndefpclib/ndefpclib.csproj
new file mode 100644
index 0000000..9ec5af4
--- /dev/null
+++ b/src/ndefpclib/ndefpclib.csproj
@@ -0,0 +1,53 @@
+
+
+
+
+ 11.0
+ Debug
+ AnyCPU
+ {01C6941E-AAF1-4324-BA54-B4A53BC66ADF}
+ Library
+ Properties
+ ndefpclib
+ ndefpclib
+ v4.5
+ Profile78
+ 512
+ {786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
+
+
+ true
+ full
+ false
+ bin\Debug\
+ DEBUG;TRACE
+ prompt
+ 4
+
+
+ pdbonly
+ true
+ bin\Release\
+ TRACE
+ prompt
+ 4
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/import/NDEF/NDEFRecord.cs b/src/ndefpclib/record/NDEFRecord.cs
similarity index 94%
rename from import/NDEF/NDEFRecord.cs
rename to src/ndefpclib/record/NDEFRecord.cs
index 8d3a0c7..87b3221 100644
--- a/import/NDEF/NDEFRecord.cs
+++ b/src/ndefpclib/record/NDEFRecord.cs
@@ -1,12 +1,6 @@
-//-----------------------------------------------------------------------
-//
-// Company copyright tag.
-//
-// stubbfel
-// 21.08.2013
-//----------------------------------------------------------------------
-namespace CampusAppWP8.Utility.NDEF
+namespace ndefpclib.records
{
+ using ndefpclib.message;
using System.IO;
using System.Text;
@@ -184,5 +178,3 @@ namespace CampusAppWP8.Utility.NDEF
#endregion
}
}
-
-// End of Utility\NDEF\NDEFRecord.cs
diff --git a/import/NDEF/NDEFShortRecord.cs b/src/ndefpclib/record/NDEFShortRecord.cs
similarity index 85%
rename from import/NDEF/NDEFShortRecord.cs
rename to src/ndefpclib/record/NDEFShortRecord.cs
index 0692789..b82c7c5 100644
--- a/import/NDEF/NDEFShortRecord.cs
+++ b/src/ndefpclib/record/NDEFShortRecord.cs
@@ -1,12 +1,6 @@
-//-----------------------------------------------------------------------
-//
-// Company copyright tag.
-//
-// stubbfel
-// 21.08.2013
-//----------------------------------------------------------------------
-namespace CampusAppWP8.Utility.NDEF
+namespace ndefpclib.records
{
+ using ndefpclib.message;
using System.Text;
/// Ndef short record.