diff --git a/CampusAppWP8/CampusAppWP8/Utility/AppUriMapper.cs b/CampusAppWP8/CampusAppWP8/Utility/AppUriMapper.cs
index c37ee3c8..16a95862 100644
--- a/CampusAppWP8/CampusAppWP8/Utility/AppUriMapper.cs
+++ b/CampusAppWP8/CampusAppWP8/Utility/AppUriMapper.cs
@@ -1,28 +1,25 @@
//-----------------------------------------------------------------------
//
-// Company copyright tag.
+// The MIT License (MIT). Copyright (c) 2013 BTU/IIT.
//
-// stubbfel
-// 26.09.2013
-//----------------------------------------------------------------------
-
+// Stubbfel
+// 15.10.2013
+// Implements the application URI mapper class
+//-----------------------------------------------------------------------
namespace CampusAppWP8.Utility
{
using System;
using System.Windows.Navigation;
using CampusAppWP8.Resources;
- using System.Windows.Controls;
-
- ///
- /// Class map Uri to AppPages
- ///
+
+ /// Class map Uri to AppPages.
+ /// Stubbfel, 15.10.2013.
+ ///
public class AppUriMapper : UriMapperBase
{
- ///
- /// Method overrides MapUri from UriMapperBase
- ///
- /// the url
- /// the mapped url
+ /// Method overrides MapUri from UriMapperBase.
+ /// Stubbfel, 15.10.2013.
+ ///
public override Uri MapUri(Uri uri)
{
string tempUri = uri.ToString();
diff --git a/CampusAppWP8/CampusAppWP8/Utility/BackgroundTasks.cs b/CampusAppWP8/CampusAppWP8/Utility/BackgroundTasks.cs
index 753d7939..940b7ce9 100644
--- a/CampusAppWP8/CampusAppWP8/Utility/BackgroundTasks.cs
+++ b/CampusAppWP8/CampusAppWP8/Utility/BackgroundTasks.cs
@@ -1,11 +1,11 @@
//-----------------------------------------------------------------------
//
-// Company copyright tag.
+// The MIT License (MIT). Copyright (c) 2013 BTU/IIT.
//
-// stubbfel
-// 18.09.2013
-//----------------------------------------------------------------------
-
+// Stubbfel
+// 15.10.2013
+// Implements the background tasks class
+//-----------------------------------------------------------------------
namespace CampusAppWP8.Utility
{
using System;
@@ -13,16 +13,15 @@ namespace CampusAppWP8.Utility
using CampusAppWPortalLib8.Utility;
using Microsoft.Phone.Scheduler;
- ///
- /// Class provide some static methods for background tasks
- ///
+ /// Class provide some static methods for background tasks.
+ /// Stubbfel, 15.10.2013.
+ ///
public class BackgroundTasks : AbstractBackgroundTasks
{
- ///
- /// Method start a certain PerodicTask
- ///
- /// name of the task
- /// description of the task
+ /// Method start a certain PerodicTask.
+ /// Stubbfel, 15.10.2013.
+ /// name of the task.
+ /// description of the task.
public static void StartPerodicTask(string taskName, string taskDesc)
{
BackgroundTasks.StopPerodicTask(BackgroundTasks.LastAddedTaskName);
@@ -48,10 +47,9 @@ namespace CampusAppWP8.Utility
BackgroundTasks.LastAddedTaskName = taskName;
}
- ///
- /// Method stop a certain PerodicTask
- ///
- /// name of the task
+ /// Method stop a certain PerodicTask.
+ /// Stubbfel, 15.10.2013.
+ /// name of the task.
public static void StopPerodicTask(string taskName)
{
if (taskName == null)
@@ -73,22 +71,19 @@ namespace CampusAppWP8.Utility
}
}
- ///
- /// Method start BTUCampusAppBackgroundTask
- ///
+ /// Method start BTUCampusAppBackgroundTask.
+ /// Stubbfel, 15.10.2013.
public static void StartBTUCampusAppTask()
{
int campusId = (int)Settings.UserProfil.DefaultCampus;
BackgroundTasks.StartPerodicTask(Constants.BackgroundTask_BTUCampusApp, AppResources.BackGroundTaskDesc_BTUCampusApp + " - Feed " + campusId);
}
- ///
- /// Method stop BTUCampusAppBackgroundTask
- ///
+ /// Method stop BTUCampusAppBackgroundTask.
+ /// Stubbfel, 15.10.2013.
public static void StopBTUCampusAppTask()
{
BackgroundTasks.StopPerodicTask(Constants.BackgroundTask_BTUCampusApp);
}
-
}
}
diff --git a/CampusAppWP8/CampusAppWP8/Utility/BoolToVisibilityConverter.cs b/CampusAppWP8/CampusAppWP8/Utility/BoolToVisibilityConverter.cs
index 83ed3adc..c8723978 100644
--- a/CampusAppWP8/CampusAppWP8/Utility/BoolToVisibilityConverter.cs
+++ b/CampusAppWP8/CampusAppWP8/Utility/BoolToVisibilityConverter.cs
@@ -1,23 +1,38 @@
-//-----------------------------------------------------------------------------
+//-----------------------------------------------------------------------
//
-// Company copyright tag.
+// The MIT License (MIT). Copyright (c) 2013 BTU/IIT.
//
// fiedlchr
-// 10.10.2013
-//-----------------------------------------------------------------------------
+// 15.10.2013
+// Implements to visibility converter class
+//-----------------------------------------------------------------------
namespace CampusAppWP8.Utility
{
using System;
using System.Windows;
using System.Windows.Data;
+ /// to visibility converter.
+ /// fiedlchr, 15.10.2013.
+ ///
public sealed class BoolToVisibilityConverter : IValueConverter
{
+ ///
+ /// Ändert die Quelldaten vor der Übergabe an das Ziel zur Anzeige in der Benutzeroberfläche.
+ ///
+ /// fiedlchr, 15.10.2013.
+ ///
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo language)
{
return (value is bool && (bool)value) ? Visibility.Visible : Visibility.Collapsed;
}
+ ///
+ /// Ändert die Zieldaten vor der Übergabe an das Quellobjekt. Diese Methode wird nur in
+ /// -Bindungen aufgerufen.
+ ///
+ /// fiedlchr, 15.10.2013.
+ ///
public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo language)
{
return (value is Visibility && (Visibility)value == Visibility.Visible);
diff --git a/CampusAppWP8/CampusAppWP8/Utility/File.cs b/CampusAppWP8/CampusAppWP8/Utility/File.cs
index b247c0e7..f3e40167 100644
--- a/CampusAppWP8/CampusAppWP8/Utility/File.cs
+++ b/CampusAppWP8/CampusAppWP8/Utility/File.cs
@@ -1,10 +1,11 @@
-//-----------------------------------------------------------------------------
+//-----------------------------------------------------------------------
//
-// Company copyright tag.
+// The MIT License (MIT). Copyright (c) 2013 BTU/IIT.
//
// fiedlchr
-// 03.05.2013
-//-----------------------------------------------------------------------------
+// 15.10.2013
+// Implements the file class
+//-----------------------------------------------------------------------
namespace CampusAppWP8.Utility
{
using System;
@@ -14,30 +15,26 @@ namespace CampusAppWP8.Utility
using CampusAppWPortalLib8.Utility;
using Windows.Storage;
- ///
- /// File class.
- ///
+ /// File class.
+ /// fiedlchr, 15.10.2013.
+ ///
public class File : AbstractFile
{
#region Member
- ///
- /// Folder object.
- ///
+ /// Folder object.
private static readonly IStorageFolder LocalFolder = ApplicationData.Current.LocalFolder;
- ///
- /// File name.
- ///
+ /// File name.
private string filename = string.Empty;
#endregion
#region Constructor
- /// Initializes a new instance of the class.
- /// Stubbfel, 03.09.2013.
- /// file name.
+ /// Initializes a new instance of the class.
+ /// fiedlchr, 03.09.2013.
+ /// file name.
public File(string filename)
{
this.filename = filename;
@@ -49,9 +46,9 @@ namespace CampusAppWP8.Utility
#region public
- /// Read data from file to a string.
- /// Stubbfel, 03.09.2013.
- /// data string.
+ /// Read data from file to a string.
+ /// fiedlchr, 03.09.2013.
+ ///
public override byte[] ReadFile()
{
byte[] retValue = null;
@@ -64,31 +61,27 @@ namespace CampusAppWP8.Utility
return retValue;
}
- /// Write bytes to the file.
- /// Stubbfel, 03.09.2013.
- /// data byte array.
- /// callback function, called after writing is done.
- /// callback function, called when writing failed.
+ /// Write bytes to the file.
+ /// fiedlchr, 03.09.2013.
+ ///
public override void WriteFile(byte[] data, WriteCallbackFunc onSavedCallback, WriteCallbackFunc onFailedCallback)
{
Thread th = new Thread(delegate() { this.WriteAsync(data, onSavedCallback, onFailedCallback); });
th.Start();
}
- ///
- /// Return a info object of the file.
- ///
- /// info of the file
+ /// Return a info object of the file.
+ /// fiedlchr, 15.10.2013.
+ /// info of the file.
public FileInfo GetFileInfo()
{
FileInfo info = new FileInfo(File.LocalFolder.Path + "\\" + this.filename);
return info;
}
- ///
- /// Check if a file is existing.
- ///
- /// true, if file exists, otherwise false
+ /// Check if a file is existing.
+ /// fiedlchr, 15.10.2013.
+ ///
public override bool Exist()
{
FileInfo info = this.GetFileInfo();
@@ -102,9 +95,9 @@ namespace CampusAppWP8.Utility
}
}
- /// Converts this object to a storage file.
- /// Stubbfel, 03.09.2013.
- /// Storage File
+ /// Converts this object to a storage file.
+ /// fiedlchr, 03.09.2013.
+ /// Storage File.
public async Task AsStorageFile()
{
if (this.Exist())
@@ -119,10 +112,9 @@ namespace CampusAppWP8.Utility
#region private
- ///
- /// Read data synchronous from file.
- ///
- /// data string
+ /// Read data synchronous from file.
+ /// fiedlchr, 15.10.2013.
+ /// data string.
private byte[] ReadSync()
{
byte[] retValue = null;
@@ -139,12 +131,11 @@ namespace CampusAppWP8.Utility
return retValue;
}
- ///
- /// Write data asynchronous to file.
- ///
- /// data array.
- /// callback function, called when writing is done.
- /// callback function, called when writing failed.
+ /// Write data asynchronous to file.
+ /// fiedlchr, 15.10.2013.
+ /// data array.
+ /// callback function, called when writing is done.
+ /// callback function, called when writing failed.
private async void WriteAsync(byte[] data, WriteCallbackFunc onSavedCallback, WriteCallbackFunc onFailedCallback)
{
Logger.LogMsg("writeasync file: " + this.filename);
diff --git a/CampusAppWP8/CampusAppWP8/Utility/HttpRequest.cs b/CampusAppWP8/CampusAppWP8/Utility/HttpRequest.cs
index 3d1b2ae5..dfa6104f 100644
--- a/CampusAppWP8/CampusAppWP8/Utility/HttpRequest.cs
+++ b/CampusAppWP8/CampusAppWP8/Utility/HttpRequest.cs
@@ -1,37 +1,33 @@
//-----------------------------------------------------------------------
//
-// Company copyright tag.
+// The MIT License (MIT). Copyright (c) 2013 BTU/IIT.
//
-// stubbfel
-// 10.06.2013
-//----------------------------------------------------------------------using System;
+// Stubbfel
+// 15.10.2013
+// Implements the HTTP request class
+//-----------------------------------------------------------------------
namespace CampusAppWP8.Utility
{
using System;
- using System.Collections.Generic;
using System.Net;
- using CampusAppWP8.Model.Utility;
- using CampusAppWPortalLib8.Model.Utility;
using CampusAppWPortalLib8.Utility;
- ///
- /// Class realize the access of restful HttpRequest
- ///
+ /// Class realize the access of restful HttpRequest.
+ /// Stubbfel, 15.10.2013.
+ ///
public class HttpRequest : AbstractHttpRequest
{
#region Constructor
- ///
- /// Initializes a new instance of the class.
- ///
+ /// Initializes a new instance of the class.
+ /// Stubbfel, 15.10.2013.
public HttpRequest()
{
}
- ///
- /// Initializes a new instance of the class.
- ///
- /// the url of the HttpRequest base address
+ /// Initializes a new instance of the class.
+ /// Stubbfel, 15.10.2013.
+ /// the url of the HttpRequest base address.
public HttpRequest(Uri apiBaseAddress)
{
this.BaseAddress = apiBaseAddress.AbsoluteUri;
@@ -42,11 +38,10 @@ namespace CampusAppWP8.Utility
#region Methods
#region public
- ///
- /// Method realize the http-get-method resource
- ///
- /// Url of the resource
- /// callback method
+ /// Method realize the http-get-method resource.
+ /// Stubbfel, 15.10.2013.
+ /// Url of the resource.
+ /// callback method.
public void HttpGet(Uri url, Action