diff --git a/CampusAppWP8/CampusAppWP8/CampusAppWP8.csproj b/CampusAppWP8/CampusAppWP8/CampusAppWP8.csproj index c5fe7937..14c3174d 100644 --- a/CampusAppWP8/CampusAppWP8/CampusAppWP8.csproj +++ b/CampusAppWP8/CampusAppWP8/CampusAppWP8.csproj @@ -178,7 +178,7 @@ - + diff --git a/CampusAppWP8/CampusAppWP8/Properties/WMAppManifest.xml b/CampusAppWP8/CampusAppWP8/Properties/WMAppManifest.xml index 04b6f0e8..f4b319d3 100644 --- a/CampusAppWP8/CampusAppWP8/Properties/WMAppManifest.xml +++ b/CampusAppWP8/CampusAppWP8/Properties/WMAppManifest.xml @@ -13,7 +13,7 @@ - + diff --git a/CampusAppWP8/CampusAppWP8/Utility/RestApi.cs b/CampusAppWP8/CampusAppWP8/Utility/HttpRequest.cs similarity index 90% rename from CampusAppWP8/CampusAppWP8/Utility/RestApi.cs rename to CampusAppWP8/CampusAppWP8/Utility/HttpRequest.cs index 6c2283eb..1ba0ed8d 100644 --- a/CampusAppWP8/CampusAppWP8/Utility/RestApi.cs +++ b/CampusAppWP8/CampusAppWP8/Utility/HttpRequest.cs @@ -1,5 +1,5 @@ //----------------------------------------------------------------------- -// +// // Company copyright tag. // // stubbfel @@ -13,9 +13,9 @@ namespace CampusAppWP8.Utility using CampusAppWP8.Model.Utility; /// - /// Class realize the access of restful RestAPI + /// Class realize the access of restful HttpRequest /// - public abstract class RestApi + public abstract class HttpRequest { #region Members @@ -29,18 +29,18 @@ namespace CampusAppWP8.Utility #region Constructor /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public RestApi() + public HttpRequest() { this.client = new WebClient(); } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - /// the url of the RestAPI base address - public RestApi(Uri apiBaseAddress) + /// the url of the HttpRequest base address + public HttpRequest(Uri apiBaseAddress) { this.client = new WebClient(); this.client.BaseAddress = apiBaseAddress.AbsoluteUri; @@ -149,7 +149,7 @@ namespace CampusAppWP8.Utility /// /// Url of the resource /// callback method - /// Data which are sending via post to the RestAPI + /// Data which are sending via post to the HttpRequest public void HttpPost(Uri url, Action action, string postData) { this.UploadData(url, action, "POST", postData); @@ -160,7 +160,7 @@ namespace CampusAppWP8.Utility /// /// Url of the resource /// callback method - /// Data which are sending via put to the RestAPI + /// Data which are sending via put to the HttpRequest public void HttpPut(Uri url, Action action, string putData) { this.UploadData(url, action, "PUT", putData); @@ -171,7 +171,7 @@ namespace CampusAppWP8.Utility /// /// Url of the resource /// callback method - /// Data which are sending via patch to the RestAPI + /// Data which are sending via patch to the HttpRequest public void HttpPatch(Uri url, Action action, string patchData) { this.UploadData(url, action, "PATCH", patchData); @@ -182,12 +182,12 @@ namespace CampusAppWP8.Utility #region private /// - /// Method uploaded Data to the RestAPI + /// Method uploaded Data to the HttpRequest /// /// Url of the resource /// callback method /// name of APIMethod, how the data will be uploaded - /// Data which are sending to the RestAPI + /// Data which are sending to the HttpRequest private void UploadData(Uri url, Action action, string method, string data) { this.client.UploadStringCompleted += new UploadStringCompletedEventHandler(action); diff --git a/CampusAppWP8/CampusAppWP8/Utility/XmlApi.cs b/CampusAppWP8/CampusAppWP8/Utility/XmlApi.cs index acad2995..71e48753 100644 --- a/CampusAppWP8/CampusAppWP8/Utility/XmlApi.cs +++ b/CampusAppWP8/CampusAppWP8/Utility/XmlApi.cs @@ -17,7 +17,7 @@ namespace CampusAppWP8.Utility /// This abstract Class is for Xml-API /// /// Type for model of the API - public abstract class XmlApi : RestApi + public abstract class XmlApi : HttpRequest { #region Members diff --git a/CampusAppWP8/CampusAppWP8/utility/Feed.cs b/CampusAppWP8/CampusAppWP8/utility/Feed.cs index a085617b..eafe14d5 100644 --- a/CampusAppWP8/CampusAppWP8/utility/Feed.cs +++ b/CampusAppWP8/CampusAppWP8/utility/Feed.cs @@ -14,7 +14,7 @@ namespace CampusAppWP8.Utility /// This a abstract Class for reading, store and deserialization Feeds from the Web. /// /// Type for model of the feed - public abstract class Feed : RestApi + public abstract class Feed : HttpRequest { #region Member