diff --git a/CampusAppWP8/CampusAppWP8/Settings.StyleCop b/CampusAppWP8/CampusAppWP8/Settings.StyleCop
index c76ad7db..8c4162bf 100644
--- a/CampusAppWP8/CampusAppWP8/Settings.StyleCop
+++ b/CampusAppWP8/CampusAppWP8/Settings.StyleCop
@@ -5,6 +5,7 @@
api
apis
enum
+ fiedlchr
initialise
initialises
ndef
diff --git a/CampusAppWP8/CampusAppWPortalLib8/CampusAppWPortalLib8.csproj b/CampusAppWP8/CampusAppWPortalLib8/CampusAppWPortalLib8.csproj
index f7e93044..dea60ce8 100644
--- a/CampusAppWP8/CampusAppWPortalLib8/CampusAppWPortalLib8.csproj
+++ b/CampusAppWP8/CampusAppWPortalLib8/CampusAppWPortalLib8.csproj
@@ -61,7 +61,9 @@
-
+
+ True
+
@@ -75,7 +77,9 @@
-
+
+ True
+
diff --git a/CampusAppWP8/CampusAppWPortalLib8/Model/AbstractMainModel.cs b/CampusAppWP8/CampusAppWPortalLib8/Model/AbstractMainModel.cs
index d43496b5..d35965c1 100644
--- a/CampusAppWP8/CampusAppWPortalLib8/Model/AbstractMainModel.cs
+++ b/CampusAppWP8/CampusAppWPortalLib8/Model/AbstractMainModel.cs
@@ -1,10 +1,11 @@
-//-----------------------------------------------------------------------------
+//-----------------------------------------------------------------------
//
-// Company copyright tag.
+// The MIT License (MIT). Copyright (c) 2013 BTU/IIT.
//
// fiedlchr
-// 05.07.2013
-//-----------------------------------------------------------------------------
+// 15.10.2013
+// Implements the abstract main model class
+//-----------------------------------------------------------------------
namespace CampusAppWPortalLib8.Model
{
using System;
@@ -12,47 +13,32 @@ namespace CampusAppWPortalLib8.Model
using CampusAppWPortalLib8.Model.Utility;
using CampusAppWPortalLib8.Utility;
- ///
- /// abstract Base model io handling class.
- ///
- /// model type
+ /// abstract Base model io handling class.
+ /// fiedlchr, 15.10.2013.
+ /// model type.
public abstract class AbstractMainModel
{
#region Member
- ///
- /// File object.
- ///
+ /// File object.
private AbstractFile file = null;
- ///
- /// Model io type.
- ///
+ /// Model io type.
private ModelType modelType;
- ///
- /// Model object.
- ///
+ /// Model object.
private T model = default(T);
- ///
- /// Web object.
- ///
+ /// Web object.
private AbstractHttpRequest api = null;
- ///
- /// Filename of saved data.
- ///
+ /// Filename of saved data.
private string fileName = string.Empty;
- ///
- /// Url of the feed data.
- ///
+ /// Url of the feed data.
private Uri httpApiUri = null;
- ///
- /// Parameterized uri of the feed.
- ///
+ /// Parameterized uri of the feed.
private Uri paramizedUri = null;
#endregion
@@ -60,21 +46,26 @@ namespace CampusAppWPortalLib8.Model
#region Constructor
///
- /// Initializes a new instance of the class.
+ /// Initializes a new instance of the class.
///
- /// Model IO type
- /// name of the file
- /// url of the feed
+ /// fiedlchr, 15.10.2013.
+ /// Model IO type.
+ /// name of the file.
+ /// url of the feed.
public AbstractMainModel(ModelType modelType, string fileName, string url)
{
this.Init(modelType, fileName, url);
}
///
- /// Initializes a new instance of the class.
+ /// Initializes a new instance of the class.
///
- /// Model IO type
- /// name of the file or the url of the feed
+ /// fiedlchr, 15.10.2013.
+ ///
+ /// Thrown when the requested operation is not supported.
+ ///
+ /// Model IO type.
+ /// name of the file or the url of the feed.
public AbstractMainModel(ModelType modelType, string sourceName)
{
if (modelType == ModelType.File)
@@ -95,67 +86,48 @@ namespace CampusAppWPortalLib8.Model
#region Events
- ///
- /// Delegate of the OnIO callback function.
- ///
+ /// Delegate of the OnIO callback function.
+ /// fiedlchr, 15.10.2013.
public delegate void OnIO();
- ///
- /// Delegate of the OnFailed(File/Web) callback function.
- ///
+ /// Delegate of the OnFailed(File/Web) callback function.
+ /// fiedlchr, 15.10.2013.
public delegate void OnFailed();
- ///
- /// Delegate of the IsModelUpToDate callback function.
- ///
- /// data model
- /// true, model is up to date
+ /// Delegate of the IsModelUpToDate callback function.
+ /// fiedlchr, 15.10.2013.
+ /// data model.
+ /// true, model is up to date.
public delegate bool IsModelUpToDate(T model);
- ///
- /// Callback pointer, called before loading.
- ///
+ /// Callback pointer, called before loading.
public event OnIO OnLoading = null;
- ///
- /// Callback pointer, called after loading.
- ///
+ /// Callback pointer, called after loading.
public event OnIO OnLoaded = null;
- ///
- /// Callback pointer, called before saving.
- ///
+ /// Callback pointer, called before saving.
public event OnIO OnSaving = null;
- ///
- /// Callback pointer, called after saving.
- ///
+ /// Callback pointer, called after saving.
public event OnIO OnSaved = null;
- ///
- /// Callback pointer, called after failed file loading.
- ///
+ /// Callback pointer, called after failed file loading.
public event OnFailed OnFailedFile = null;
- ///
- /// Callback pointer, called after failed web loading.
- ///
+ /// Callback pointer, called after failed web loading.
public event OnFailed OnFailedWeb = null;
///
- /// Callback pointer, called after failed file or web loading, if there
- /// is no specialized onFailed callback set.
+ /// Callback pointer, called after failed file or web loading, if there is no specialized
+ /// onFailed callback set.
///
public event OnFailed OnFailedLoad = null;
- ///
- /// Callback pointer, called after failed saving data to file.
- ///
+ /// Callback pointer, called after failed saving data to file.
public event OnFailed OnFailedSave = null;
- ///
- /// Callback pointer, for checking if model is up to date at loading.
- ///
+ /// Callback pointer, for checking if model is up to date at loading.
public event IsModelUpToDate IsModelUpToDateOnLoad = null;
///
@@ -163,15 +135,15 @@ namespace CampusAppWPortalLib8.Model
/// (currently unused)
///
#pragma warning disable 0067
+ /// Occurs when Is Model Up To Date On Save.
public event IsModelUpToDate IsModelUpToDateOnSave = null;
#endregion
#region Property
- ///
- /// Gets or sets the Model.
- ///
+ /// Gets or sets the Model.
+ /// The model.
public T Model
{
get
@@ -185,45 +157,40 @@ namespace CampusAppWPortalLib8.Model
}
}
- ///
- /// Gets or sets the File.
- ///
+ /// Gets the File.
+ /// The file.
public AbstractFile File
{
get { return this.file; }
protected set { this.file = value; }
}
- ///
- /// Gets or sets the ModelType.
- ///
+ /// Gets the ModelType.
+ /// The type of the model.
public ModelType ModelType
{
get { return this.modelType; }
protected set { this.modelType = value; }
}
- ///
- /// Gets or sets the Api.
- ///
+ /// Gets the Api.
+ /// The API.
public AbstractHttpRequest Api
{
get { return this.api; }
protected set { this.api = value; }
}
- ///
- /// Gets or sets the ApiUrl.
- ///
+ /// Gets the ApiUrl.
+ /// The HTTP API URI.
public Uri HttpApiUri
{
get { return this.httpApiUri; }
protected set { this.httpApiUri = value; }
}
- ///
- /// Gets or sets the FileName.
- ///
+ /// Gets the FileName.
+ /// The name of the file.
public string FileName
{
get { return this.fileName; }
@@ -236,43 +203,42 @@ namespace CampusAppWPortalLib8.Model
#region public
- ///
- /// Method Fire all Events for fail load
- ///
+ /// Method Fire all Events for fail load.
+ /// fiedlchr, 15.10.2013.
public void FireLoadFailEvents()
{
this.RunOnFailedCallback(this.OnFailedWeb, this.OnFailedLoad);
}
- ///
- /// Method Fire all Events for load is complete
- ///
+ /// Method Fire all Events for load is complete.
+ /// fiedlchr, 15.10.2013.
public void FireLoadCompletedEvents()
{
this.RunOnIOCallback(this.OnLoaded);
}
-
- ///
- /// Forces a update from web.
- ///
+
+ /// Forces a update from web.
+ /// fiedlchr, 15.10.2013.
public void ForceWebUpdate()
{
this.LoadData(ForceType.FORCE_WEB);
}
- ///
- /// Forces a update from file.
- ///
+ /// Forces a update from file.
+ /// fiedlchr, 15.10.2013.
public void ForceReadFile()
{
this.LoadData(ForceType.FORCE_FILE);
}
///
- /// Load the data if necessary, from web or from file, regarding if
- /// the file data is up to date.
+ /// Load the data if necessary, from web or from file, regarding if the file data is up to
+ /// date.
///
- /// if set/not invalid/not default, force to load from web or file
+ /// fiedlchr, 15.10.2013.
+ ///
+ /// (Optional) if set/not invalid/not default, force to load from web or file.
+ ///
public void LoadData(ForceType force = ForceType.INVALID)
{
this.RunOnIOCallback(this.OnLoading);
@@ -364,10 +330,9 @@ namespace CampusAppWPortalLib8.Model
}
}
- ///
- /// Save the model data if necessary.
- ///
- /// force saving. DEFAULT: false
+ /// Save the model data if necessary.
+ /// fiedlchr, 15.10.2013.
+ /// (Optional) force saving. DEFAULT: false.
public void SaveData(bool force = false)
{
if ((this.file != null)
@@ -396,19 +361,17 @@ namespace CampusAppWPortalLib8.Model
}
}
- ///
- /// Return the model io type.
- ///
- /// model io type
+ /// Return the model io type.
+ /// fiedlchr, 15.10.2013.
+ /// model io type.
public ModelType GetModelType()
{
return this.modelType;
}
- ///
- /// Create the parameterized uri.
- ///
- /// uri parameter list
+ /// Create the parameterized uri.
+ /// fiedlchr, 15.10.2013.
+ /// uri parameter list.
public void SetUriParams(List parameters)
{
if (this.api != null)
@@ -417,9 +380,8 @@ namespace CampusAppWPortalLib8.Model
}
}
- ///
- /// Clear the parameterized uri.
- ///
+ /// Clear the parameterized uri.
+ /// fiedlchr, 15.10.2013.
public void ClearUriParams()
{
this.paramizedUri = null;
@@ -429,58 +391,49 @@ namespace CampusAppWPortalLib8.Model
#region protected
- ///
- /// Abstract declaration of the model deserialize function.
- ///
- /// model data as byte array
- /// true, is succeeded
+ /// Abstract declaration of the model deserialize function.
+ /// fiedlchr, 15.10.2013.
+ /// model data as byte array.
+ /// true, is succeeded.
protected abstract bool DeserializeModel(byte[] modelData);
- ///
- /// Abstract declaration of the model serialize function.
- ///
- /// model data as byte array
+ /// Abstract declaration of the model serialize function.
+ /// fiedlchr, 15.10.2013.
+ /// model data as byte array.
protected abstract byte[] SerializeModel();
- ///
- /// Method send a HttpGet
- ///
- /// the url
+ /// Method send a HttpGet.
+ /// fiedlchr, 15.10.2013.
+ /// the url.
protected abstract void SendHttpGet(Uri url);
- ///
- /// Method check if model or file is Not up-to-date
- ///
- /// the check function
- /// true if it is not up-to-date, otherwise false
+ /// Method check if model or file is Not up-to-date.
+ /// fiedlchr, 15.10.2013.
+ /// the check function.
+ /// true if it is not up-to-date, otherwise false.
protected abstract bool CheckIsNotUpToDate(object checkFunc);
- ///
- /// Method check if file is Not up-to-date for load process
- ///
- /// true if it is not up-to-date, otherwise false
+ /// Method check if file is Not up-to-date for load process.
+ /// fiedlchr, 15.10.2013.
+ /// true if it is not up-to-date, otherwise false.
protected abstract bool CheckLoadFileIsNotUpToDate();
- ///
- /// Method check if file is Not up-to-date for load process
- ///
- /// true if it is not up-to-date, otherwise false
+ /// Method check if file is Not up-to-date for load process.
+ /// fiedlchr, 15.10.2013.
+ /// true if it is not up-to-date, otherwise false.
protected abstract bool CheckSaveFileIsNotUpToDate();
- ///
- /// Initializes the file object.
- ///
+ /// Initializes the file object.
+ /// fiedlchr, 15.10.2013.
protected abstract void InitFile();
- ///
- /// Initializes the web object.
- ///
+ /// Initializes the web object.
+ /// fiedlchr, 15.10.2013.
protected abstract void InitHttpApi();
- ///
- /// Check if the model io type is file.
- ///
- /// true, if the model io type has file.
+ /// Check if the model io type is file.
+ /// fiedlchr, 15.10.2013.
+ /// true, if the model io type has file.
protected bool IsFile()
{
bool retValue = false;
@@ -493,10 +446,9 @@ namespace CampusAppWPortalLib8.Model
return retValue;
}
- ///
- /// Check if the model io type is feed.
- ///
- /// true if the model io type has feed.
+ /// Check if the model io type is feed.
+ /// fiedlchr, 15.10.2013.
+ /// true if the model io type has feed.
protected bool IsHttpApi()
{
bool retValue = false;
@@ -513,12 +465,11 @@ namespace CampusAppWPortalLib8.Model
#region private
- ///
- /// Initialize the class. Is called by the constructors.
- ///
- /// model IO type
- /// name of the data file
- /// url of the feed data
+ /// Initialize the class. Is called by the constructors.
+ /// fiedlchr, 15.10.2013.
+ /// model IO type.
+ /// name of the data file.
+ /// url of the feed data.
private void Init(ModelType modelType, string fileName, string url)
{
this.modelType = modelType;
@@ -543,10 +494,9 @@ namespace CampusAppWPortalLib8.Model
}
}
- ///
- /// Executes the on i/o callback operation.
- ///
- /// The callback function.
+ /// Executes the on i/o callback operation.
+ /// fiedlchr, 15.10.2013.
+ /// The callback function.
private void RunOnIOCallback(OnIO callbackFunc)
{
if (callbackFunc != null)
@@ -555,9 +505,10 @@ namespace CampusAppWPortalLib8.Model
}
}
- /// Executes the on failed callback operation.
- /// The special function.
- /// The default function.
+ /// Executes the on failed callback operation.
+ /// fiedlchr, 15.10.2013.
+ /// The special function.
+ /// The default function.
private void RunOnFailedCallback(OnFailed specialFunc, OnFailed defaultFunc)
{
if (specialFunc != null)
diff --git a/CampusAppWP8/CampusAppWPortalLib8/Model/Departments/ChairModel.cs b/CampusAppWP8/CampusAppWPortalLib8/Model/Departments/ChairModel.cs
index 704796e6..ac3cf6c9 100644
--- a/CampusAppWP8/CampusAppWPortalLib8/Model/Departments/ChairModel.cs
+++ b/CampusAppWP8/CampusAppWPortalLib8/Model/Departments/ChairModel.cs
@@ -1,44 +1,37 @@
//-----------------------------------------------------------------------
//
-// Company copyright tag.
+// The MIT License (MIT). Copyright (c) 2013 BTU/IIT.
//
// fiedlchr
-// 24.06.2013
-//----------------------------------------------------------------------
+// 15.10.2013
+// Implements the chair model class
+//-----------------------------------------------------------------------
namespace CampusAppWPortalLib8.Model.Departments
{
using System.Globalization;
using System.Xml.Serialization;
- ///
- /// Class to hold information about a professorship chair.
- ///
+ /// Class to hold information about a professorship chair.
+ /// fiedlchr, 15.10.2013.
public class ChairModel
{
#region Member
- ///
- /// German name of the chair.
- ///
+ /// German name of the chair.
private string nameDE = string.Empty;
- ///
- /// Link to the chair page.
- ///
+ /// Link to the chair page.
private string url = string.Empty;
- ///
- /// English name of the chair.
- ///
+ /// English name of the chair.
private string nameEN = string.Empty;
#endregion
#region Constructor
- ///
- /// Initializes a new instance of the class.
- ///
+ /// Initializes a new instance of the class.
+ /// fiedlchr, 15.10.2013.
public ChairModel()
{
}
@@ -47,19 +40,17 @@ namespace CampusAppWPortalLib8.Model.Departments
#region Property
- ///
- /// Initializes a new instance of the class.
- ///
- /// name of the chair
+ /// Initializes a new instance of the class.
+ /// fiedlchr, 15.10.2013.
+ /// name of the chair.
public ChairModel(string name)
{
this.nameDE = name;
this.nameEN = name;
}
- ///
- /// Gets or sets the german name of the chair.
- ///
+ /// Gets or sets the german name of the chair.
+ /// The name de.
[XmlAttribute("name_de")]
public string NameDE
{
@@ -77,9 +68,8 @@ namespace CampusAppWPortalLib8.Model.Departments
}
}
- ///
- /// Gets or sets the english name of the chair.
- ///
+ /// Gets or sets the english name of the chair.
+ /// The name en.
[XmlAttribute("name_en")]
public string NameEN
{
@@ -97,9 +87,8 @@ namespace CampusAppWPortalLib8.Model.Departments
}
}
- ///
- /// Gets or sets the url of the chair homepage.
- ///
+ /// Gets or sets the url of the chair homepage.
+ /// The URL.
[XmlAttribute("url")]
public string Url
{
@@ -117,9 +106,8 @@ namespace CampusAppWPortalLib8.Model.Departments
}
}
- ///
- /// Gets the localized name of the chair.
- ///
+ /// Gets the localized name of the chair.
+ /// The name.
public string Name
{
get
diff --git a/CampusAppWP8/CampusAppWPortalLib8/Model/Departments/DepartmentModel.cs b/CampusAppWP8/CampusAppWPortalLib8/Model/Departments/DepartmentModel.cs
index 37ca6719..0fc94839 100644
--- a/CampusAppWP8/CampusAppWPortalLib8/Model/Departments/DepartmentModel.cs
+++ b/CampusAppWP8/CampusAppWPortalLib8/Model/Departments/DepartmentModel.cs
@@ -1,41 +1,36 @@
//-----------------------------------------------------------------------
//
-// Company copyright tag.
+// The MIT License (MIT). Copyright (c) 2013 BTU/IIT.
//
// fiedlchr
-// 24.06.2013
-//----------------------------------------------------------------------
+// 15.10.2013
+// Implements the department model class
+//-----------------------------------------------------------------------
namespace CampusAppWPortalLib8.Model.Departments
{
using System;
using System.Collections.ObjectModel;
using System.Xml.Serialization;
- ///
- /// View model for department page.
- ///
+ /// View model for department page.
+ /// fiedlchr, 15.10.2013.
[XmlRoot("root")]
public class DepartmentModel
{
#region Member
- ///
- /// Object to store the time when the instance was created.
- ///
+ /// Object to store the time when the instance was created.
private DateTime createTime;
- ///
- /// List of faculties.
- ///
+ /// List of faculties.
private ObservableCollection faculties;
#endregion
#region Constructor
- ///
- /// Initializes a new instance of the class.
- ///
+ /// Initializes a new instance of the class.
+ /// fiedlchr, 15.10.2013.
public DepartmentModel()
{
this.Faculties = new ObservableCollection();
@@ -46,9 +41,8 @@ namespace CampusAppWPortalLib8.Model.Departments
#region Property
- ///
- /// Gets or sets the faculty list.
- ///
+ /// Gets or sets the faculty list.
+ /// The faculties.
[XmlArray("professorships")]
[XmlArrayItem("faculty")]
public ObservableCollection Faculties
@@ -67,9 +61,8 @@ namespace CampusAppWPortalLib8.Model.Departments
}
}
- ///
- /// Gets the creation time.
- ///
+ /// Gets the creation time.
+ /// The create time.
public DateTime CreateTime
{
get
@@ -83,10 +76,11 @@ namespace CampusAppWPortalLib8.Model.Departments
#region Method
///
- /// Check if the content of the faculty lists hast changed since the
- /// last call of this function.
+ /// Check if the content of the faculty lists hast changed since the last call of this
+ /// function.
///
- /// true, if changes happen since last request, otherwise false
+ /// fiedlchr, 15.10.2013.
+ /// true, if changes happen since last request, otherwise false.
public bool HasChanged()
{
bool retValue = false;
diff --git a/CampusAppWP8/CampusAppWPortalLib8/Model/Departments/FacultyModel.cs b/CampusAppWP8/CampusAppWPortalLib8/Model/Departments/FacultyModel.cs
index 802fe20e..39df78b3 100644
--- a/CampusAppWP8/CampusAppWPortalLib8/Model/Departments/FacultyModel.cs
+++ b/CampusAppWP8/CampusAppWPortalLib8/Model/Departments/FacultyModel.cs
@@ -1,46 +1,38 @@
//-----------------------------------------------------------------------
//
-// Company copyright tag.
+// The MIT License (MIT). Copyright (c) 2013 BTU/IIT.
//
// fiedlchr
-// 24.06.2013
-//----------------------------------------------------------------------
+// 15.10.2013
+// Implements the faculty model class
+//-----------------------------------------------------------------------
namespace CampusAppWPortalLib8.Model.Departments
{
using System.Collections.ObjectModel;
using System.Xml.Serialization;
using CampusAppWPortalLib8.Resources;
-
- ///
- /// Model for holding the faculty information.
- ///
+
+ /// Model for holding the faculty information.
+ /// fiedlchr, 15.10.2013.
public class FacultyModel
{
#region Member
- ///
- /// Object to hold the information of the chair containing to this
- /// faculty.
- ///
+ /// Object to hold the information of the chair containing to this faculty.
private ObservableCollection chairs;
- ///
- /// Name of the faculty.
- ///
+ /// Name of the faculty.
private string name = string.Empty;
- ///
- /// For checking of change.
- ///
+ /// For checking of change.
private bool hasChanged = false;
#endregion
#region Constructor
- ///
- /// Initializes a new instance of the class.
- ///
+ /// Initializes a new instance of the class.
+ /// fiedlchr, 15.10.2013.
public FacultyModel()
{
this.chairs = new ObservableCollection();
@@ -50,19 +42,17 @@ namespace CampusAppWPortalLib8.Model.Departments
#region Property
- ///
- /// Initializes a new instance of the class.
- ///
- /// name of the faculty
+ /// Initializes a new instance of the class.
+ /// fiedlchr, 15.10.2013.
+ /// name of the faculty.
public FacultyModel(string name)
{
this.name = name;
this.chairs = new ObservableCollection();
}
- ///
- /// Gets or sets the list of the chairs containing to this faculty.
- ///
+ /// Gets or sets the list of the chairs containing to this faculty.
+ /// The chairs.
[XmlElement("chair")]
public ObservableCollection Chairs
{
@@ -80,9 +70,8 @@ namespace CampusAppWPortalLib8.Model.Departments
}
}
- ///
- /// Gets the name of the faculty.
- ///
+ /// Gets the name of the faculty.
+ /// The name.
public string Name
{
get
@@ -91,9 +80,8 @@ namespace CampusAppWPortalLib8.Model.Departments
}
}
- ///
- /// Gets or sets the id of the faculty.
- ///
+ /// Gets or sets the id of the faculty.
+ /// The identifier.
[XmlAttribute("id")]
public string Id
{
@@ -108,11 +96,10 @@ namespace CampusAppWPortalLib8.Model.Departments
}
}
- ///
- /// Remove a chair model from the lost.
- ///
- /// name of the chair
- /// true, if succeeded
+ /// Remove a chair model from the lost.
+ /// fiedlchr, 15.10.2013.
+ /// name of the chair.
+ /// true, if succeeded.
public bool RemoveChair(string chairName)
{
bool retValue = false;
@@ -140,11 +127,10 @@ namespace CampusAppWPortalLib8.Model.Departments
#region Method
- ///
- /// Add a chair to the list, if it does not already exist.
- ///
- /// chair model to add
- /// true, is succeeded
+ /// Add a chair to the list, if it does not already exist.
+ /// fiedlchr, 15.10.2013.
+ /// chair model to add.
+ /// true, is succeeded.
public bool AddChair(ChairModel chairModel)
{
bool retValue = false;
@@ -174,14 +160,12 @@ namespace CampusAppWPortalLib8.Model.Departments
return retValue;
}
- ///
- /// Create a chair model and add it to the list, if it does not already
- /// exist.
- ///
- /// german name of the chair
- /// english name of the chair
- /// url of the chair home page
- /// true, if succeeded
+ /// Create a chair model and add it to the list, if it does not already exist.
+ /// fiedlchr, 15.10.2013.
+ /// german name of the chair.
+ /// english name of the chair.
+ /// url of the chair home page.
+ /// true, if succeeded.
public bool AddChair(string nameDE, string nameEN, string url)
{
bool retValue = false;
@@ -212,11 +196,10 @@ namespace CampusAppWPortalLib8.Model.Departments
return retValue;
}
- ///
- /// Return the chair model of the chair with the specified name.
- ///
- /// name of the chair
- /// chair model, if succeeded, otherwise null
+ /// Return the chair model of the chair with the specified name.
+ /// fiedlchr, 15.10.2013.
+ /// name of the chair.
+ /// chair model, if succeeded, otherwise null.
public ChairModel GetChairModel(string name)
{
ChairModel retValue = null;
@@ -232,11 +215,10 @@ namespace CampusAppWPortalLib8.Model.Departments
return retValue;
}
- ///
- /// Return true if there were changes in the chair list, otherwise false.
- ///
- /// when true, the hasChanged flag will be reset
- /// true, when changed, otherwise false
+ /// Return true if there were changes in the chair list, otherwise false.
+ /// fiedlchr, 15.10.2013.
+ /// (Optional) when true, the hasChanged flag will be reset.
+ /// true, when changed, otherwise false.
public bool HasChanged(bool reset = true)
{
bool retValue = this.hasChanged;
diff --git a/CampusAppWP8/CampusAppWPortalLib8/Model/Exams/ExamListModel.cs b/CampusAppWP8/CampusAppWPortalLib8/Model/Exams/ExamListModel.cs
index 551d5b7c..63dde71a 100644
--- a/CampusAppWP8/CampusAppWPortalLib8/Model/Exams/ExamListModel.cs
+++ b/CampusAppWP8/CampusAppWPortalLib8/Model/Exams/ExamListModel.cs
@@ -1,10 +1,11 @@
//-----------------------------------------------------------------------
-//
-// Company copyright tag.
+//
+// The MIT License (MIT). Copyright (c) 2013 BTU/IIT.
//
-// stubbfel
-// 02.09.2013
-//----------------------------------------------------------------------
+// Stubbfel
+// 15.10.2013
+// Implements the exam list model class
+//-----------------------------------------------------------------------
namespace CampusAppWPortalLib8.Model.Exams
{
using System.Collections.Generic;
@@ -13,15 +14,16 @@ namespace CampusAppWPortalLib8.Model.Exams
using CampusAppWPortalLib8.Model.Utility;
- /// Exam list model.
- /// Stubbfel, 02.09.2013.
+ /// Exam list model.
+ /// Stubbfel, 02.09.2013.
+ /// Generic type parameter.
[XmlRoot("links")]
public class ExamListModel where T : ExamModel
{
#region Property
- /// Gets or sets the exams.
- /// The exams.
+ /// Gets or sets the exams.
+ /// The exams.
[XmlElement("link")]
public ObservableCollection Exams { get; set; }
@@ -29,9 +31,9 @@ namespace CampusAppWPortalLib8.Model.Exams
#region Property
- /// Creates course list.
- /// Stubbfel, 10.09.2013.
- /// The new course list.
+ /// Creates course list.
+ /// Stubbfel, 10.09.2013.
+ /// The new course list.
public List CreateCourseList()
{
List result = new List();
diff --git a/CampusAppWP8/CampusAppWPortalLib8/Model/Exams/ExamModel.cs b/CampusAppWP8/CampusAppWPortalLib8/Model/Exams/ExamModel.cs
index 31246ac3..4279ac2e 100644
--- a/CampusAppWP8/CampusAppWPortalLib8/Model/Exams/ExamModel.cs
+++ b/CampusAppWP8/CampusAppWPortalLib8/Model/Exams/ExamModel.cs
@@ -1,58 +1,59 @@
//-----------------------------------------------------------------------
//
-// Company copyright tag.
+// The MIT License (MIT). Copyright (c) 2013 BTU/IIT.
//
-// stubbfel
-// 02.09.2013
-//----------------------------------------------------------------------
+// Stubbfel
+// 15.10.2013
+// Implements the exam model class
+//-----------------------------------------------------------------------
namespace CampusAppWPortalLib8.Model.Exams
{
using System.Xml.Serialization;
using CampusAppWPortalLib8.Utility;
- /// Exam model.
- /// Stubbfel, 02.09.2013.
+ /// Exam model.
+ /// Stubbfel, 02.09.2013.
public class ExamModel
{
#region Property
- /// Gets or sets the course number.
- /// The course number.
+ /// Gets or sets the course number.
+ /// The course number.
[XmlAttribute("stg")]
public string CourseNumber { get; set; }
- /// Gets or sets the course text.
- /// The course text.
+ /// Gets or sets the course text.
+ /// The course text.
[XmlAttribute("stgtext")]
public string CourseText { get; set; }
- /// Gets or sets the degree number.
- /// The degree number.
+ /// Gets or sets the degree number.
+ /// The degree number.
[XmlAttribute("abschl")]
public string DegreeNumber { get; set; }
- /// Gets or sets the version.
- /// The version.
+ /// Gets or sets the version.
+ /// The version.
[XmlAttribute("pversion")]
public string Version { get; set; }
- /// Gets or sets the type.
- /// The type.
+ /// Gets or sets the type.
+ /// The type.
[XmlAttribute("typ")]
public string Type { get; set; }
- /// Gets or sets the title.
- /// The title.
+ /// Gets or sets the title.
+ /// The title.
[XmlAttribute("dtxt")]
public string Title { get; set; }
- /// Gets or sets the date.
- /// The date.
+ /// Gets or sets the date.
+ /// The date.
[XmlAttribute("datum")]
public string Date { get; set; }
- /// Gets or sets the link.
- /// The link.
+ /// Gets or sets the link.
+ /// The link.
[XmlAttribute("link")]
public string Link { get; set; }
diff --git a/CampusAppWP8/CampusAppWPortalLib8/Model/ForcesTypes.cs b/CampusAppWP8/CampusAppWPortalLib8/Model/ForcesTypes.cs
index 5bfd2377..eb90e532 100644
--- a/CampusAppWP8/CampusAppWPortalLib8/Model/ForcesTypes.cs
+++ b/CampusAppWP8/CampusAppWPortalLib8/Model/ForcesTypes.cs
@@ -1,12 +1,15 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
+//-----------------------------------------------------------------------
+//
+// The MIT License (MIT). Copyright (c) 2013 BTU/IIT.
+//
+// fiedlchr
+// 15.10.2013
+// Implements the forces types class
+//-----------------------------------------------------------------------
namespace CampusAppWPortalLib8.Model
{
- /// Values that represent ForceType for load function.
+ /// Values that represent ForceType for load function.
+ /// fiedlchr, 15.10.2013.
public enum ForceType
{
/// An enumeration constant representing the invalid/default/unset option.
diff --git a/CampusAppWP8/CampusAppWPortalLib8/Model/IXmlModel.cs b/CampusAppWP8/CampusAppWPortalLib8/Model/IXmlModel.cs
index 2543b356..2954ed92 100644
--- a/CampusAppWP8/CampusAppWPortalLib8/Model/IXmlModel.cs
+++ b/CampusAppWP8/CampusAppWPortalLib8/Model/IXmlModel.cs
@@ -1,25 +1,21 @@
-//-----------------------------------------------------------------------------
+//-----------------------------------------------------------------------
//
-// Company copyright tag.
+// The MIT License (MIT). Copyright (c) 2013 BTU/IIT.
//
// fiedlchr
-// 05.07.2013
-//-----------------------------------------------------------------------------
+// 15.10.2013
+// Declares the IXmlModel interface
+//-----------------------------------------------------------------------
namespace CampusAppWPortalLib8.Model
{
- using CampusAppWPortalLib8.Utility;
-
- ///
- /// Xml model io handler class.
- ///
- /// model type
+ /// Xml model io handler class.
+ /// fiedlchr, 15.10.2013.
public interface IXmlModel
{
#region Property
- ///
- /// Gets or sets for the name of the root-tag
- ///
+ /// Gets or sets for the name of the root-tag.
+ /// The name of the valid root.
string ValidRootName { get; set; }
#endregion
diff --git a/CampusAppWP8/CampusAppWPortalLib8/Model/Lecture/LectureActivity.cs b/CampusAppWP8/CampusAppWPortalLib8/Model/Lecture/LectureActivity.cs
index 8f1a478e..f822f57a 100644
--- a/CampusAppWP8/CampusAppWPortalLib8/Model/Lecture/LectureActivity.cs
+++ b/CampusAppWP8/CampusAppWPortalLib8/Model/Lecture/LectureActivity.cs
@@ -1,10 +1,11 @@
//-----------------------------------------------------------------------
//
-// Company copyright tag.
+// The MIT License (MIT). Copyright (c) 2013 BTU/IIT.
//
-// stubbfel
-// 13.06.2013
-//----------------------------------------------------------------------
+// Stubbfel
+// 15.10.2013
+// Implements the lecture activity class
+//-----------------------------------------------------------------------
namespace CampusAppWPortalLib8.Model.Lecture
{
using System.Collections.ObjectModel;
@@ -12,55 +13,45 @@ namespace CampusAppWPortalLib8.Model.Lecture
using CampusAppWPortalLib8.Resources;
using CampusAppWPortalLib8.Utility;
- ///
- /// Model for a Activity
- ///
+ /// Model for a Activity.
+ /// Stubbfel, 15.10.2013.
public class LectureActivity
{
#region Members
- /// The activity icon name lecture.
+ /// The activity icon name lecture.
public const string ActivityTypeLecture = "Vorlesung";
- /// The activity icon name seminar.
+ /// The activity icon name seminar.
public const string ActivityTypeSeminar = "Seminar";
- /// The activity icon name practice.
+ /// The activity icon name practice.
public const string ActivityTypePract = "Übung";
- /// The activity icon name lab.
+ /// The activity icon name lab.
public const string ActivityTypeLab = "Labor";
- /// The activity icon name exam.
+ /// The activity icon name exam.
public const string ActivityTypeExam = "Prüfung";
- ///
- /// List of lecturer
- ///
+ /// List of lecturer.
private ObservableCollection lecturer;
- ///
- /// a formatted string for the names of the lecturers
- ///
+ /// a formatted string for the names of the lecturers.
private string lecturerString;
- ///
- /// a formatted string for the names of the courses
- ///
+ /// a formatted string for the names of the courses.
private string courseString;
- ///
- /// a formatted string for the topic of the lecture
- ///
+ /// a formatted string for the topic of the lecture.
private string topic;
#endregion
#region Constructor
- ///
- /// Initializes a new instance of the class.
- ///
+ /// Initializes a new instance of the class.
+ /// Stubbfel, 15.10.2013.
public LectureActivity()
{
}
@@ -69,45 +60,38 @@ namespace CampusAppWPortalLib8.Model.Lecture
#region Proberty
- ///
- /// Gets or sets the type of the activity
- ///
+ /// Gets or sets the type of the activity.
+ /// The type.
[XmlElement("art")]
public string Type { get; set; }
- ///
- /// Gets or sets the id of the activity
- ///
+ /// Gets or sets the id of the activity.
+ /// The identifier.
[XmlAttribute("id")]
public int Id { get; set; }
- ///
- /// Gets or sets semester of the activity
- ///
+ /// Gets or sets semester of the activity.
+ /// The semester.
[XmlElement("semester")]
public int Semester { get; set; }
- ///
- /// Gets or sets the contact hour
- ///
+ /// Gets or sets the contact hour.
+ /// The sws.
[XmlElement("sws")]
public string SWS { get; set; }
- ///
- /// Gets or sets LectureModule
- ///
+ /// Gets or sets LectureModule.
+ /// The modul.
[XmlElement("modul")]
public LectureModule Modul { get; set; }
- ///
- /// Gets or sets LectureTitle
- ///
+ /// Gets or sets LectureTitle.
+ /// The title.
[XmlElement("titel")]
public string Title { get; set; }
- ///
- /// Gets or sets the lecturers
- ///
+ /// Gets or sets the lecturers.
+ /// The lecturer.
[XmlElement("lehrperson")]
public ObservableCollection Lecturer
{
@@ -125,9 +109,8 @@ namespace CampusAppWPortalLib8.Model.Lecture
}
}
- ///
- /// Gets or sets the formatted string of the lecturers
- ///
+ /// Gets or sets the formatted string of the lecturers.
+ /// The lecturer string.
public string LecturerString
{
get
@@ -144,9 +127,8 @@ namespace CampusAppWPortalLib8.Model.Lecture
}
}
- ///
- /// Gets or sets formatted string of the courses
- ///
+ /// Gets or sets formatted string of the courses.
+ /// The course string.
public string CourseString
{
get
@@ -163,27 +145,23 @@ namespace CampusAppWPortalLib8.Model.Lecture
}
}
- ///
- /// Gets or sets the courses
- ///
+ /// Gets or sets the courses.
+ /// The course.
[XmlElement("studiengang")]
public ObservableCollection Course { get; set; }
- ///
- /// Gets or sets the dates of the activity
- ///
+ /// Gets or sets the dates of the activity.
+ /// The dates.
[XmlElement("termin")]
public ObservableCollection Dates { get; set; }
- ///
- /// Gets or sets the Department
- ///
+ /// Gets or sets the Department.
+ /// The department.
[XmlElement("zugeordnete_einrichtung")]
public string Department { get; set; }
- ///
- /// Gets or sets the topic of the Lecture
- ///
+ /// Gets or sets the topic of the Lecture.
+ /// The topic.
[XmlElement("lehrinhalt")]
public string Topic
{
@@ -206,9 +184,8 @@ namespace CampusAppWPortalLib8.Model.Lecture
#region public
- ///
- /// Method create a formatted string of the LecturerList
- ///
+ /// Method create a formatted string of the LecturerList.
+ /// Stubbfel, 15.10.2013.
public void CreateLectureString()
{
string result = string.Empty;
@@ -220,9 +197,8 @@ namespace CampusAppWPortalLib8.Model.Lecture
this.LecturerString = DefaultStringManager.RemoveNewLine(result);
}
- ///
- /// Method create a formatted string of the CourseList
- ///
+ /// Method create a formatted string of the CourseList.
+ /// Stubbfel, 15.10.2013.
public void CreateCourseString()
{
string result = string.Empty;
diff --git a/CampusAppWP8/CampusAppWPortalLib8/Model/Lecture/LectureCourse.cs b/CampusAppWP8/CampusAppWPortalLib8/Model/Lecture/LectureCourse.cs
index 1faedc53..6a030cbf 100644
--- a/CampusAppWP8/CampusAppWPortalLib8/Model/Lecture/LectureCourse.cs
+++ b/CampusAppWP8/CampusAppWPortalLib8/Model/Lecture/LectureCourse.cs
@@ -1,23 +1,23 @@
-//
-// Company copyright tag.
+//-----------------------------------------------------------------------
+//
+// The MIT License (MIT). Copyright (c) 2013 BTU/IIT.
//
-// stubbfel
-// 10.06.2013
-//----------------------------------------------------------------------
+// Stubbfel
+// 15.10.2013
+// Implements the lecture course class
+//-----------------------------------------------------------------------
namespace CampusAppWPortalLib8.Model.Lecture
{
using System.Xml.Serialization;
- ///
- /// Model for a course
- ///
+ /// Model for a course.
+ /// Stubbfel, 15.10.2013.
public class LectureCourse
{
#region Constructor
- ///
- /// Initializes a new instance of the class.
- ///
+ /// Initializes a new instance of the class.
+ /// Stubbfel, 15.10.2013.
public LectureCourse()
{
}
@@ -26,9 +26,8 @@ namespace CampusAppWPortalLib8.Model.Lecture
#region Property
- ///
- /// Gets or sets the title of the course
- ///
+ /// Gets or sets the title of the course.
+ /// The title.
[XmlElement("bezeichnung")]
public string Title { get; set; }
diff --git a/CampusAppWP8/CampusAppWPortalLib8/Model/Lecture/LectureDate.cs b/CampusAppWP8/CampusAppWPortalLib8/Model/Lecture/LectureDate.cs
index e14aac6f..d44efabd 100644
--- a/CampusAppWP8/CampusAppWPortalLib8/Model/Lecture/LectureDate.cs
+++ b/CampusAppWP8/CampusAppWPortalLib8/Model/Lecture/LectureDate.cs
@@ -1,24 +1,23 @@
//-----------------------------------------------------------------------
//
-// Company copyright tag.
+// The MIT License (MIT). Copyright (c) 2013 BTU/IIT.
//
-// stubbfel
-// 10.06.2013
-//----------------------------------------------------------------------
+// Stubbfel
+// 15.10.2013
+// Implements the lecture date class
+//-----------------------------------------------------------------------
namespace CampusAppWPortalLib8.Model.Lecture
{
using System.Xml.Serialization;
- ///
- /// Model for the date of an activity
- ///
+ /// Model for the date of an activity.
+ /// Stubbfel, 15.10.2013.
public class LectureDate
{
#region Constructor
- ///
- /// Initializes a new instance of the class.
- ///
+ /// Initializes a new instance of the class.
+ /// Stubbfel, 15.10.2013.
public LectureDate()
{
}
@@ -27,45 +26,38 @@ namespace CampusAppWPortalLib8.Model.Lecture
#region Property
- ///
- /// Gets or sets WeekDay
- ///
+ /// Gets or sets WeekDay.
+ /// The week day.
[XmlElement("wochentag")]
public string WeekDay { get; set; }
- ///
- /// Gets or sets From
- ///
+ /// Gets or sets From.
+ /// from.
[XmlElement("von")]
public string From { get; set; }
- ///
- /// Gets or sets To
- ///
+ /// Gets or sets To.
+ /// to.
[XmlElement("bis")]
public string To { get; set; }
- ///
- /// Gets or sets Interval
- ///
+ /// Gets or sets Interval.
+ /// The interval.
[XmlElement("rhythmus")]
public string Interval { get; set; }
- ///
- /// Gets or sets Room
- ///
+ /// Gets or sets Room.
+ /// The room.
[XmlElement("raum")]
public string Room { get; set; }
- ///
- /// Gets or sets StartDate
- ///
+ /// Gets or sets StartDate.
+ /// The start date.
[XmlElement("anfangsdatum")]
public string StartDate { get; set; }
- ///
- /// Gets or sets EndDate
- ///
+ /// Gets or sets EndDate.
+ /// The end date.
[XmlElement("enddatum")]
public string EndDate { get; set; }
diff --git a/CampusAppWP8/CampusAppWPortalLib8/Model/Lecture/LectureLecturer.cs b/CampusAppWP8/CampusAppWPortalLib8/Model/Lecture/LectureLecturer.cs
index 2c69ab67..f78e47c5 100644
--- a/CampusAppWP8/CampusAppWPortalLib8/Model/Lecture/LectureLecturer.cs
+++ b/CampusAppWP8/CampusAppWPortalLib8/Model/Lecture/LectureLecturer.cs
@@ -1,24 +1,23 @@
//-----------------------------------------------------------------------
//
-// Company copyright tag.
+// The MIT License (MIT). Copyright (c) 2013 BTU/IIT.
//
-// stubbfel
-// 10.06.2013
-//----------------------------------------------------------------------
+// Stubbfel
+// 15.10.2013
+// Implements the lecture lecturer class
+//-----------------------------------------------------------------------
namespace CampusAppWPortalLib8.Model.Lecture
{
using System.Xml.Serialization;
- ///
- /// Model for a lecturer
- ///
+ /// Model for a lecturer.
+ /// Stubbfel, 15.10.2013.
public class LectureLecturer
{
#region Constructor
- ///
- /// Initializes a new instance of the class.
- ///
+ /// Initializes a new instance of the class.
+ /// Stubbfel, 15.10.2013.
public LectureLecturer()
{
}
@@ -27,27 +26,23 @@ namespace CampusAppWPortalLib8.Model.Lecture
#region Property
- ///
- /// Gets or sets the FirstName of a lecturer
- ///
+ /// Gets or sets the FirstName of a lecturer.
+ /// The name of the first.
[XmlElement("vorname")]
public string FirstName { get; set; }
- ///
- /// Gets or sets the LastName of a lecturer
- ///
+ /// Gets or sets the LastName of a lecturer.
+ /// The name of the last.
[XmlElement("name")]
public string LastName { get; set; }
- ///
- /// Gets or sets the title of a lecturer
- ///
+ /// Gets or sets the title of a lecturer.
+ /// The title.
[XmlElement("titel")]
public string Title { get; set; }
- ///
- /// Gets or sets the Responsibility of a lecturer
- ///
+ /// Gets or sets the Responsibility of a lecturer.
+ /// The responsibility.
[XmlAttribute("zustaendigkeit")]
public string Responsibility { get; set; }
@@ -56,9 +51,10 @@ namespace CampusAppWPortalLib8.Model.Lecture
#region Method
///
- /// Method overrides the base ToString() and create an formatted string of the lecturer
+ /// Method overrides the base ToString() and create an formatted string of the lecturer.
///
- /// returns a string like: [Title] FirstName LastName [(Responsibility)]
+ /// Stubbfel, 15.10.2013.
+ /// returns a string like: [Title] FirstName LastName [(Responsibility)].
public override string ToString()
{
string result = string.Empty;
diff --git a/CampusAppWP8/CampusAppWPortalLib8/Model/Lecture/LectureList.cs b/CampusAppWP8/CampusAppWPortalLib8/Model/Lecture/LectureList.cs
index 5891f1e8..a10e7895 100644
--- a/CampusAppWP8/CampusAppWPortalLib8/Model/Lecture/LectureList.cs
+++ b/CampusAppWP8/CampusAppWPortalLib8/Model/Lecture/LectureList.cs
@@ -1,28 +1,27 @@
//-----------------------------------------------------------------------
//
-// Company copyright tag.
+// The MIT License (MIT). Copyright (c) 2013 BTU/IIT.
//
-// stubbfel
-// 10.06.2013
-//----------------------------------------------------------------------
+// Stubbfel
+// 15.10.2013
+// Implements the lecture list class
+//-----------------------------------------------------------------------
namespace CampusAppWPortalLib8.Model.Lecture
{
using System.Collections.ObjectModel;
using System.Linq;
using System.Xml.Serialization;
- ///
- /// Model for a List of LectureActivity
- ///
- /// T : LectureActivity
+ /// Model for a List of LectureActivity.
+ /// Stubbfel, 15.10.2013.
+ /// T : LectureActivity.
[XmlRoot("lsf_auszug")]
public class LectureList where T : LectureActivity
{
#region Constructor
- ///
- /// Initializes a new instance of the class.
- ///
+ /// Initializes a new instance of the class.
+ /// Stubbfel, 15.10.2013.
public LectureList()
{
}
@@ -31,9 +30,8 @@ namespace CampusAppWPortalLib8.Model.Lecture
#region Proberty
- ///
- /// Gets or sets List of the activities
- ///
+ /// Gets or sets List of the activities.
+ /// The activities.
[XmlArray("veranstaltungsliste")]
[XmlArrayItem("veranstaltung")]
public ObservableCollection Activities { get; set; }
@@ -42,20 +40,19 @@ namespace CampusAppWPortalLib8.Model.Lecture
#region Methods
- ///
- /// Method return a certain activity
- ///
- /// id of the activity
- /// the activity (FirstOrDefault)
+ /// Method return a certain activity.
+ /// Stubbfel, 15.10.2013.
+ /// id of the activity.
+ /// the activity (FirstOrDefault)
public T GetActivity(int id)
{
T activity = this.Activities.Where(p => p.Id == id).FirstOrDefault();
return activity;
}
- /// Filter by course string.
- /// Stubbfel, 10.09.2013.
- /// Specifies the filter.
+ /// Filter by course string.
+ /// Stubbfel, 10.09.2013.
+ /// Specifies the filter.
public void FilterByCourseTitle(string filter)
{
ObservableCollection filteredCollection = new ObservableCollection();
diff --git a/CampusAppWP8/CampusAppWPortalLib8/Model/Lecture/LectureModule.cs b/CampusAppWP8/CampusAppWPortalLib8/Model/Lecture/LectureModule.cs
index 0b20bf00..e7015654 100644
--- a/CampusAppWP8/CampusAppWPortalLib8/Model/Lecture/LectureModule.cs
+++ b/CampusAppWP8/CampusAppWPortalLib8/Model/Lecture/LectureModule.cs
@@ -1,40 +1,35 @@
//-----------------------------------------------------------------------
//
-// Company copyright tag.
+// The MIT License (MIT). Copyright (c) 2013 BTU/IIT.
//
-// stubbfel
-// 10.06.2013
-//----------------------------------------------------------------------
+// Stubbfel
+// 15.10.2013
+// Implements the lecture module class
+//-----------------------------------------------------------------------
namespace CampusAppWPortalLib8.Model.Lecture
{
using System;
using System.Xml.Serialization;
using CampusAppWPortalLib8.Resources;
- ///
- /// Model for the module of an lecture
- ///
+ /// Model for the module of an lecture.
+ /// Stubbfel, 15.10.2013.
public class LectureModule
{
#region Members
- ///
- /// Number of the module (like an id)
- ///
+ /// Number of the module (like an id)
private int number;
- ///
- /// Url to the website of the module
- ///
+ /// Url to the website of the module.
private Uri url;
#endregion
#region Constructor
- ///
- /// Initializes a new instance of the class.
- ///
+ /// Initializes a new instance of the class.
+ /// Stubbfel, 15.10.2013.
public LectureModule()
{
}
@@ -43,15 +38,13 @@ namespace CampusAppWPortalLib8.Model.Lecture
#region Property
- ///
- /// Gets or sets the title of the module
- ///
+ /// Gets or sets the title of the module.
+ /// The title.
[XmlElement("titel")]
public string Title { get; set; }
- ///
- /// Gets or sets the number of the module and create the URL
- ///
+ /// Gets or sets the number of the module and create the URL.
+ /// The total number of ber.
[XmlElement("nummer")]
public int Number
{
@@ -70,9 +63,8 @@ namespace CampusAppWPortalLib8.Model.Lecture
}
}
- ///
- /// Gets the URL of the module
- ///
+ /// Gets the URL of the module.
+ /// The URL.
public Uri Url
{
get
@@ -85,9 +77,8 @@ namespace CampusAppWPortalLib8.Model.Lecture
#region Methods
- ///
- /// Method create the url of the module
- ///
+ /// Method create the url of the module.
+ /// Stubbfel, 15.10.2013.
private void CreateUrl()
{
this.url = new Uri(Constants.UrlLecture_ModulBaseAddr + this.number.ToString());
diff --git a/CampusAppWP8/CampusAppWPortalLib8/Model/Link/LinkListModel.cs b/CampusAppWP8/CampusAppWPortalLib8/Model/Link/LinkListModel.cs
index 6895ca07..8177cfea 100644
--- a/CampusAppWP8/CampusAppWPortalLib8/Model/Link/LinkListModel.cs
+++ b/CampusAppWP8/CampusAppWPortalLib8/Model/Link/LinkListModel.cs
@@ -1,37 +1,33 @@
-//-----------------------------------------------------------------------------
+//-----------------------------------------------------------------------
//
-// Company copyright tag.
+// The MIT License (MIT). Copyright (c) 2013 BTU/IIT.
//
-// stubbfel
-// 02.07.2013
-//-----------------------------------------------------------------------------
-
+// Stubbfel
+// 15.10.2013
+// Implements the link list model class
+//-----------------------------------------------------------------------
namespace CampusAppWPortalLib8.Model.Link
{
using System;
using System.Collections.ObjectModel;
using System.Xml.Serialization;
- ///
- /// Model for a list of links.
- ///
+ /// Model for a list of links.
+ /// Stubbfel, 15.10.2013.
[XmlRoot("root")]
public class LinkListModel
{
#region Member
- ///
- /// Time when the model was created.
- ///
+ /// Time when the model was created.
private readonly DateTime createTime;
#endregion
#region Constructor
- ///
- /// Initializes a new instance of the class.
- ///
+ /// Initializes a new instance of the class.
+ /// Stubbfel, 15.10.2013.
public LinkListModel()
{
this.createTime = DateTime.Now;
@@ -41,16 +37,14 @@ namespace CampusAppWPortalLib8.Model.Link
#region Property
- ///
- /// Gets or sets feed information item list.
- ///
+ /// Gets or sets feed information item list.
+ /// The links.
[XmlArray("data")]
[XmlArrayItem("link")]
public ObservableCollection Links { get; set; }
- ///
- /// Gets the creation time of the model.
- ///
+ /// Gets the creation time of the model.
+ /// The create time.
public DateTime CreateTime
{
get
diff --git a/CampusAppWP8/CampusAppWPortalLib8/Model/Link/LinkModel.cs b/CampusAppWP8/CampusAppWPortalLib8/Model/Link/LinkModel.cs
index 9e2a67cb..d085c3c6 100644
--- a/CampusAppWP8/CampusAppWPortalLib8/Model/Link/LinkModel.cs
+++ b/CampusAppWP8/CampusAppWPortalLib8/Model/Link/LinkModel.cs
@@ -1,50 +1,40 @@
-//-----------------------------------------------------------------------------
+//-----------------------------------------------------------------------
//
-// Company copyright tag.
+// The MIT License (MIT). Copyright (c) 2013 BTU/IIT.
//
-// stubbfel
-// 02.07.2013
-//-----------------------------------------------------------------------------
-
+// Stubbfel
+// 15.10.2013
+// Implements the link model class
+//-----------------------------------------------------------------------
namespace CampusAppWPortalLib8.Model.Link
{
using System.Globalization;
using System.Xml.Serialization;
-
- ///
- /// Model for menu
- ///
+
+ /// Model for menu.
+ /// Stubbfel, 15.10.2013.
public class LinkModel
{
#region Member
- ///
- /// German version of the link title.
- ///
+ /// German version of the link title.
private string titleDE;
- ///
- /// English version of the link title.
- ///
+ /// English version of the link title.
private string titleEN;
- ///
- /// German version of the link.
- ///
+ /// German version of the link.
private string linkDE;
- ///
- /// English version of the link.
- ///
+ /// English version of the link.
private string linkEN;
#endregion
#region Constructor
- ///
- /// Initializes a new instance of the class.
- ///
+ /// Initializes a new instance of the class.
+ /// Stubbfel, 15.10.2013.
public LinkModel()
{
}
@@ -53,9 +43,8 @@ namespace CampusAppWPortalLib8.Model.Link
#region Property
- ///
- /// Gets or sets the german title of the link.
- ///
+ /// Gets or sets the german title of the link.
+ /// The title de.
[XmlAttribute("title_de")]
public string Title_DE
{
@@ -73,9 +62,8 @@ namespace CampusAppWPortalLib8.Model.Link
}
}
- ///
- /// Gets or sets the english title of the link.
- ///
+ /// Gets or sets the english title of the link.
+ /// The title en.
[XmlAttribute("title_en")]
public string Title_EN
{
@@ -90,9 +78,8 @@ namespace CampusAppWPortalLib8.Model.Link
}
}
- ///
- /// Gets or sets the german link.
- ///
+ /// Gets or sets the german link.
+ /// The link de.
[XmlAttribute("link_de")]
public string Link_DE
{
@@ -110,9 +97,8 @@ namespace CampusAppWPortalLib8.Model.Link
}
}
- ///
- /// Gets or sets the english link.
- ///
+ /// Gets or sets the english link.
+ /// The link en.
[XmlAttribute("link_en")]
public string Link_EN
{
@@ -131,9 +117,10 @@ namespace CampusAppWPortalLib8.Model.Link
}
///
- /// Gets the localized title. If the phone is set to german language,
- /// the german title will be returned otherwise the english title.
+ /// Gets the localized title. If the phone is set to german language, the german title will
+ /// be returned otherwise the english title.
///
+ /// The title.
public string Title
{
get
@@ -150,9 +137,10 @@ namespace CampusAppWPortalLib8.Model.Link
}
///
- /// Gets the localized link. if the phone is set to german language,
- /// the german comment will be returned otherwise the english link.
+ /// Gets the localized link. if the phone is set to german language, the german comment will
+ /// be returned otherwise the english link.
///
+ /// The link.
public string Link
{
get
diff --git a/CampusAppWP8/CampusAppWPortalLib8/Model/Mensa/MealModel.cs b/CampusAppWP8/CampusAppWPortalLib8/Model/Mensa/MealModel.cs
index 80a239f1..18a32b4d 100644
--- a/CampusAppWP8/CampusAppWPortalLib8/Model/Mensa/MealModel.cs
+++ b/CampusAppWP8/CampusAppWPortalLib8/Model/Mensa/MealModel.cs
@@ -1,96 +1,66 @@
//-----------------------------------------------------------------------
//
-// Company copyright tag.
+// The MIT License (MIT). Copyright (c) 2013 BTU/IIT.
//
-// stubbfel
-// 06.08.2013
-//----------------------------------------------------------------------
+// Stubbfel
+// 15.10.2013
+// Implements the meal model class
+//-----------------------------------------------------------------------
namespace CampusAppWPortalLib8.Model.Mensa
{
using System.Xml.Serialization;
using CampusAppWPortalLib8.Resources;
using CampusAppWPortalLib8.Utility;
- ///
- /// Model for a meal
- ///
+ /// Model for a meal.
+ /// Stubbfel, 15.10.2013.
public class MealModel
{
#region Members
- ///
- /// Constant for the vegetarian icon
- ///
+ /// Constant for the vegetarian icon.
public const string MealIconNameVegetarian = "CARROTTE";
- ///
- /// Constant for the free icon
- ///
+ /// Constant for the free icon.
public const string MealIconNameFree = "FREI";
- ///
- /// Constant for the pig icon
- ///
+ /// Constant for the pig icon.
public const string MealIconNamePig = "SCHWEIN";
- ///
- /// Constant for the cow icon
- ///
+ /// Constant for the cow icon.
public const string MealIconNameCow = "RIND";
- ///
- /// Constant for the fowl icon
- ///
+ /// Constant for the fowl icon.
public const string MealIconNameFowl = "GEFL";
- ///
- /// Constant for the cow-pig icon
- ///
+ /// Constant for the cow-pig icon.
public const string MealIconNameCowPig = "RINDSCHWEIN";
- ///
- /// Constant for the fish icon
- ///
+ /// Constant for the fish icon.
public const string MealIconNameFish = "FISCH";
- ///
- /// Constant for the wild icon
- ///
+ /// Constant for the wild icon.
public const string MealIconNameWild = "WILD";
- ///
- /// Constant for the lamb icon
- ///
+ /// Constant for the lamb icon.
public const string MealIconNameLamb = "LAMM";
- ///
- /// Variable for the id of the meal
- ///
- ///
- /// ValueRange : 0 - 7
- ///
+ /// Variable for the id of the meal.
private int mealId;
- ///
- /// Name of the meal
- ///
+ /// Name of the meal.
private string mealName;
- ///
- /// Description of the meal
- ///
+ /// Description of the meal.
private string mealDesc;
#endregion
#region Proberty
- ///
- /// Gets or sets the mealId
- ///
- ///
- /// ValueRange : 0 - 7
- ///
+ /// Gets or sets the mealId.
+ /// ValueRange : 0 - 7.
+ /// The identifier of the meal.
[XmlAttribute("id")]
public int MealId
{
@@ -109,9 +79,8 @@ namespace CampusAppWPortalLib8.Model.Mensa
}
}
- ///
- /// Gets the mealName
- ///
+ /// Gets the mealName.
+ /// The name of the meal.
public string MealName
{
get
@@ -120,9 +89,8 @@ namespace CampusAppWPortalLib8.Model.Mensa
}
}
- ///
- /// Gets or sets the mealDescription
- ///
+ /// Gets or sets the mealDescription.
+ /// Information describing the meal.
[XmlAttribute("desc")]
public string MealDesc
{
@@ -140,14 +108,12 @@ namespace CampusAppWPortalLib8.Model.Mensa
}
}
- ///
- /// Gets or sets the icon url
- ///
+ /// Gets or sets the icon url.
+ /// The icon URL.
public string IconUrl { get; set; }
- ///
- /// Gets or sets the icon name
- ///
+ /// Gets or sets the icon name.
+ /// The name of the icon.
[XmlAttribute("icon")]
public string IconName { get; set; }
@@ -155,9 +121,8 @@ namespace CampusAppWPortalLib8.Model.Mensa
#region Methods
- ///
- /// Method create depends of the mealId the mealName
- ///
+ /// Method create depends of the mealId the mealName.
+ /// Stubbfel, 15.10.2013.
private void CreateMealName()
{
switch (this.mealId)
diff --git a/CampusAppWP8/CampusAppWPortalLib8/Model/Mensa/MenuModel.cs b/CampusAppWP8/CampusAppWPortalLib8/Model/Mensa/MenuModel.cs
index 6e03d69d..5e4f7304 100644
--- a/CampusAppWP8/CampusAppWPortalLib8/Model/Mensa/MenuModel.cs
+++ b/CampusAppWP8/CampusAppWPortalLib8/Model/Mensa/MenuModel.cs
@@ -1,40 +1,35 @@
//-----------------------------------------------------------------------
//
-// Company copyright tag.
+// The MIT License (MIT). Copyright (c) 2013 BTU/IIT.
//
-// stubbfel
-// 04.05.2013
-//----------------------------------------------------------------------
+// Stubbfel
+// 15.10.2013
+// Implements the menu model class
+//-----------------------------------------------------------------------
namespace CampusAppWPortalLib8.Model.Mensa
{
using System;
using System.Collections.ObjectModel;
using System.Xml.Serialization;
- ///
- /// Model for menu
- ///
+ /// Model for menu.
+ /// Stubbfel, 15.10.2013.
public class MenuModel
{
#region Member
- ///
- /// Name of the day
- ///
+ /// Name of the day.
private string dayName;
- ///
- /// DateTime of the day
- ///
+ /// DateTime of the day.
private string date;
#endregion
#region Constructor
- ///
- /// Initializes a new instance of the class.
- ///
+ /// Initializes a new instance of the class.
+ /// Stubbfel, 15.10.2013.
public MenuModel()
{
}
@@ -43,15 +38,13 @@ namespace CampusAppWPortalLib8.Model.Mensa
#region Property
- ///
- /// Gets or sets the menus for the week
- ///
+ /// Gets or sets the menus for the week.
+ /// The meals.
[XmlElement("Meal")]
public ObservableCollection Meals { get; set; }
- ///
- /// Gets or sets the WeekDay
- ///
+ /// Gets or sets the WeekDay.
+ /// The day.
[XmlAttribute("day")]
public string Day
{
@@ -69,9 +62,8 @@ namespace CampusAppWPortalLib8.Model.Mensa
}
}
- ///
- /// Gets or sets of Date
- ///
+ /// Gets or sets of Date.
+ /// The date.
[XmlAttribute("date")]
public string Date
{
diff --git a/CampusAppWP8/CampusAppWPortalLib8/Model/Mensa/MenuWeekModel.cs b/CampusAppWP8/CampusAppWPortalLib8/Model/Mensa/MenuWeekModel.cs
index 35338718..f16db12d 100644
--- a/CampusAppWP8/CampusAppWPortalLib8/Model/Mensa/MenuWeekModel.cs
+++ b/CampusAppWP8/CampusAppWPortalLib8/Model/Mensa/MenuWeekModel.cs
@@ -1,35 +1,32 @@
//-----------------------------------------------------------------------
//
-// Company copyright tag.
+// The MIT License (MIT). Copyright (c) 2013 BTU/IIT.
//
-// stubbfel
-// 03.05.2013
-//----------------------------------------------------------------------
+// Stubbfel
+// 15.10.2013
+// Implements the menu week model class
+//-----------------------------------------------------------------------
namespace CampusAppWPortalLib8.Model.Mensa
{
using System;
using System.Collections.ObjectModel;
using System.Xml.Serialization;
- ///
- /// Model for menus in one week
- ///
+ /// Model for menus in one week.
+ /// Stubbfel, 15.10.2013.
[XmlRoot("root")]
public class MenuWeekModel
{
#region Members
- ///
- /// Time when the model was created
- ///
+ /// Time when the model was created.
private readonly DateTime createTime;
#endregion
#region Constructor
- ///
- /// Initializes a new instance of the class.
- ///
+ /// Initializes a new instance of the class.
+ /// Stubbfel, 15.10.2013.
public MenuWeekModel()
{
this.createTime = DateTime.Now;
@@ -39,16 +36,14 @@ namespace CampusAppWPortalLib8.Model.Mensa
#region Proberty
- ///
- /// Gets or sets the menus for the week
- ///
+ /// Gets or sets the menus for the week.
+ /// The menus.
[XmlArray("Mealplan")]
[XmlArrayItem("Menu")]
public ObservableCollection Menus { get; set; }
- ///
- /// Gets the creation time of the model
- ///
+ /// Gets the creation time of the model.
+ /// The create time.
public DateTime CreateTime
{
get
@@ -61,10 +56,9 @@ namespace CampusAppWPortalLib8.Model.Mensa
#region Methods
- ///
- /// Method calculate this day of the week, which its gets new menus
- ///
- /// Date of NewMenuWeekDay
+ /// Method calculate this day of the week, which its gets new menus.
+ /// Stubbfel, 15.10.2013.
+ /// Date of NewMenuWeekDay.
public static DateTime CalcFirstWeekDay()
{
DateTime now = DateTime.Now;
@@ -77,15 +71,14 @@ namespace CampusAppWPortalLib8.Model.Mensa
return monday;
}
- ///
- /// Method determine holidays (Days with no meals) and add a pseudo meal
- ///
- /// text of the pseudo meal
+ /// Method determine holidays (Days with no meals) and add a pseudo meal.
+ /// Stubbfel, 15.10.2013.
+ /// text of the pseudo meal.
public void SetHolidayCaption(string text)
{
MealModel holiday = new MealModel();
holiday.MealDesc = text;
- holiday.MealId= -1;
+ holiday.MealId = -1;
foreach (MenuModel menu in this.Menus)
{
@@ -95,6 +88,7 @@ namespace CampusAppWPortalLib8.Model.Mensa
{
menu.Meals = new ObservableCollection();
}
+
menu.Meals.Add(holiday);
}
}
diff --git a/CampusAppWP8/CampusAppWPortalLib8/Model/ModelTypes.cs b/CampusAppWP8/CampusAppWPortalLib8/Model/ModelTypes.cs
index 9964b4e3..4ca51bac 100644
--- a/CampusAppWP8/CampusAppWPortalLib8/Model/ModelTypes.cs
+++ b/CampusAppWP8/CampusAppWPortalLib8/Model/ModelTypes.cs
@@ -1,14 +1,15 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
+//-----------------------------------------------------------------------
+//
+// The MIT License (MIT). Copyright (c) 2013 BTU/IIT.
+//
+// fiedlchr
+// 15.10.2013
+// Implements the model types class
+//-----------------------------------------------------------------------
namespace CampusAppWPortalLib8.Model
{
- ///
- /// Specifies the I/O type of the model.
- ///
+ /// Specifies the I/O type of the model.
+ /// fiedlchr, 15.10.2013.
public enum ModelType
{
///
diff --git a/CampusAppWP8/CampusAppWPortalLib8/Model/Openinghours/OpeninghoursInstitutionModel.cs b/CampusAppWP8/CampusAppWPortalLib8/Model/Openinghours/OpeninghoursInstitutionModel.cs
index 33d038f5..5a59452b 100644
--- a/CampusAppWP8/CampusAppWPortalLib8/Model/Openinghours/OpeninghoursInstitutionModel.cs
+++ b/CampusAppWP8/CampusAppWPortalLib8/Model/Openinghours/OpeninghoursInstitutionModel.cs
@@ -1,97 +1,66 @@
-//-----------------------------------------------------------------------------
+//-----------------------------------------------------------------------
//
-// Company copyright tag.
+// The MIT License (MIT). Copyright (c) 2013 BTU/IIT.
//
-// fiedlchr
-// 24.06.2013
-//-----------------------------------------------------------------------------
-
+// Stubbfel
+// 15.10.2013
+// Implements the openinghours institution model class
+//-----------------------------------------------------------------------
namespace CampusAppWPortalLib8.Model.Openinghours
{
using System.Globalization;
using System.Windows;
using System.Xml.Serialization;
-
- ///
- /// Model for menu
- ///
+
+ /// Model for menu.
+ /// Stubbfel, 15.10.2013.
public class OpeninghoursInstitutionModel
{
#region Member
- ///
- /// German version of the institution title.
- ///
+ /// German version of the institution title.
private string titleDE = string.Empty;
- ///
- /// English version of the institution title.
- ///
+ /// English version of the institution title.
private string titleEN = string.Empty;
- ///
- /// Opening hours on monday.
- ///
+ /// Opening hours on monday.
private string dayMonday = string.Empty;
- ///
- /// Opening hours on tuesday.
- ///
+ /// Opening hours on tuesday.
private string dayTuesday = string.Empty;
- ///
- /// Opening hours on wednesday.
- ///
+ /// Opening hours on wednesday.
private string dayWednesday = string.Empty;
- ///
- /// Opening hours on thursday.
- ///
+ /// Opening hours on thursday.
private string dayThursday = string.Empty;
- ///
- /// Opening hours on friday.
- ///
+ /// Opening hours on friday.
private string dayFriday = string.Empty;
- ///
- /// Opening hours on saturday.
- ///
+ /// Opening hours on saturday.
private string daySaturday = string.Empty;
- ///
- /// Opening hours on sunday.
- ///
+ /// Opening hours on sunday.
private string daySunday = string.Empty;
- ///
- /// Email address of the institution.
- ///
+ /// Email address of the institution.
private string infoEmail = string.Empty;
- ///
- /// Phone number of the institution.
- ///
+ /// Phone number of the institution.
private string infoPhone = string.Empty;
- ///
- /// Building name where the institution is located.
- ///
+ /// Building name where the institution is located.
private string infoBuilding = string.Empty;
- ///
- /// Room where the institution is located.
- ///
+ /// Room where the institution is located.
private string infoRoom = string.Empty;
- ///
- /// German version of the comment.
- ///
+ /// German version of the comment.
private string commentDE = string.Empty;
- ///
- /// English version of the comment.
- ///
+ /// English version of the comment.
private string commentEN = string.Empty;
#endregion
@@ -99,8 +68,9 @@ namespace CampusAppWPortalLib8.Model.Openinghours
#region Constructor
///
- /// Initializes a new instance of the class.
+ /// Initializes a new instance of the class.
///
+ /// Stubbfel, 15.10.2013.
public OpeninghoursInstitutionModel()
{
}
@@ -109,9 +79,8 @@ namespace CampusAppWPortalLib8.Model.Openinghours
#region Property
- ///
- /// Gets or sets the german title of the institution.
- ///
+ /// Gets or sets the german title of the institution.
+ /// The title de.
[XmlAttribute("title_de")]
public string Title_DE
{
@@ -126,9 +95,8 @@ namespace CampusAppWPortalLib8.Model.Openinghours
}
}
- ///
- /// Gets or sets the english title of the institution.
- ///
+ /// Gets or sets the english title of the institution.
+ /// The title en.
[XmlAttribute("title_en")]
public string Title_EN
{
@@ -143,9 +111,8 @@ namespace CampusAppWPortalLib8.Model.Openinghours
}
}
- ///
- /// Gets or sets the open hours on monday.
- ///
+ /// Gets or sets the open hours on monday.
+ /// The monday.
[XmlAttribute("monday")]
public string Monday
{
@@ -160,9 +127,8 @@ namespace CampusAppWPortalLib8.Model.Openinghours
}
}
- ///
- /// Gets or sets the open hours on tuesday.
- ///
+ /// Gets or sets the open hours on tuesday.
+ /// The tuesday.
[XmlAttribute("tuesday")]
public string Tuesday
{
@@ -176,10 +142,9 @@ namespace CampusAppWPortalLib8.Model.Openinghours
this.dayTuesday = this.FixOpeninghoursString(value);
}
}
-
- ///
- /// Gets or sets the open hours on wednesday.
- ///
+
+ /// Gets or sets the open hours on wednesday.
+ /// The wednesday.
[XmlAttribute("wednesday")]
public string Wednesday
{
@@ -194,9 +159,8 @@ namespace CampusAppWPortalLib8.Model.Openinghours
}
}
- ///
- /// Gets or sets the open hours on thursday.
- ///
+ /// Gets or sets the open hours on thursday.
+ /// The thursday.
[XmlAttribute("thursday")]
public string Thursday
{
@@ -211,9 +175,8 @@ namespace CampusAppWPortalLib8.Model.Openinghours
}
}
- ///
- /// Gets or sets the open hours on friday.
- ///
+ /// Gets or sets the open hours on friday.
+ /// The friday.
[XmlAttribute("friday")]
public string Friday
{
@@ -227,10 +190,9 @@ namespace CampusAppWPortalLib8.Model.Openinghours
this.dayFriday = this.FixOpeninghoursString(value);
}
}
-
- ///
- /// Gets or sets the open hours on saturday.
- ///
+
+ /// Gets or sets the open hours on saturday.
+ /// The saturday.
[XmlAttribute("saturday")]
public string Saturday
{
@@ -244,10 +206,9 @@ namespace CampusAppWPortalLib8.Model.Openinghours
this.daySaturday = this.FixOpeninghoursString(value);
}
}
-
- ///
- /// Gets or sets the open hours on sunday.
- ///
+
+ /// Gets or sets the open hours on sunday.
+ /// The sunday.
[XmlAttribute("sunday")]
public string Sunday
{
@@ -262,9 +223,8 @@ namespace CampusAppWPortalLib8.Model.Openinghours
}
}
- ///
- /// Gets or sets the email address of the institution.
- ///
+ /// Gets or sets the email address of the institution.
+ /// The e mail.
[XmlAttribute("email")]
public string EMail
{
@@ -278,10 +238,9 @@ namespace CampusAppWPortalLib8.Model.Openinghours
this.infoEmail = value;
}
}
-
- ///
- /// Gets or sets the phone number of the institution.
- ///
+
+ /// Gets or sets the phone number of the institution.
+ /// The phone.
[XmlAttribute("phone")]
public string Phone
{
@@ -296,9 +255,8 @@ namespace CampusAppWPortalLib8.Model.Openinghours
}
}
- ///
- /// Gets or sets the building where the institution is located.
- ///
+ /// Gets or sets the building where the institution is located.
+ /// The building.
[XmlAttribute("location_building")]
public string Building
{
@@ -313,9 +271,8 @@ namespace CampusAppWPortalLib8.Model.Openinghours
}
}
- ///
- /// Gets or sets the room where the institution is located.
- ///
+ /// Gets or sets the room where the institution is located.
+ /// The room.
[XmlAttribute("location_room")]
public string Room
{
@@ -330,9 +287,8 @@ namespace CampusAppWPortalLib8.Model.Openinghours
}
}
- ///
- /// Gets or sets the german comment.
- ///
+ /// Gets or sets the german comment.
+ /// The comment de.
[XmlAttribute("comment_de")]
public string Comment_DE
{
@@ -347,9 +303,8 @@ namespace CampusAppWPortalLib8.Model.Openinghours
}
}
- ///
- /// Gets or sets the english comment.
- ///
+ /// Gets or sets the english comment.
+ /// The comment en.
[XmlAttribute("comment_en")]
public string Comment_EN
{
@@ -365,9 +320,10 @@ namespace CampusAppWPortalLib8.Model.Openinghours
}
///
- /// Gets the localized title. If the phone is set to german language,
- /// the german title will be returned otherwise the english title.
+ /// Gets the localized title. If the phone is set to german language, the german title will
+ /// be returned otherwise the english title.
///
+ /// The title.
public string Title
{
get
@@ -384,9 +340,10 @@ namespace CampusAppWPortalLib8.Model.Openinghours
}
///
- /// Gets the localized comment. if the phone is set to german language,
- /// the german comment will be returned otherwise the english comment.
+ /// Gets the localized comment. if the phone is set to german language, the german comment
+ /// will be returned otherwise the english comment.
///
+ /// The comment.
public string Comment
{
get
@@ -403,9 +360,9 @@ namespace CampusAppWPortalLib8.Model.Openinghours
}
///
- /// Gets a string containing the email address and the institution
- /// title separated by ':'.
+ /// Gets a string containing the email address and the institution title separated by ':'.
///
+ /// The e mail title.
public string EMailTitle
{
get
@@ -415,9 +372,9 @@ namespace CampusAppWPortalLib8.Model.Openinghours
}
///
- /// Gets a string containing the phone number and the institution
- /// title separated by ':'.
+ /// Gets a string containing the phone number and the institution title separated by ':'.
///
+ /// The phone title.
public string PhoneTitle
{
get
@@ -430,11 +387,10 @@ namespace CampusAppWPortalLib8.Model.Openinghours
#region Method
- ///
- /// Removes unwanted chars in a string.
- ///
- /// input string
- /// fixed string
+ /// Removes unwanted chars in a string.
+ /// Stubbfel, 15.10.2013.
+ /// input string.
+ /// fixed string.
private string FixOpeninghoursString(string str)
{
string retValue = string.Empty;
diff --git a/CampusAppWP8/CampusAppWPortalLib8/Model/Openinghours/OpeninghoursModel.cs b/CampusAppWP8/CampusAppWPortalLib8/Model/Openinghours/OpeninghoursModel.cs
index edb61de4..42492466 100644
--- a/CampusAppWP8/CampusAppWPortalLib8/Model/Openinghours/OpeninghoursModel.cs
+++ b/CampusAppWP8/CampusAppWPortalLib8/Model/Openinghours/OpeninghoursModel.cs
@@ -1,42 +1,37 @@
-//-----------------------------------------------------------------------------
+//-----------------------------------------------------------------------
//
-// Company copyright tag.
+// The MIT License (MIT). Copyright (c) 2013 BTU/IIT.
//
// fiedlchr
-// 24.06.2013
-//-----------------------------------------------------------------------------
-
+// 15.10.2013
+// Implements the openinghours model class
+//-----------------------------------------------------------------------
namespace CampusAppWPortalLib8.Model.Openinghours
{
using System;
using System.Collections.ObjectModel;
using System.Xml.Serialization;
- ///
- /// Model for opening hours.
- ///
+ /// Model for opening hours.
+ /// fiedlchr, 15.10.2013.
+ /// Generic type parameter.
[XmlRoot("root")]
- public class OpeninghoursModel where T: OpeninghoursInstitutionModel
+ public class OpeninghoursModel where T : OpeninghoursInstitutionModel
{
#region Member
-
- ///
- /// Time when the model was created.
- ///
+
+ /// Time when the model was created.
private readonly DateTime createTime;
-
- ///
- /// Gets or sets feed information item list.
- ///
+
+ /// Gets or sets feed information item list.
private ObservableCollection institutions;
#endregion
#region Constructor
- ///
- /// Initializes a new instance of the class.
- ///
+ /// Initializes a new instance of the OpeninghoursModel class.
+ /// fiedlchr, 15.10.2013.
public OpeninghoursModel()
{
this.institutions = new ObservableCollection();
@@ -47,9 +42,8 @@ namespace CampusAppWPortalLib8.Model.Openinghours
#region Property
- ///
- /// Gets the creation time of the model.
- ///
+ /// Gets the creation time of the model.
+ /// The create time.
public DateTime CreateTime
{
get
@@ -57,10 +51,9 @@ namespace CampusAppWPortalLib8.Model.Openinghours
return this.createTime;
}
}
-
- ///
- /// Gets or sets the Institutions.
- ///
+
+ /// Gets or sets the Institutions.
+ /// The institutions.
[XmlArray("data")]
[XmlArrayItem("institution")]
public ObservableCollection Institutions
diff --git a/CampusAppWP8/CampusAppWPortalLib8/Model/Person/IPersonFunctionModel.cs b/CampusAppWP8/CampusAppWPortalLib8/Model/Person/IPersonFunctionModel.cs
index 6bc47b1b..243896e1 100644
--- a/CampusAppWP8/CampusAppWPortalLib8/Model/Person/IPersonFunctionModel.cs
+++ b/CampusAppWP8/CampusAppWPortalLib8/Model/Person/IPersonFunctionModel.cs
@@ -1,23 +1,23 @@
-//-----------------------------------------------------------------------------
+//-----------------------------------------------------------------------
//
-// Company copyright tag.
+// The MIT License (MIT). Copyright (c) 2013 BTU/IIT.
//
-// stubbfel
-// 01.10.2013
-//-----------------------------------------------------------------------------
+// Stubbfel
+// 15.10.2013
+// Declares the IPersonFunctionModel interface
+//-----------------------------------------------------------------------
namespace CampusAppWPortalLib8.Model.Person
{
- ///
- /// Interface for PersonFunctionModel classes
- ///
+ /// Interface for PersonFunctionModel classes.
+ /// Stubbfel, 15.10.2013.
public interface IPersonFunctionModel
{
- /// Gets or sets the identifier of the person.
- /// The identifier of the person.
+ /// Gets or sets the identifier of the person.
+ /// The identifier of the person.
string PersonID { get; set; }
- /// Gets or sets zero-based index of the function.
- /// The function index.
+ /// Gets or sets zero-based index of the function.
+ /// The function index.
int FunctionIndex { get; set; }
}
}
diff --git a/CampusAppWP8/CampusAppWPortalLib8/Model/Person/IPersonModel.cs b/CampusAppWP8/CampusAppWPortalLib8/Model/Person/IPersonModel.cs
index fcb2db88..0456bd45 100644
--- a/CampusAppWP8/CampusAppWPortalLib8/Model/Person/IPersonModel.cs
+++ b/CampusAppWP8/CampusAppWPortalLib8/Model/Person/IPersonModel.cs
@@ -1,30 +1,30 @@
-//-----------------------------------------------------------------------------
+//-----------------------------------------------------------------------
//
-// Company copyright tag.
+// The MIT License (MIT). Copyright (c) 2013 BTU/IIT.
//
-// stubbfel
-// 01.10.2013
-//-----------------------------------------------------------------------------
+// Stubbfel
+// 15.10.2013
+// Declares the IPersonModel interface
+//-----------------------------------------------------------------------
namespace CampusAppWPortalLib8.Model.Person
{
using System.Collections.ObjectModel;
- ///
- /// Interface for PersonModel classes
- ///
- /// PersonFunctionModel template
+ /// Interface for PersonModel classes.
+ /// Stubbfel, 15.10.2013.
+ /// PersonFunctionModel template.
public interface IPersonModel where T : IPersonFunctionModel
{
- /// Gets or sets the functions of a person.
- /// The functions.
+ /// Gets or sets the functions of a person.
+ /// The functions.
ObservableCollection Functions { get; set; }
- /// Gets or sets the identifier.
- /// The identifier.
+ /// Gets or sets the identifier.
+ /// The identifier.
string ID { get; set; }
- /// Sets person identifier to function.
- /// Stubbfel, 05.09.2013.
+ /// Sets person identifier to function.
+ /// Stubbfel, 05.09.2013.
void SetPersonIdToFunction();
}
}
diff --git a/CampusAppWP8/CampusAppWPortalLib8/Model/Person/PersonFunctionModel.cs b/CampusAppWP8/CampusAppWPortalLib8/Model/Person/PersonFunctionModel.cs
index 017e51df..52163d12 100644
--- a/CampusAppWP8/CampusAppWPortalLib8/Model/Person/PersonFunctionModel.cs
+++ b/CampusAppWP8/CampusAppWPortalLib8/Model/Person/PersonFunctionModel.cs
@@ -1,48 +1,50 @@
-//-----------------------------------------------------------------------------
+//-----------------------------------------------------------------------
//
-// Company copyright tag.
+// The MIT License (MIT). Copyright (c) 2013 BTU/IIT.
//
-// stubbfel
-// 05.09.2013
-//-----------------------------------------------------------------------------
+// Stubbfel
+// 15.10.2013
+// Implements the person function model class
+//-----------------------------------------------------------------------
namespace CampusAppWPortalLib8.Model.Person
{
using System.Xml.Serialization;
using CampusAppWPortalLib8.Utility;
- /// Person function model.
- /// Stubbfel, 05.09.2013.
+ /// Person function model.
+ /// Stubbfel, 05.09.2013.
+ ///
public class PersonFunctionModel : IPersonFunctionModel
{
#region Member
- /// The first tel.
+ /// The first tel.
private string tel1;
- /// The second tel.
+ /// The second tel.
private string tel2;
- /// The fax.
+ /// The fax.
private string fax;
- /// The mail.
+ /// The mail.
private string mail;
- /// The function.
+ /// The function.
private string function;
- /// The appointment.
+ /// The appointment.
private string appointment;
- /// The building.
+ /// The building.
private string building;
#endregion
#region Property
- /// Gets or sets the tel 1.
- /// The tel 1.
+ /// Gets or sets the tel 1.
+ /// The tel 1.
[XmlAttribute("telefon")]
public string Tel1
{
@@ -60,8 +62,8 @@ namespace CampusAppWPortalLib8.Model.Person
}
}
- /// Gets or sets the tel 2.
- /// The tel 2.
+ /// Gets or sets the tel 2.
+ /// The tel 2.
[XmlAttribute("telefon2")]
public string Tel2
{
@@ -79,8 +81,8 @@ namespace CampusAppWPortalLib8.Model.Person
}
}
- /// Gets or sets the fax.
- /// The fax.
+ /// Gets or sets the fax.
+ /// The fax.
[XmlAttribute("fax")]
public string Fax
{
@@ -98,8 +100,8 @@ namespace CampusAppWPortalLib8.Model.Person
}
}
- /// Gets or sets the function.
- /// The function.
+ /// Gets or sets the function.
+ /// The function.
[XmlAttribute("funktion")]
public string Function
{
@@ -117,8 +119,8 @@ namespace CampusAppWPortalLib8.Model.Person
}
}
- /// Gets or sets the appointment.
- /// The appointment.
+ /// Gets or sets the appointment.
+ /// The appointment.
[XmlAttribute("einrichtung")]
public string Appointment
{
@@ -136,8 +138,8 @@ namespace CampusAppWPortalLib8.Model.Person
}
}
- /// Gets or sets the building.
- /// The building.
+ /// Gets or sets the building.
+ /// The building.
[XmlAttribute("gebaeude")]
public string Building
{
@@ -155,8 +157,8 @@ namespace CampusAppWPortalLib8.Model.Person
}
}
- /// Gets or sets the mail.
- /// The mail.
+ /// Gets or sets the mail.
+ /// The mail.
[XmlAttribute("mail")]
public string Mail
{
@@ -174,12 +176,12 @@ namespace CampusAppWPortalLib8.Model.Person
}
}
- /// Gets or sets the identifier of the person.
- /// The identifier of the person.
+ /// Gets or sets the identifier of the person.
+ ///
public string PersonID { get; set; }
- /// Gets or sets zero-based index of the function.
- /// The function index.
+ /// Gets or sets zero-based index of the function.
+ ///
public int FunctionIndex { get; set; }
#endregion
diff --git a/CampusAppWP8/CampusAppWPortalLib8/Model/Person/PersonListModel.cs b/CampusAppWP8/CampusAppWPortalLib8/Model/Person/PersonListModel.cs
index bed28637..c42361fd 100644
--- a/CampusAppWP8/CampusAppWPortalLib8/Model/Person/PersonListModel.cs
+++ b/CampusAppWP8/CampusAppWPortalLib8/Model/Person/PersonListModel.cs
@@ -1,27 +1,27 @@
-//-----------------------------------------------------------------------------
+//-----------------------------------------------------------------------
//
-// Company copyright tag.
+// The MIT License (MIT). Copyright (c) 2013 BTU/IIT.
//
-// stubbfel
-// 05.09.2013
-//-----------------------------------------------------------------------------
-
+// Stubbfel
+// 15.10.2013
+// Implements the person list model class
+//-----------------------------------------------------------------------
namespace CampusAppWPortalLib8.Model.Person
{
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Xml.Serialization;
- /// Person list model.
- /// Stubbfel, 05.09.2013.
- /// personModel template
+ /// Person list model.
+ /// Stubbfel, 05.09.2013.
+ /// personModel template.
[XmlRoot("Uebersicht")]
public abstract class PersonListModel
{
#region Property
- /// Gets or sets the persons.
- /// The persons.
+ /// Gets or sets the persons.
+ /// The persons.
[XmlElement("person")]
public ObservableCollection Persons { get; set; }
@@ -29,29 +29,28 @@ namespace CampusAppWPortalLib8.Model.Person
#region Method
- /// Sets person identifier to function.
- /// Stubbfel, 05.09.2013.
+ /// Sets person identifier to function.
+ /// Stubbfel, 05.09.2013.
public abstract void SetPersonIdToFunction();
- /// Gets a person.
- /// Stubbfel, 05.09.2013.
- /// The identifier.
- /// The person.
+ /// Gets a person.
+ /// Stubbfel, 05.09.2013.
+ /// The identifier.
+ /// The person.
public abstract T GetPerson(string id);
- /// Removes the non function and set identifiers person.
- /// Stubbfel, 05.09.2013.
+ /// Removes the non function and set identifiers person.
+ /// Stubbfel, 05.09.2013.
public void RemoveNonFunctionAndSetIdsPerson()
{
this.RemoveNonFunctionPerson();
this.SetPersonIdToFunction();
}
- /// Removes the non function person.
- /// Stubbfel, 05.09.2013.
+ /// Removes the non function person.
+ /// Stubbfel, 05.09.2013.
public abstract void RemoveNonFunctionPerson();
-
#endregion
}
}
diff --git a/CampusAppWP8/CampusAppWPortalLib8/Model/Person/PersonModel.cs b/CampusAppWP8/CampusAppWPortalLib8/Model/Person/PersonModel.cs
index 931104d3..a7fa8f93 100644
--- a/CampusAppWP8/CampusAppWPortalLib8/Model/Person/PersonModel.cs
+++ b/CampusAppWP8/CampusAppWPortalLib8/Model/Person/PersonModel.cs
@@ -1,43 +1,44 @@
-//-----------------------------------------------------------------------------
+//-----------------------------------------------------------------------
//
-// Company copyright tag.
+// The MIT License (MIT). Copyright (c) 2013 BTU/IIT.
//
-// stubbfel
-// 05.09.2013
-//-----------------------------------------------------------------------------
+// Stubbfel
+// 15.10.2013
+// Implements the person model class
+//-----------------------------------------------------------------------
namespace CampusAppWPortalLib8.Model.Person
{
using System.Collections.ObjectModel;
using System.Xml.Serialization;
- /// Person model.
- /// Stubbfel, 05.09.2013.
- /// template for the PersonFunction-Class
+ /// A data Model for the person.
+ /// Stubbfel, 15.10.2013.
+ ///
public class PersonModel : IPersonModel where T : IPersonFunctionModel
{
#region Member
- /// The akadgrad.
+ /// The akadgrad.
private string akadgrad;
- /// Name of the sur.
+ /// Name of the sur.
private string surName;
- /// The person's first name.
+ /// The person's first name.
private string firstName;
- /// The identifier.
+ /// The identifier.
private string id;
- /// The functions.
+ /// The functions.
private ObservableCollection functions;
#endregion
#region Property
- /// Gets or sets the identifier.
- /// The identifier.
+ /// Gets or sets the identifier.
+ /// The identifier.
[XmlAttribute("id")]
public string ID
{
@@ -56,8 +57,8 @@ namespace CampusAppWPortalLib8.Model.Person
}
}
- /// Gets or sets the akadgrad.
- /// The akadgrad.
+ /// Gets or sets the akadgrad.
+ /// The akadgrad.
[XmlAttribute("akadgrad")]
public string Akadgrad
{
@@ -75,8 +76,8 @@ namespace CampusAppWPortalLib8.Model.Person
}
}
- /// Gets or sets the name of the sur.
- /// The name of the sur.
+ /// Gets or sets the name of the sur.
+ /// The name of the sur.
[XmlAttribute("nachname")]
public string SurName
{
@@ -94,8 +95,8 @@ namespace CampusAppWPortalLib8.Model.Person
}
}
- /// Gets or sets the person's first name.
- /// The name of the first.
+ /// Gets or sets the person's first name.
+ /// The name of the first.
[XmlAttribute("vorname")]
public string FirstName
{
@@ -113,8 +114,8 @@ namespace CampusAppWPortalLib8.Model.Person
}
}
- /// Gets or sets the functions of a person.
- /// The functions.
+ /// Gets or sets the functions of a person.
+ /// The functions.
[XmlElement("funktion")]
public ObservableCollection Functions
{
@@ -133,8 +134,8 @@ namespace CampusAppWPortalLib8.Model.Person
}
}
- /// Gets the name of a Person (FirstName SurName).
- /// The name of a Person.
+ /// Gets the name of a Person (FirstName SurName).
+ /// The name of a Person.
public string FullName
{
get
@@ -147,8 +148,8 @@ namespace CampusAppWPortalLib8.Model.Person
#region Method
- /// Sets person identifier to function.
- /// Stubbfel, 05.09.2013.
+ /// Sets person identifier to function.
+ /// Stubbfel, 05.09.2013.
public void SetPersonIdToFunction()
{
if (this.id == null || this.id.Equals(string.Empty) || this.functions == null)
diff --git a/CampusAppWP8/CampusAppWPortalLib8/Model/RSS/RSSChannelModel.cs b/CampusAppWP8/CampusAppWPortalLib8/Model/RSS/RSSChannelModel.cs
index 4b6284b2..c24f4c1f 100644
--- a/CampusAppWP8/CampusAppWPortalLib8/Model/RSS/RSSChannelModel.cs
+++ b/CampusAppWP8/CampusAppWPortalLib8/Model/RSS/RSSChannelModel.cs
@@ -1,10 +1,11 @@
-//-----------------------------------------------------------------------------
+//-----------------------------------------------------------------------
//
-// Company copyright tag.
+// The MIT License (MIT). Copyright (c) 2013 BTU/IIT.
//
// fiedlchr
-// 24.06.2013
-//-----------------------------------------------------------------------------
+// 15.10.2013
+// Implements the RSS channel model class
+//-----------------------------------------------------------------------
namespace CampusAppWPortalLib8.Model.RSS
{
using System.Collections.ObjectModel;
@@ -12,21 +13,17 @@ namespace CampusAppWPortalLib8.Model.RSS
using System.Linq;
using System.Xml.Serialization;
- ///
- /// Channel Model, which contains the RSS feed item list.
- ///
+ /// Channel Model, which contains the RSS feed item list.
+ /// fiedlchr, 15.10.2013.
public class RSSChannelModel
{
- ///
- /// RSS feed information item list.
- ///
+ /// RSS feed information item list.
private ObservableCollection item;
#region Constructor
- ///
- /// Initializes a new instance of the class.
- ///
+ /// Initializes a new instance of the class.
+ /// fiedlchr, 15.10.2013.
public RSSChannelModel()
{
this.item = new ObservableCollection();
@@ -37,9 +34,8 @@ namespace CampusAppWPortalLib8.Model.RSS
#region Property
- ///
- /// Gets or sets the RSS feed item list.
- ///
+ /// Gets or sets the RSS feed item list.
+ /// The item.
[XmlElement("item")]
public ObservableCollection Item
{
@@ -61,6 +57,9 @@ namespace CampusAppWPortalLib8.Model.RSS
#region Method
+ /// Order by date.
+ /// fiedlchr, 15.10.2013.
+ /// (Optional) the ascending.
public void OrderByDate(bool asc = false)
{
this.item.CollectionChanged -= this.OnListChanged;
@@ -86,12 +85,12 @@ namespace CampusAppWPortalLib8.Model.RSS
}
///
- /// Is called when the item list has changed.
- /// Here used for the add event.
- /// Set the index of the last list element.
+ /// Is called when the item list has changed. Here used for the add event. Set the index of
+ /// the last list element.
///
- /// item list
- /// event args
+ /// fiedlchr, 15.10.2013.
+ /// item list.
+ /// event args.
private void OnListChanged(object sender, NotifyCollectionChangedEventArgs e)
{
if (e.Action == NotifyCollectionChangedAction.Add)
diff --git a/CampusAppWP8/CampusAppWPortalLib8/Model/RSS/RSSModel.cs b/CampusAppWP8/CampusAppWPortalLib8/Model/RSS/RSSModel.cs
index 6d5efa62..f13f0aff 100644
--- a/CampusAppWP8/CampusAppWPortalLib8/Model/RSS/RSSModel.cs
+++ b/CampusAppWP8/CampusAppWPortalLib8/Model/RSS/RSSModel.cs
@@ -1,60 +1,56 @@
-//-----------------------------------------------------------------------------
+//-----------------------------------------------------------------------
//
-// Company copyright tag.
+// The MIT License (MIT). Copyright (c) 2013 BTU/IIT.
//
// fiedlchr
-// 24.06.2013
-//-----------------------------------------------------------------------------
+// 15.10.2013
+// Implements the RSS model class
+//-----------------------------------------------------------------------
namespace CampusAppWPortalLib8.Model.RSS
{
using System;
+ using System.ComponentModel;
using System.Text;
using System.Xml.Serialization;
- using System.ComponentModel;
-
- ///
- /// Contains the RSS feed information.
- ///
+
+ /// Contains the RSS feed information.
+ /// fiedlchr, 15.10.2013.
+ ///
public class RSSModel : INotifyPropertyChanged
{
- #region Member
-
- public event PropertyChangedEventHandler PropertyChanged;
+ #region Member
- ///
- /// Index of this object.
- ///
+ /// Index of this object.
private int index = -1;
- ///
- /// Title of the fees
- ///
+ /// Title of the fees.
private string title;
- ///
- /// Description text of the feed.
- ///
+ /// Description text of the feed.
private string text;
- ///
- /// Timestamp (publication date) of the event or news.
- ///
+ /// Timestamp (publication date) of the event or news.
private DateTime timestamp;
- ///
- /// Url of the feed.
- ///
+ /// Url of the feed.
private string link;
+ /// true to show, false to hide the text.
private bool textVisible = true;
#endregion
-
+
+ #region event
+
+ /// Occurs when Property Changed.
+ public event PropertyChangedEventHandler PropertyChanged;
+
+ #endregion
+
#region Property
- ///
- /// Gets or sets the title of the feed.
- ///
+ /// Gets or sets the title of the feed.
+ /// The title.
[XmlElement("title")]
public string Title
{
@@ -72,9 +68,8 @@ namespace CampusAppWPortalLib8.Model.RSS
}
}
- ///
- /// Gets or sets the text of the feed.
- ///
+ /// Gets or sets the text of the feed.
+ /// The text.
[XmlElement("description")]
public string Text
{
@@ -92,9 +87,8 @@ namespace CampusAppWPortalLib8.Model.RSS
}
}
- ///
- /// Gets or sets the timestamp of the feed as string.
- ///
+ /// Gets or sets the timestamp of the feed as string.
+ /// The timestamp.
[XmlElement("pubDate")]
public string Timestamp
{
@@ -112,9 +106,8 @@ namespace CampusAppWPortalLib8.Model.RSS
}
}
- ///
- /// Gets or sets the timestamp of the feed as DateTime object.
- ///
+ /// Gets or sets the timestamp of the feed as DateTime object.
+ /// The DateTime timestamp.
public DateTime DTTimestamp
{
get
@@ -128,10 +121,8 @@ namespace CampusAppWPortalLib8.Model.RSS
}
}
- ///
- /// Gets the date of the timestamp as string.
- /// example: Mon, 25.06.2013.
- ///
+ /// Gets the date of the timestamp as string. example: Mon, 25.06.2013.
+ /// The date.
public string Date
{
get
@@ -140,10 +131,8 @@ namespace CampusAppWPortalLib8.Model.RSS
}
}
- ///
- /// Gets the date of the timestamp as string.
- /// example: 25.06.
- ///
+ /// Gets the date of the timestamp as string. example: 25.06.
+ /// The short date.
public string ShortDate
{
get
@@ -152,10 +141,8 @@ namespace CampusAppWPortalLib8.Model.RSS
}
}
- ///
- /// Gets the time of the timestamp as string.
- /// example: 12:56.
- ///
+ /// Gets the time of the timestamp as string. example: 12:56.
+ /// The time.
public string Time
{
get
@@ -164,9 +151,8 @@ namespace CampusAppWPortalLib8.Model.RSS
}
}
- ///
- /// Gets or sets the link/url of the feed.
- ///
+ /// Gets or sets the link/url of the feed.
+ /// The link.
[XmlElement("link")]
public string Link
{
@@ -184,9 +170,8 @@ namespace CampusAppWPortalLib8.Model.RSS
}
}
- ///
- /// Gets or sets the ListIndex.
- ///
+ /// Gets or sets the ListIndex.
+ /// The index.
public int Index
{
get
@@ -200,9 +185,8 @@ namespace CampusAppWPortalLib8.Model.RSS
}
}
- ///
- /// Gets or sets the visibility of the text.
- ///
+ /// Gets or sets a value indicating whether the text visibility.
+ /// true if text visibility, false if not.
public bool TextVisibility
{
get
@@ -221,9 +205,8 @@ namespace CampusAppWPortalLib8.Model.RSS
}
}
- ///
- /// Gets or sets the visibility of the browser.
- ///
+ /// Gets a value indicating whether the browser visibility.
+ /// true if browser visibility, false if not.
public bool BrowserVisibility
{
get
@@ -238,13 +221,11 @@ namespace CampusAppWPortalLib8.Model.RSS
#region public
- ///
- /// Comparing function for DateTime timestamps.
- /// (currently unused)
- ///
- /// first item
- /// second item
- /// -1 if item2 is older then item1, otherwise 0
+ /// Comparing function for DateTime timestamps. (currently unused)
+ /// fiedlchr, 15.10.2013.
+ /// first item.
+ /// second item.
+ /// -1 if item2 is older then item1, otherwise 0.
public static int CompareTimeStamp(RSSModel item1, RSSModel item2)
{
if (item1.DTTimestamp > item2.DTTimestamp)
@@ -261,19 +242,21 @@ namespace CampusAppWPortalLib8.Model.RSS
#region private
+ /// Notifies a property changed.
+ /// fiedlchr, 15.10.2013.
+ /// The information.
private void NotifyPropertyChanged(string info)
{
- if (PropertyChanged != null)
+ if (this.PropertyChanged != null)
{
this.PropertyChanged(this, new PropertyChangedEventArgs(info));
}
}
- ///
- /// Remove or transform html-unicode specific tags into ASCII.
- ///
- /// html string
- /// ASCII string
+ /// Remove or transform html-unicode specific tags into ASCII.
+ /// fiedlchr, 15.10.2013.
+ /// html string.
+ /// ASCII string.
private string HTMLUnicodeToString(string htmluni)
{
StringBuilder retValue = new StringBuilder();
diff --git a/CampusAppWP8/CampusAppWPortalLib8/Model/RSS/RSSViewModel.cs b/CampusAppWP8/CampusAppWPortalLib8/Model/RSS/RSSViewModel.cs
index 3049cad5..b62f471b 100644
--- a/CampusAppWP8/CampusAppWPortalLib8/Model/RSS/RSSViewModel.cs
+++ b/CampusAppWP8/CampusAppWPortalLib8/Model/RSS/RSSViewModel.cs
@@ -1,41 +1,36 @@
-//-----------------------------------------------------------------------------
+//-----------------------------------------------------------------------
//
-// Company copyright tag.
+// The MIT License (MIT). Copyright (c) 2013 BTU/IIT.
//
// fiedlchr
-// 24.06.2013
-//-----------------------------------------------------------------------------
+// 15.10.2013
+// Implements the RSS view model class
+//-----------------------------------------------------------------------
namespace CampusAppWPortalLib8.Model.RSS
{
using System;
using System.Collections.ObjectModel;
using System.Xml.Serialization;
- ///
- /// ViewModel of the RSS feed, containing the feed/channel object.
- ///
+ /// ViewModel of the RSS feed, containing the feed/channel object.
+ /// fiedlchr, 15.10.2013.
[XmlRoot("root")]
public class RSSViewModel
{
#region Member
- ///
- /// Object to store the time when the instance was created.
- ///
+ /// Object to store the time when the instance was created.
private DateTime createTime;
- ///
- /// Channel list for the RSS feeds.
- ///
+ /// Channel list for the RSS feeds.
private ObservableCollection channel;
#endregion
#region Constructor
- ///
- /// Initializes a new instance of the class.
- ///
+ /// Initializes a new instance of the class.
+ /// fiedlchr, 15.10.2013.
public RSSViewModel()
{
this.channel = new ObservableCollection();
@@ -46,9 +41,8 @@ namespace CampusAppWPortalLib8.Model.RSS
#region Property
- ///
- /// Gets or sets the channel list.
- ///
+ /// Gets or sets the channel list.
+ /// The channel.
[XmlArray("rss")]
[XmlArrayItem("channel")]
public ObservableCollection Channel
@@ -67,9 +61,8 @@ namespace CampusAppWPortalLib8.Model.RSS
}
}
- ///
- /// Gets the creation time.
- ///
+ /// Gets the creation time.
+ /// The create time.
public DateTime CreateTime
{
get
diff --git a/CampusAppWP8/CampusAppWPortalLib8/Model/Settings/CampusTypes.cs b/CampusAppWP8/CampusAppWPortalLib8/Model/Settings/CampusTypes.cs
index dee8c063..65ec8454 100644
--- a/CampusAppWP8/CampusAppWPortalLib8/Model/Settings/CampusTypes.cs
+++ b/CampusAppWP8/CampusAppWPortalLib8/Model/Settings/CampusTypes.cs
@@ -1,18 +1,20 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
+//-----------------------------------------------------------------------
+//
+// The MIT License (MIT). Copyright (c) 2013 BTU/IIT.
+//
+// Stubbfel
+// 15.10.2013
+// Implements the campus types class
+//-----------------------------------------------------------------------
namespace CampusAppWPortalLib8.Model.Settings
{
- ///
- /// Specifies the campus of the user.
- ///
+ /// Specifies the campus of the user.
+ /// Stubbfel, 15.10.2013.
public enum Campus
{
/// An enum constant representing the user setting campus option.
UserSettingCampus = 0,
+
///
/// Cottbus -> MainCampus
///
diff --git a/CampusAppWP8/CampusAppWPortalLib8/Model/Settings/DegreeTypes.cs b/CampusAppWP8/CampusAppWPortalLib8/Model/Settings/DegreeTypes.cs
index f1cbbb79..f72ee73c 100644
--- a/CampusAppWP8/CampusAppWPortalLib8/Model/Settings/DegreeTypes.cs
+++ b/CampusAppWP8/CampusAppWPortalLib8/Model/Settings/DegreeTypes.cs
@@ -1,14 +1,15 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
+//-----------------------------------------------------------------------
+//
+// The MIT License (MIT). Copyright (c) 2013 BTU/IIT.
+//
+// Stubbfel
+// 15.10.2013
+// Implements the degree types class
+//-----------------------------------------------------------------------
namespace CampusAppWPortalLib8.Model.Settings
{
- ///
- /// Specifies the degrees.
- ///
+ /// Specifies the degrees.
+ /// Stubbfel, 15.10.2013.
public enum DegreeType
{
///
diff --git a/CampusAppWP8/CampusAppWPortalLib8/Model/Settings/RolesTypes.cs b/CampusAppWP8/CampusAppWPortalLib8/Model/Settings/RolesTypes.cs
index cda9ee5c..216e5e6e 100644
--- a/CampusAppWP8/CampusAppWPortalLib8/Model/Settings/RolesTypes.cs
+++ b/CampusAppWP8/CampusAppWPortalLib8/Model/Settings/RolesTypes.cs
@@ -1,14 +1,15 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
+//-----------------------------------------------------------------------
+//
+// The MIT License (MIT). Copyright (c) 2013 BTU/IIT.
+//
+// Stubbfel
+// 15.10.2013
+// Implements the roles types class
+//-----------------------------------------------------------------------
namespace CampusAppWPortalLib8.Model.Settings
{
- ///
- /// Specifies the role of the user.
- ///
+ /// Specifies the role of the user.
+ /// Stubbfel, 15.10.2013.
public enum RoleType
{
///
diff --git a/CampusAppWP8/CampusAppWPortalLib8/Model/StudentCouncil/StudentCouncilListModel.cs b/CampusAppWP8/CampusAppWPortalLib8/Model/StudentCouncil/StudentCouncilListModel.cs
index 5f17053a..98a1965c 100644
--- a/CampusAppWP8/CampusAppWPortalLib8/Model/StudentCouncil/StudentCouncilListModel.cs
+++ b/CampusAppWP8/CampusAppWPortalLib8/Model/StudentCouncil/StudentCouncilListModel.cs
@@ -1,10 +1,11 @@
//-----------------------------------------------------------------------
//
-// Company copyright tag.
+// The MIT License (MIT). Copyright (c) 2013 BTU/IIT.
//
-// stubbfel
-// 02.07.2013
-//----------------------------------------------------------------------
+// Stubbfel
+// 15.10.2013
+// Implements the student council list model class
+//-----------------------------------------------------------------------
namespace CampusAppWPortalLib8.Model.StudentCouncil
{
using System;
@@ -13,24 +14,23 @@ namespace CampusAppWPortalLib8.Model.StudentCouncil
using System.Linq;
using System.Xml.Serialization;
- ///
- /// Model for menus in one week
- ///
+ /// Model for menus in one week.
+ /// Stubbfel, 15.10.2013.
[XmlRoot("root")]
public class StudentCouncilListModel
{
#region Members
- ///
- /// Time when the model was created
- ///
+ /// Time when the model was created.
private readonly DateTime createTime;
#endregion
#region Constructor
+
///
- /// Initializes a new instance of the class.
+ /// Initializes a new instance of the class.
///
+ /// Stubbfel, 15.10.2013.
public StudentCouncilListModel()
{
this.createTime = DateTime.Now;
@@ -39,16 +39,15 @@ namespace CampusAppWPortalLib8.Model.StudentCouncil
#endregion
#region Proberty
- ///
- /// Gets or sets the StudentCouncils
- ///
+
+ /// Gets or sets the StudentCouncils.
+ /// The student councils.
[XmlArray("data")]
[XmlArrayItem("studentcouncil")]
public ObservableCollection StudentCouncils { get; set; }
- ///
- /// Gets the creation time of the model
- ///
+ /// Gets the creation time of the model.
+ /// The create time.
public DateTime CreateTime
{
get
@@ -60,10 +59,13 @@ namespace CampusAppWPortalLib8.Model.StudentCouncil
#endregion
#region Method
- ///
- /// Method group the StudentCouncilList by Faculty
- ///
- /// a Dictionary, where the Key is name of the Faculty und the value is a List of StudentCouncil
+
+ /// Method group the StudentCouncilList by Faculty.
+ /// Stubbfel, 15.10.2013.
+ ///
+ /// a Dictionary, where the Key is name of the Faculty und the value is a List of
+ /// StudentCouncil.
+ ///
public Dictionary> GetStudentCouncilsGroupByFaculty()
{
List> tmpList = this.StudentCouncils.GroupBy(p => p.Faculty).ToList();
diff --git a/CampusAppWP8/CampusAppWPortalLib8/Model/StudentCouncil/StudentCouncilModel.cs b/CampusAppWP8/CampusAppWPortalLib8/Model/StudentCouncil/StudentCouncilModel.cs
index 9b28289b..73936b78 100644
--- a/CampusAppWP8/CampusAppWPortalLib8/Model/StudentCouncil/StudentCouncilModel.cs
+++ b/CampusAppWP8/CampusAppWPortalLib8/Model/StudentCouncil/StudentCouncilModel.cs
@@ -1,26 +1,23 @@
-//-----------------------------------------------------------------------------
+//-----------------------------------------------------------------------
//
-// Company copyright tag.
+// The MIT License (MIT). Copyright (c) 2013 BTU/IIT.
//
-// stubbfel
-// 02.07.2013
-//-----------------------------------------------------------------------------
-
+// Stubbfel
+// 15.10.2013
+// Implements the student council model class
+//-----------------------------------------------------------------------
namespace CampusAppWPortalLib8.Model.StudentCouncil
{
- using CampusAppWPortalLib8.Resources;
using System.Xml.Serialization;
+ using CampusAppWPortalLib8.Resources;
- ///
- /// Model for menu
- ///
+ /// Model for menu.
+ /// Stubbfel, 15.10.2013.
public class StudentCouncilModel
{
#region Member
- ///
- /// name of the faculty.
- ///
+ /// name of the faculty.
private string faculty;
#endregion
@@ -28,8 +25,9 @@ namespace CampusAppWPortalLib8.Model.StudentCouncil
#region Constructor
///
- /// Initializes a new instance of the class.
+ /// Initializes a new instance of the class.
///
+ /// Stubbfel, 15.10.2013.
public StudentCouncilModel()
{
}
@@ -38,9 +36,8 @@ namespace CampusAppWPortalLib8.Model.StudentCouncil
#region Property
- ///
- /// Gets or sets the faculty of the StudentCouncil.
- ///
+ /// Gets or sets the faculty of the StudentCouncil.
+ /// The faculty.
[XmlAttribute("faculty")]
public string Faculty
{
@@ -63,21 +60,18 @@ namespace CampusAppWPortalLib8.Model.StudentCouncil
}
}
- ///
- /// Gets or sets the name of the StudentCouncil.
- ///
+ /// Gets or sets the name of the StudentCouncil.
+ /// The name.
[XmlAttribute("name")]
public string Name { get; set; }
- ///
- /// Gets or sets the webpage-url of the StudentCouncil.
- ///
+ /// Gets or sets the webpage-url of the StudentCouncil.
+ /// The URL.
[XmlAttribute("url")]
public string Url { get; set; }
- ///
- /// Gets or sets the email-address of the StudentCouncil.
- ///
+ /// Gets or sets the email-address of the StudentCouncil.
+ /// The email.
[XmlAttribute("email")]
public string Email { get; set; }
diff --git a/CampusAppWP8/CampusAppWPortalLib8/Model/Utility/CampusListPickerItemListModel.cs b/CampusAppWP8/CampusAppWPortalLib8/Model/Utility/CampusListPickerItemListModel.cs
index aa60217e..87d175ac 100644
--- a/CampusAppWP8/CampusAppWPortalLib8/Model/Utility/CampusListPickerItemListModel.cs
+++ b/CampusAppWP8/CampusAppWPortalLib8/Model/Utility/CampusListPickerItemListModel.cs
@@ -1,24 +1,26 @@
-//
-// Company copyright tag.List
+//-----------------------------------------------------------------------
+//
+// The MIT License (MIT). Copyright (c) 2013 BTU/IIT.
//
-// stubbfel
-// 08.08.2013
-//----------------------------------------------------------------------
+// Stubbfel
+// 15.10.2013
+// Implements the campus list picker item list model class
+//-----------------------------------------------------------------------
namespace CampusAppWPortalLib8.Model.Utility
{
using CampusAppWPortalLib8.Resources;
- using CampusAppWPortalLib8.Model.Utility;
- ///
- /// This Class creates a list of degrees
- ///
+ /// This Class creates a list of degrees.
+ /// Stubbfel, 15.10.2013.
+ ///
public class CampusListPickerItemListModel : ListPickerItemListModel
{
#region Constructor
///
- /// Initializes a new instance of the class.
+ /// Initializes a new instance of the class.
///
+ /// Stubbfel, 15.10.2013.
public CampusListPickerItemListModel()
: base()
{
@@ -29,9 +31,9 @@ namespace CampusAppWPortalLib8.Model.Utility
#region Method
- ///
- /// Overrides the LoadList-Method
- ///
+ /// Overrides the LoadList-Method
+ /// Stubbfel, 15.10.2013.
+ ///
protected override void LoadList()
{
this.AddItem(new ListPickerItemModel(((int)CampusAppWPortalLib8.Model.Settings.Campus.CB_MAIN).ToString(), AppResources.Campus_CBMain));
diff --git a/CampusAppWP8/CampusAppWPortalLib8/Model/Utility/CleanUrlParamModel.cs b/CampusAppWP8/CampusAppWPortalLib8/Model/Utility/CleanUrlParamModel.cs
index 3eb6a03d..c22cd50f 100644
--- a/CampusAppWP8/CampusAppWPortalLib8/Model/Utility/CleanUrlParamModel.cs
+++ b/CampusAppWP8/CampusAppWPortalLib8/Model/Utility/CleanUrlParamModel.cs
@@ -1,31 +1,32 @@
//-----------------------------------------------------------------------
//
-// Company copyright tag.
+// The MIT License (MIT). Copyright (c) 2013 BTU/IIT.
//
-// stubbfel
-// 06.08.2013
-//----------------------------------------------------------------------
+// Stubbfel
+// 15.10.2013
+// Implements the clean URL parameter model class
+//-----------------------------------------------------------------------
namespace CampusAppWPortalLib8.Model.Utility
{
- ///
- /// This class is a Model for the URLParameter like GET-Parameter
- ///
+ /// This class is a Model for the URLParameter like GET-Parameter.
+ /// Stubbfel, 15.10.2013.
+ ///
public class CleanUrlParamModel : UrlParamModel
{
#region Constructor
- /// Initializes a new instance of the CleanUrlParamModel class.
- /// Stubbfel, 12.09.2013.
- /// the key for the parameter.
+ /// Initializes a new instance of the CleanUrlParamModel class.
+ /// Stubbfel, 12.09.2013.
+ /// the key for the parameter.
public CleanUrlParamModel(string key)
: base(key)
{
}
- /// Initializes a new instance of the CleanUrlParamModel class.
- /// Stubbfel, 12.09.2013.
- /// the key for the parameter.
- /// The value.
+ /// Initializes a new instance of the CleanUrlParamModel class.
+ /// Stubbfel, 12.09.2013.
+ /// the key for the parameter.
+ /// The value.
public CleanUrlParamModel(string key, string value)
: base(key, value)
{
@@ -34,9 +35,8 @@ namespace CampusAppWPortalLib8.Model.Utility
#region Proberty
- ///
- /// Gets the token, which indicate that the parameterList started
- ///
+ /// Gets the token, which indicate that the parameterList started.
+ ///
public override string ParamToken
{
get
@@ -48,10 +48,9 @@ namespace CampusAppWPortalLib8.Model.Utility
#region Methods
- ///
- /// Method return a formatted string like Key=Value
- ///
- /// return formatted string
+ /// Method return a formatted string like Key=Value.
+ /// Stubbfel, 15.10.2013.
+ ///
public override string ToString()
{
if (!this.IsParamValid())
diff --git a/CampusAppWP8/CampusAppWPortalLib8/Model/Utility/CourseListPickerItemListModel.cs b/CampusAppWP8/CampusAppWPortalLib8/Model/Utility/CourseListPickerItemListModel.cs
index 884df21a..eb3ac634 100644
--- a/CampusAppWP8/CampusAppWPortalLib8/Model/Utility/CourseListPickerItemListModel.cs
+++ b/CampusAppWP8/CampusAppWPortalLib8/Model/Utility/CourseListPickerItemListModel.cs
@@ -1,22 +1,24 @@
-//
-// Company copyright tag.List
+//-----------------------------------------------------------------------
+//
+// The MIT License (MIT). Copyright (c) 2013 BTU/IIT.
//
-// stubbfel
-// 25.07.2013
-//----------------------------------------------------------------------
+// Stubbfel
+// 15.10.2013
+// Implements the course list picker item list model class
+//-----------------------------------------------------------------------
namespace CampusAppWPortalLib8.Model.Utility
{
using System.Linq;
- ///
- /// This is a class for the courseList
- ///
+ /// This is a class for the courseList.
+ /// Stubbfel, 15.10.2013.
+ ///
public abstract class CourseListPickerItemListModel : ListPickerItemListModel
{
#region Method
- /// Fall back list.
- /// Stubbfel, 10.09.2013.
+ /// Fall back list.
+ /// Stubbfel, 10.09.2013.
protected void FallBackList()
{
this.AddItem(new ListPickerItemModel("017", "Bauingenieurwesen"));
diff --git a/CampusAppWP8/CampusAppWPortalLib8/Model/Utility/CourseModel.cs b/CampusAppWP8/CampusAppWPortalLib8/Model/Utility/CourseModel.cs
index 0921c76c..68c049f0 100644
--- a/CampusAppWP8/CampusAppWPortalLib8/Model/Utility/CourseModel.cs
+++ b/CampusAppWP8/CampusAppWPortalLib8/Model/Utility/CourseModel.cs
@@ -1,24 +1,26 @@
-//
-// Company copyright tag.List
+//-----------------------------------------------------------------------
+//
+// The MIT License (MIT). Copyright (c) 2013 BTU/IIT.
//
-// stubbfel
-// 25.07.2013
-//----------------------------------------------------------------------
-
+// Stubbfel
+// 15.10.2013
+// Implements the course model class
+//-----------------------------------------------------------------------
namespace CampusAppWPortalLib8.Model.Utility
{
using System;
- /// Course model.
- /// Stubbfel, 10.09.2013.
+ /// Course model.
+ /// Stubbfel, 10.09.2013.
+ ///
public class CourseModel : IEquatable
{
#region Constructor
- /// Initializes a new instance of the CourseModel class.
- /// Stubbfel, 10.09.2013.
- /// The course number.
- /// The course text.
+ /// Initializes a new instance of the CourseModel class.
+ /// Stubbfel, 10.09.2013.
+ /// The course number.
+ /// The course text.
public CourseModel(string courseNumber, string courseText)
{
this.CourseNumber = courseNumber;
@@ -29,22 +31,22 @@ namespace CampusAppWPortalLib8.Model.Utility
#region Property
- /// Gets or sets the course number.
- /// The course number.
+ /// Gets or sets the course number.
+ /// The course number.
public string CourseNumber { get; set; }
- /// Gets or sets the course text.
- /// The course text.
+ /// Gets or sets the course text.
+ /// The course text.
public string CourseText { get; set; }
#endregion
#region Method
- /// Tests if this CourseModel is considered equal to another.
- /// Stubbfel, 10.09.2013.
- /// The course model to compare to this object.
- /// true if the objects are considered equal, false if they are not.
+ /// Tests if this CourseModel is considered equal to another.
+ /// Stubbfel, 10.09.2013.
+ /// The course model to compare to this object.
+ /// true if the objects are considered equal, false if they are not.
public bool Equals(CourseModel other)
{
if (this.CourseNumber.Equals(other.CourseNumber))
diff --git a/CampusAppWP8/CampusAppWPortalLib8/Model/Utility/DegreeListPickerItemListModel.cs b/CampusAppWP8/CampusAppWPortalLib8/Model/Utility/DegreeListPickerItemListModel.cs
index 8ae21a53..5d78e388 100644
--- a/CampusAppWP8/CampusAppWPortalLib8/Model/Utility/DegreeListPickerItemListModel.cs
+++ b/CampusAppWP8/CampusAppWPortalLib8/Model/Utility/DegreeListPickerItemListModel.cs
@@ -1,24 +1,26 @@
-//
-// Company copyright tag.List
+//-----------------------------------------------------------------------
+//
+// The MIT License (MIT). Copyright (c) 2013 BTU/IIT.
//
-// stubbfel
-// 25.07.2013
-//----------------------------------------------------------------------
+// Stubbfel
+// 15.10.2013
+// Implements the degree list picker item list model class
+//-----------------------------------------------------------------------
namespace CampusAppWPortalLib8.Model.Utility
{
using CampusAppWPortalLib8.Resources;
- using CampusAppWPortalLib8.Model.Utility;
- ///
- /// This Class creates a list of degrees
- ///
+ /// This Class creates a list of degrees.
+ /// Stubbfel, 15.10.2013.
+ ///
public class DegreeListPickerItemListModel : ListPickerItemListModel
{
#region Constructor
///
- /// Initializes a new instance of the class.
+ /// Initializes a new instance of the class.
///
+ /// Stubbfel, 15.10.2013.
public DegreeListPickerItemListModel()
: base()
{
@@ -29,9 +31,9 @@ namespace CampusAppWPortalLib8.Model.Utility
#region Method
- ///
- /// Overrides the LoadList-Method
- ///
+ /// Overrides the LoadList-Method
+ /// Stubbfel, 15.10.2013.
+ ///
protected override void LoadList()
{
this.AddItem(new ListPickerItemModel(((int)CampusAppWPortalLib8.Model.Settings.DegreeType.BACHELOR).ToString(), AppResources.Degree_Bachelor));
diff --git a/CampusAppWP8/CampusAppWPortalLib8/Model/Utility/ListPickerItemListModel.cs b/CampusAppWP8/CampusAppWPortalLib8/Model/Utility/ListPickerItemListModel.cs
index bbcd1a64..8373f3a3 100644
--- a/CampusAppWP8/CampusAppWPortalLib8/Model/Utility/ListPickerItemListModel.cs
+++ b/CampusAppWP8/CampusAppWPortalLib8/Model/Utility/ListPickerItemListModel.cs
@@ -1,24 +1,22 @@
//-----------------------------------------------------------------------
//
-// Company copyright tag.List
+// The MIT License (MIT). Copyright (c) 2013 BTU/IIT.
//
-// stubbfel
-// 25.07.2013
-//----------------------------------------------------------------------
+// Stubbfel
+// 15.10.2013
+// Implements the list picker item list model class
+//-----------------------------------------------------------------------
namespace CampusAppWPortalLib8.Model.Utility
{
using System.Collections.Generic;
- ///
- /// Class for a List of ListPickerItems
- ///
+ /// Class for a List of ListPickerItems.
+ /// Stubbfel, 15.10.2013.
public class ListPickerItemListModel
{
#region Members
- ///
- /// reference of the itemList
- ///
+ /// reference of the itemList.
private List list;
#endregion
@@ -26,8 +24,9 @@ namespace CampusAppWPortalLib8.Model.Utility
#region Constructor
///
- /// Initializes a new instance of the class.
+ /// Initializes a new instance of the class.
///
+ /// Stubbfel, 15.10.2013.
public ListPickerItemListModel()
{
this.list = new List();
@@ -37,9 +36,8 @@ namespace CampusAppWPortalLib8.Model.Utility
#region Property
- ///
- /// Gets or sets the ItemList
- ///
+ /// Gets or sets the ItemList.
+ /// The list.
public List List
{
get
@@ -62,11 +60,10 @@ namespace CampusAppWPortalLib8.Model.Utility
#region public
- ///
- /// Method return a the Index of an item which has a certain value
- ///
- /// a certain value
- /// return index of value or default(0)
+ /// Method return a the Index of an item which has a certain value.
+ /// Stubbfel, 15.10.2013.
+ /// a certain value.
+ /// return index of value or default(0)
public virtual int GetIndexOrDefault(string value)
{
int index = 0;
@@ -85,41 +82,37 @@ namespace CampusAppWPortalLib8.Model.Utility
return index;
}
- ///
- /// add an new item to the list
- ///
- /// value of the item
- /// text of the item
+ /// add an new item to the list.
+ /// Stubbfel, 15.10.2013.
+ /// value of the item.
+ /// text of the item.
public void AddItem(string value, string text)
{
this.AddItem(new ListPickerItemModel(value, text));
}
- ///
- /// add an new item to the list
- ///
- /// new item of the list
+ /// add an new item to the list.
+ /// Stubbfel, 15.10.2013.
+ /// new item of the list.
public void AddItem(ListPickerItemModel item)
{
this.list.Add(item);
}
- ///
- /// remove an item
- ///
- /// value of the item
- /// text of the item
- /// true if removing was successful, otherwise false
+ /// remove an item.
+ /// Stubbfel, 15.10.2013.
+ /// value of the item.
+ /// text of the item.
+ /// true if removing was successful, otherwise false.
public bool RemoveItem(string value, string text)
{
return this.RemoveItem(new ListPickerItemModel(value, text));
}
- ///
- /// remove an item
- ///
- /// item which has to be remove
- /// true if removing was successful, otherwise false
+ /// remove an item.
+ /// Stubbfel, 15.10.2013.
+ /// item which has to be remove.
+ /// true if removing was successful, otherwise false.
public bool RemoveItem(ListPickerItemModel item)
{
return this.list.Remove(item);
@@ -129,12 +122,8 @@ namespace CampusAppWPortalLib8.Model.Utility
#region protected
- ///
- /// Method load an default list
- ///
- ///
- /// load an empty list
- ///
+ /// Method load an default list.
+ /// load an empty list.
protected virtual void LoadList()
{
return;
diff --git a/CampusAppWP8/CampusAppWPortalLib8/Model/Utility/ListPickerItemModel.cs b/CampusAppWP8/CampusAppWPortalLib8/Model/Utility/ListPickerItemModel.cs
index 0a394f3a..0984aa42 100644
--- a/CampusAppWP8/CampusAppWPortalLib8/Model/Utility/ListPickerItemModel.cs
+++ b/CampusAppWP8/CampusAppWPortalLib8/Model/Utility/ListPickerItemModel.cs
@@ -1,31 +1,33 @@
//-----------------------------------------------------------------------
//
-// Company copyright tag.
+// The MIT License (MIT). Copyright (c) 2013 BTU/IIT.
//
-// stubbfel
-// 13.06.2013
-//----------------------------------------------------------------------
+// Stubbfel
+// 15.10.2013
+// Implements the list picker item model class
+//-----------------------------------------------------------------------
namespace CampusAppWPortalLib8.Model.Utility
{
- ///
- /// Model for the ListPickerItems
- ///
+ /// Model for the ListPickerItems.
+ /// Stubbfel, 15.10.2013.
public class ListPickerItemModel
{
#region Constructor
///
- /// Initializes a new instance of the class.
+ /// Initializes a new instance of the class.
///
+ /// Stubbfel, 15.10.2013.
public ListPickerItemModel()
{
}
///
- /// Initializes a new instance of the class.
+ /// Initializes a new instance of the class.
///
- /// string for the value property of an item
- /// string for the text property of an item
+ /// Stubbfel, 15.10.2013.
+ /// string for the value property of an item.
+ /// string for the text property of an item.
public ListPickerItemModel(string value, string text)
{
this.Value = value;
@@ -36,14 +38,12 @@ namespace CampusAppWPortalLib8.Model.Utility
#region Property
- ///
- /// Gets or sets the Value of an Item
- ///
+ /// Gets or sets the Value of an Item.
+ /// The value.
public string Value { get; set; }
- ///
- /// Gets or sets the Text (caption) of an Item
- ///
+ /// Gets or sets the Text (caption) of an Item.
+ /// The text.
public string Text { get; set; }
#endregion
diff --git a/CampusAppWP8/CampusAppWPortalLib8/Model/Utility/RoleListPickerItemListModel.cs b/CampusAppWP8/CampusAppWPortalLib8/Model/Utility/RoleListPickerItemListModel.cs
index 24ceb6b3..3d10de16 100644
--- a/CampusAppWP8/CampusAppWPortalLib8/Model/Utility/RoleListPickerItemListModel.cs
+++ b/CampusAppWP8/CampusAppWPortalLib8/Model/Utility/RoleListPickerItemListModel.cs
@@ -1,24 +1,26 @@
-//
-// Company copyright tag.List
+//-----------------------------------------------------------------------
+//
+// The MIT License (MIT). Copyright (c) 2013 BTU/IIT.
//
-// stubbfel
-// 25.07.2013
-//----------------------------------------------------------------------
+// Stubbfel
+// 15.10.2013
+// Implements the role list picker item list model class
+//-----------------------------------------------------------------------
namespace CampusAppWPortalLib8.Model.Utility
{
using CampusAppWPortalLib8.Resources;
- using CampusAppWPortalLib8.Model.Utility;
- ///
- /// Class for the RoleList
- ///
+ /// Class for the RoleList.
+ /// Stubbfel, 15.10.2013.
+ ///
public class RoleListPickerItemListModel : ListPickerItemListModel
{
#region Constructor
///
- /// Initializes a new instance of the class.
+ /// Initializes a new instance of the class.
///
+ /// Stubbfel, 15.10.2013.
public RoleListPickerItemListModel()
: base()
{
@@ -29,9 +31,9 @@ namespace CampusAppWPortalLib8.Model.Utility
#region Method
- ///
- /// Overrides the LoadList-Method
- ///
+ /// Overrides the LoadList-Method
+ /// Stubbfel, 15.10.2013.
+ ///
protected override void LoadList()
{
this.AddItem(new ListPickerItemModel(CampusAppWPortalLib8.Model.Settings.RoleType.STUDENT.ToString(), AppResources.Setting_RoleStudent));
diff --git a/CampusAppWP8/CampusAppWPortalLib8/Model/Utility/SemesterListPickerItemListModel.cs b/CampusAppWP8/CampusAppWPortalLib8/Model/Utility/SemesterListPickerItemListModel.cs
index 07e254b0..2ec98742 100644
--- a/CampusAppWP8/CampusAppWPortalLib8/Model/Utility/SemesterListPickerItemListModel.cs
+++ b/CampusAppWP8/CampusAppWPortalLib8/Model/Utility/SemesterListPickerItemListModel.cs
@@ -1,21 +1,24 @@
-//
-// Company copyright tag.List
+//-----------------------------------------------------------------------
+//
+// The MIT License (MIT). Copyright (c) 2013 BTU/IIT.
//
-// stubbfel
-// 25.07.2013
-//----------------------------------------------------------------------
+// Stubbfel
+// 15.10.2013
+// Implements the semester list picker item list model class
+//-----------------------------------------------------------------------
namespace CampusAppWPortalLib8.Model.Utility
{
- ///
- /// Class for the SemesterList
- ///
+ /// Class for the SemesterList.
+ /// Stubbfel, 15.10.2013.
+ ///
public class SemesterListPickerItemListModel : ListPickerItemListModel
{
#region Constructor
///
- /// Initializes a new instance of the class.
+ /// Initializes a new instance of the class.
///
+ /// Stubbfel, 15.10.2013.
public SemesterListPickerItemListModel()
: base()
{
@@ -26,9 +29,9 @@ namespace CampusAppWPortalLib8.Model.Utility
#region Method
- ///
- /// Overrides the LoadList-Method
- ///
+ /// Overrides the LoadList-Method
+ /// Stubbfel, 15.10.2013.
+ ///
protected override void LoadList()
{
this.AddItem(new ListPickerItemModel("20132", "WiSe 13/14"));
diff --git a/CampusAppWP8/CampusAppWPortalLib8/Model/Utility/URLParamModel.cs b/CampusAppWP8/CampusAppWPortalLib8/Model/Utility/URLParamModel.cs
index 49ebf92a..470de426 100644
--- a/CampusAppWP8/CampusAppWPortalLib8/Model/Utility/URLParamModel.cs
+++ b/CampusAppWP8/CampusAppWPortalLib8/Model/Utility/URLParamModel.cs
@@ -1,42 +1,38 @@
//-----------------------------------------------------------------------
//
-// Company copyright tag.
+// The MIT License (MIT). Copyright (c) 2013 BTU/IIT.
//
-// stubbfel
-// 17.06.2013
-//----------------------------------------------------------------------
+// Stubbfel
+// 15.10.2013
+// Implements the URL parameter model class
+//-----------------------------------------------------------------------
namespace CampusAppWPortalLib8.Model.Utility
{
- ///
- /// This class is a Model for the URLParameter like GET-Parameter
- ///
+ /// This class is a Model for the URLParameter like GET-Parameter.
+ /// Stubbfel, 15.10.2013.
public class UrlParamModel
{
#region Members
- ///
- /// Variable of the key
- ///
+ /// Variable of the key.
protected readonly string key;
#endregion
#region Constructor
- ///
- /// Initializes a new instance of the class.
- ///
- /// the key for the parameter
+ /// Initializes a new instance of the class.
+ /// Stubbfel, 15.10.2013.
+ /// the key for the parameter.
public UrlParamModel(string key)
{
this.key = key;
}
- ///
- /// Initializes a new instance of the class.
- ///
- /// the key for the parameter>
- /// value of the parameter
+ /// Initializes a new instance of the class.
+ /// Stubbfel, 15.10.2013.
+ /// the key for the parameter.
+ /// value of the parameter.
public UrlParamModel(string key, string value)
{
this.key = key;
@@ -46,14 +42,12 @@ namespace CampusAppWPortalLib8.Model.Utility
#region Proberty
- ///
- /// Gets or sets the value of the Parameter
- ///
+ /// Gets or sets the value of the Parameter.
+ /// The value.
public string Value { get; set; }
- ///
- /// Gets the key of the parameter
- ///
+ /// Gets the key of the parameter.
+ /// The key.
public string Key
{
get
@@ -62,9 +56,8 @@ namespace CampusAppWPortalLib8.Model.Utility
}
}
- ///
- /// Gets the token, which indicate that the parameterList started
- ///
+ /// Gets the token, which indicate that the parameterList started.
+ /// The parameter token.
public virtual string ParamToken
{
get
@@ -76,10 +69,9 @@ namespace CampusAppWPortalLib8.Model.Utility
#region Methods
- ///
- /// Method check if the parameter is valid
- ///
- /// true if is it valid, otherwise false
+ /// Method check if the parameter is valid.
+ /// Stubbfel, 15.10.2013.
+ /// true if is it valid, otherwise false.
public virtual bool IsParamValid()
{
if (this.key == null || string.Empty.Equals(this.key) || string.Empty.Equals(this.Value))
@@ -90,10 +82,9 @@ namespace CampusAppWPortalLib8.Model.Utility
return true;
}
- ///
- /// Method return a formatted string like Key=Value
- ///
- /// return formatted string
+ /// Method return a formatted string like Key=Value.
+ /// Stubbfel, 15.10.2013.
+ ///
public override string ToString()
{
if (!this.IsParamValid())
diff --git a/CampusAppWP8/CampusAppWPortalLib8/Settings.StyleCop b/CampusAppWP8/CampusAppWPortalLib8/Settings.StyleCop
index 6211b689..d40e399f 100644
--- a/CampusAppWP8/CampusAppWPortalLib8/Settings.StyleCop
+++ b/CampusAppWP8/CampusAppWPortalLib8/Settings.StyleCop
@@ -3,6 +3,7 @@
akadgrad
api
+ fiedlchr
nfc
param
qr
@@ -16,7 +17,7 @@
BTU/IIT
- BTU/IIT
+ The MIT License (MIT). Copyright (c) 2013 BTU/IIT.