/[cits3200i]/branches/metadata-branch-rvvs89/UWAPlugins/MetadataPlugin/Source/MetadataList.cs


UCC Code Repository

Contents of /branches/metadata-branch-rvvs89/UWAPlugins/MetadataPlugin/Source/MetadataList.cs

Parent Directory Parent Directory | Revision Log Revision Log


Revision 86 - (show annotations) (download)
Mon Oct 11 06:42:56 2010 UTC (11 years, 1 month ago) by rvvs89
File size: 809 byte(s)
Committing partially implemented Metadata plugin.
Couldn't finish it before the meeting :(
1 using System;
2 using System.Collections.Generic;
3 using System.Text;
4 using System.IO;
5 using System.Runtime.Serialization;
6 using ZoneFiveSoftware.Common.Data.Fitness;
7
8 namespace MetadataPlugin.Source
9 {
10 [Serializable]
11 class MetadataList : IDeserializationCallback
12 {
13 private IList<IMetadata> items = new List<IMetadata>();
14 [NonSerialized]
15 private IActivity activity;
16
17 public void Commit()
18 {
19 // TODO: create some triggers for this function
20 if (activity == null)
21 return;
22 activity.SetExtensionData(Plugin.Instance.Id, MetadataListSerializer.Serialize(this));
23 }
24
25 public void OnDeserialization(object sender)
26 {
27 activity = null;
28 }
29 }
30 }

Managed by UCC Webmasters ViewVC Help
Powered by ViewVC 1.1.26