/// <summary> /// Returns a HttpClient, where the authorization header will be set, so that /// it can just be used, for sending and recieving things /// </summary> /// <param name="model">The information needed to access information on the api</param> /// <returns>An HttpClient with the authorization token already set.</returns> public static HttpClient GetAuthorizeClient(LoggedInModel model) { var result = new HttpClient(); result.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", model.AuthenticationToken); return result; }
public ServiceGateway<Log> GetLogGateway(LoggedInModel model) { return new LogGateway(model); }
public ServiceGateway<Employee> GetEmployeeGateway(LoggedInModel model) { return new EmployeeGateway(model); }
public ServiceGateway<Company> GetCompanyGateway(LoggedInModel model) { return new CompanyGateway(model); }