C# 클래스 OS2Indberetning.BuisnessLogic.APICaller

APICaller is responsible for handling API calling to the backend.
파일 보기 프로젝트 열기: os2indberetning/OS2_Windows_Phone

공개 메소드들

메소드 설명
Couple ( string url, string username, string password ) : Task

Couples phone and user through a token id.

GetMunicipalityList ( ) : Task>

Fetches all possible Municipalitys

RefreshModel ( Authorization authorization, Municipality mun ) : Task

Fetches the UserInfoModel belonging to the token.

SubmitDrive ( DriveReport report, Authorization authorization, string munUrl ) : Task

Used to submit drivereport after finished drive.

비공개 메소드들

메소드 설명
APICaller ( ) : System
DeserializeError ( string jsonString ) : Error
IsValidJson ( string strInput ) : bool
RemoveTrailer ( UserInfoModel model ) : UserInfoModel

Removes Anhænger rate from UserInfoModel.Rates

메소드 상세

Couple() 공개 정적인 메소드

Couples phone and user through a token id.
public static Couple ( string url, string username, string password ) : Task
url string Url to post too.
username string
password string
리턴 Task

GetMunicipalityList() 공개 정적인 메소드

Fetches all possible Municipalitys
public static GetMunicipalityList ( ) : Task>
리턴 Task>

RefreshModel() 공개 정적인 메소드

Fetches the UserInfoModel belonging to the token.
public static RefreshModel ( Authorization authorization, Municipality mun ) : Task
authorization Authorization the token belonging to the user.
mun OS2Indberetning.Model.Municipality the Municipality the user belongs to.
리턴 Task

SubmitDrive() 공개 정적인 메소드

Used to submit drivereport after finished drive.
public static SubmitDrive ( DriveReport report, Authorization authorization, string munUrl ) : Task
report OS2Indberetning.Model.DriveReport the report of the drive.
authorization Authorization the token belonging to the user.
munUrl string the municipalicy url to be called
리턴 Task