Class AppServicesController
Network services requests helper.
Inherited Members
Namespace: EduCATS.Networking.AppServices
Assembly: EduCATS.dll
Syntax
public static class AppServicesController
  Properties
PlatformServices
Declaration
public static IPlatformServices PlatformServices { get; set; }
  Property Value
| Type | Description | 
|---|---|
| IPlatformServices | 
Methods
Request(string, AppDemoType)
Send GET request.
Declaration
public static Task<KeyValuePair<string, HttpStatusCode>> Request(string link, AppDemoType demoType = AppDemoType.None)
  Parameters
| Type | Name | Description | 
|---|---|---|
| string | link | API URL.  | 
      
| AppDemoType | demoType | Demo response type.  | 
      
Returns
| Type | Description | 
|---|---|
| Task<KeyValuePair<string, HttpStatusCode>> | 
  | 
      
Request(string, string, AppDemoType)
Send POST request.
Declaration
public static Task<KeyValuePair<string, HttpStatusCode>> Request(string link, string body, AppDemoType demoType = AppDemoType.None)
  Parameters
| Type | Name | Description | 
|---|---|---|
| string | link | API URL.  | 
      
| string | body | Body to post.  | 
      
| AppDemoType | demoType | Demo response type.  | 
      
Returns
| Type | Description | 
|---|---|
| Task<KeyValuePair<string, HttpStatusCode>> | 
  |