mv apis to Api namespace
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
// <author>stubbfel</author>
|
||||
// <sience>12.08.2013</sience>
|
||||
//----------------------------------------------------------------------
|
||||
namespace CampusAppWP8.Feed.GeoApi
|
||||
namespace CampusAppWP8.Api.GeoApi
|
||||
{
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
// <author>stubbfel</author>
|
||||
// <sience>06.08.2013</sience>
|
||||
//----------------------------------------------------------------------
|
||||
namespace CampusAppWP8.Feed.GeoApi
|
||||
namespace CampusAppWP8.Api.GeoApi
|
||||
{
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
// <author>stubbfel</author>
|
||||
// <sience>13.06.2013</sience>
|
||||
//----------------------------------------------------------------------
|
||||
namespace CampusAppWP8.Feed.Lecture
|
||||
namespace CampusAppWP8.Api.Lecture
|
||||
{
|
||||
using CampusAppWP8.Model;
|
||||
using CampusAppWP8.Model.Lecture;
|
||||
|
||||
12
CampusAppWP8/CampusAppWP8/Api/Person/PersonSearchApi.cs
Normal file
12
CampusAppWP8/CampusAppWP8/Api/Person/PersonSearchApi.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace CampusAppWP8.Api.Person
|
||||
{
|
||||
class PersonSearchApi
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -95,6 +95,7 @@
|
||||
<ItemGroup>
|
||||
<Compile Include="Api\GeoApi\CampusSpsApi.cs" />
|
||||
<Compile Include="Api\GeoApi\SpsApi.cs" />
|
||||
<Compile Include="Api\Person\PersonSearchApi.cs" />
|
||||
<Compile Include="App.xaml.cs">
|
||||
<DependentUpon>App.xaml</DependentUpon>
|
||||
</Compile>
|
||||
@@ -119,6 +120,7 @@
|
||||
<Compile Include="Model\GeoDb\SpsModel.cs" />
|
||||
<Compile Include="Model\Mensa\MealModel.cs" />
|
||||
<Compile Include="Model\Person\PersonFunctionModel.cs" />
|
||||
<Compile Include="Model\Person\PersonListModel.cs" />
|
||||
<Compile Include="Model\Person\PersonModel.cs" />
|
||||
<Compile Include="Model\Setting\AppSettings.cs" />
|
||||
<Compile Include="Model\Setting\UserProfilModel.cs" />
|
||||
|
||||
@@ -1,24 +1,42 @@
|
||||
using CampusAppWP8.Resources;
|
||||
using CampusAppWP8.Utility;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Text.RegularExpressions;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// <copyright file="PersonFunctionModel.cs" company="BTU/IIT">
|
||||
// Company copyright tag.
|
||||
// </copyright>
|
||||
// <author>stubbfel</author>
|
||||
// <sience>05.09.2013</sience>
|
||||
//-----------------------------------------------------------------------------
|
||||
namespace CampusAppWP8.Model.Person
|
||||
{
|
||||
using System.Xml.Serialization;
|
||||
using CampusAppWP8.Utility;
|
||||
|
||||
/// <summary>Person function model.</summary>
|
||||
/// <remarks>Stubbfel, 05.09.2013.</remarks>
|
||||
public class PersonFunctionModel
|
||||
{
|
||||
/// <summary>The first tel.</summary>
|
||||
private string tel1;
|
||||
|
||||
/// <summary>The second tel.</summary>
|
||||
private string tel2;
|
||||
|
||||
/// <summary>The fax.</summary>
|
||||
private string fax;
|
||||
|
||||
/// <summary>The mail.</summary>
|
||||
private string mail;
|
||||
|
||||
/// <summary>The function.</summary>
|
||||
private string function;
|
||||
|
||||
/// <summary>The appointment.</summary>
|
||||
private string appointment;
|
||||
|
||||
/// <summary>The building.</summary>
|
||||
private string building;
|
||||
|
||||
/// <summary>Gets or sets the tel 1.</summary>
|
||||
/// <value>The tel 1.</value>
|
||||
[XmlAttribute("telefon")]
|
||||
public string Tel1
|
||||
{
|
||||
@@ -26,6 +44,7 @@ namespace CampusAppWP8.Model.Person
|
||||
{
|
||||
return this.tel1;
|
||||
}
|
||||
|
||||
set
|
||||
{
|
||||
if (value != null && value != this.tel1)
|
||||
@@ -35,6 +54,8 @@ namespace CampusAppWP8.Model.Person
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Gets or sets the tel 2.</summary>
|
||||
/// <value>The tel 2.</value>
|
||||
[XmlAttribute("telefon2")]
|
||||
public string Tel2
|
||||
{
|
||||
@@ -42,6 +63,7 @@ namespace CampusAppWP8.Model.Person
|
||||
{
|
||||
return this.tel2;
|
||||
}
|
||||
|
||||
set
|
||||
{
|
||||
if (value != null && value != this.tel2)
|
||||
@@ -51,6 +73,8 @@ namespace CampusAppWP8.Model.Person
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Gets or sets the fax.</summary>
|
||||
/// <value>The fax.</value>
|
||||
[XmlAttribute("fax")]
|
||||
public string Fax
|
||||
{
|
||||
@@ -58,6 +82,7 @@ namespace CampusAppWP8.Model.Person
|
||||
{
|
||||
return this.fax;
|
||||
}
|
||||
|
||||
set
|
||||
{
|
||||
if (value != null && value != this.fax)
|
||||
@@ -67,15 +92,65 @@ namespace CampusAppWP8.Model.Person
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Gets or sets the function.</summary>
|
||||
/// <value>The function.</value>
|
||||
[XmlAttribute("funktion")]
|
||||
public string Function { get; set; }
|
||||
public string Function
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.function;
|
||||
}
|
||||
|
||||
set
|
||||
{
|
||||
if (value != this.function)
|
||||
{
|
||||
this.function = StringManager.StripHTML(value);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Gets or sets the appointment.</summary>
|
||||
/// <value>The appointment.</value>
|
||||
[XmlAttribute("einrichtung")]
|
||||
public string Appointment { get; set; }
|
||||
public string Appointment
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.appointment;
|
||||
}
|
||||
|
||||
set
|
||||
{
|
||||
if (value != this.appointment)
|
||||
{
|
||||
this.appointment = StringManager.StripHTML(value);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Gets or sets the building.</summary>
|
||||
/// <value>The building.</value>
|
||||
[XmlAttribute("gebaeude")]
|
||||
public string Building { get; set; }
|
||||
public string Building
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.building;
|
||||
}
|
||||
|
||||
set
|
||||
{
|
||||
if (value != this.building)
|
||||
{
|
||||
this.building = StringManager.StripHTML(value);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Gets or sets the mail.</summary>
|
||||
/// <value>The mail.</value>
|
||||
[XmlAttribute("mail")]
|
||||
public string Mail
|
||||
{
|
||||
@@ -83,6 +158,7 @@ namespace CampusAppWP8.Model.Person
|
||||
{
|
||||
return this.mail;
|
||||
}
|
||||
|
||||
set
|
||||
{
|
||||
if (value != null && value != this.mail && StringManager.IsValidEmail(value))
|
||||
@@ -91,7 +167,5 @@ namespace CampusAppWP8.Model.Person
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
24
CampusAppWP8/CampusAppWP8/Model/Person/PersonListModel.cs
Normal file
24
CampusAppWP8/CampusAppWP8/Model/Person/PersonListModel.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
//-----------------------------------------------------------------------------
|
||||
// <copyright file="PersonListModel.cs" company="BTU/IIT">
|
||||
// Company copyright tag.
|
||||
// </copyright>
|
||||
// <author>stubbfel</author>
|
||||
// <sience>05.09.2013</sience>
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
namespace CampusAppWP8.Model.Person
|
||||
{
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
/// <summary>Person list model.</summary>
|
||||
/// <remarks>Stubbfel, 05.09.2013.</remarks>
|
||||
[XmlRoot("Uebersicht")]
|
||||
public class PersonListModel
|
||||
{
|
||||
/// <summary>Gets or sets the persons.</summary>
|
||||
/// <value>The persons.</value>
|
||||
[XmlElement("person")]
|
||||
public ObservableCollection<PersonFunctionModel> Persons { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -1,28 +1,94 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// <copyright file="PersonModel.cs" company="BTU/IIT">
|
||||
// Company copyright tag.
|
||||
// </copyright>
|
||||
// <author>stubbfel</author>
|
||||
// <sience>05.09.2013</sience>
|
||||
//-----------------------------------------------------------------------------
|
||||
namespace CampusAppWP8.Model.Person
|
||||
{
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Xml.Serialization;
|
||||
using CampusAppWP8.Utility;
|
||||
|
||||
/// <summary>Person model.</summary>
|
||||
/// <remarks>Stubbfel, 05.09.2013.</remarks>
|
||||
public class PersonModel
|
||||
{
|
||||
/// <summary>The akadgrad.</summary>
|
||||
private string akadgrad;
|
||||
|
||||
/// <summary>Name of the sur.</summary>
|
||||
private string surName;
|
||||
|
||||
/// <summary>The person's first name.</summary>
|
||||
private string firstName;
|
||||
|
||||
/// <summary>Gets or sets the identifier.</summary>
|
||||
/// <value>The identifier.</value>
|
||||
[XmlAttribute("id")]
|
||||
public string ID {get; set;}
|
||||
public string ID { get; set; }
|
||||
|
||||
/// <summary>Gets or sets the akadgrad.</summary>
|
||||
/// <value>The akadgrad.</value>
|
||||
[XmlAttribute("akadgrad")]
|
||||
public string Akadgrad { get; set; }
|
||||
public string Akadgrad
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.akadgrad;
|
||||
}
|
||||
|
||||
set
|
||||
{
|
||||
if (value != this.akadgrad)
|
||||
{
|
||||
this.akadgrad = StringManager.StripHTML(value);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Gets or sets the name of the sur.</summary>
|
||||
/// <value>The name of the sur.</value>
|
||||
[XmlAttribute("nachname")]
|
||||
public string SureName { get; set; }
|
||||
public string SurName
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.surName;
|
||||
}
|
||||
|
||||
set
|
||||
{
|
||||
if (value != this.surName)
|
||||
{
|
||||
this.surName = StringManager.StripHTML(value);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Gets or sets the person's first name.</summary>
|
||||
/// <value>The name of the first.</value>
|
||||
[XmlAttribute("vorname")]
|
||||
public string FirstName { get; set; }
|
||||
public string FirstName
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.firstName;
|
||||
}
|
||||
|
||||
set
|
||||
{
|
||||
if (value != this.firstName)
|
||||
{
|
||||
this.firstName = StringManager.StripHTML(value);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Gets or sets the functions of a person.</summary>
|
||||
/// <value>The functions.</value>
|
||||
[XmlElement("funktion")]
|
||||
public ObservableCollection<PersonFunctionModel> Function { get; set; }
|
||||
public ObservableCollection<PersonFunctionModel> Functions { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace CampusAppWP8.Pages.Lecture
|
||||
using System.Collections.Generic;
|
||||
using System.Windows;
|
||||
using System.Windows.Navigation;
|
||||
using CampusAppWP8.Feed.Lecture;
|
||||
using CampusAppWP8.Api.Lecture;
|
||||
using CampusAppWP8.Model.Lecture;
|
||||
using CampusAppWP8.Model.Utility;
|
||||
using CampusAppWP8.Resources;
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace CampusAppWP8.Pages.Mensa
|
||||
using System.Threading;
|
||||
using System.Windows;
|
||||
using System.Windows.Navigation;
|
||||
using CampusAppWP8.Feed.GeoApi;
|
||||
using CampusAppWP8.Api.GeoApi;
|
||||
using CampusAppWP8.Feed.Mensa;
|
||||
using CampusAppWP8.Resources;
|
||||
using CampusAppWP8.Utility.Lui.MessageBoxes;
|
||||
|
||||
Reference in New Issue
Block a user