Пример #1
0
 /// <summary>
 /// Will get all the units for a department
 /// </summary>
 /// <param name="departmentId">Non-negative DepartmentId to get</param>
 /// <returns>A list populated with the units for a department. Depending on the departmentId passed in could also be BadRequest or Unauthorized http status codes.</returns>
 public static async Task <List <Unit> > GetUnitsForDepartment(int departmentId)
 {
     return(await ResgridV3ApiClient.Get <List <Unit> >($"Units/GetUnitsForDepartment?departmentId={departmentId}"));
 }
Пример #2
0
 public static async Task <HealthResult> GetApiHealth()
 {
     return(await ResgridV3ApiClient.Get <HealthResult>("Health/GetCurrent"));
 }
Пример #3
0
 /// <summary>
 /// Will get optional department information about a department in the Resgrid system
 /// </summary>
 /// <param name="departmentId">Non-negative DepartmentId to get</param>
 /// <returns>A list populated with the department options object. Depending on the departmentId passed in could also be BadRequest or Unauthorized http status codes.</returns>
 public static async Task <List <DepartmentOption> > GetOptions(int departmentId)
 {
     return(await ResgridV3ApiClient.Get <List <DepartmentOption> >($"Department/GetDepartmentOptions?departmentId={departmentId}"));
 }
Пример #4
0
 public static async Task <List <CallPriority> > GetAllCallPriorites(int departmentId)
 {
     return(await ResgridV3ApiClient.Get <List <CallPriority> >($"CallPriorities/GetAllCallPrioritesForDepartment?departmentId={departmentId}"));
 }
Пример #5
0
 /// <summary>
 /// Gets all active calls for the supplied department
 /// </summary>
 /// <param name="departmentId">Non-negative DepartmentId to get</param>
 /// <returns>A list populated with calls from the Resgrid API. Depending on the departmentId passed in could also be BadRequest or Unauthorized http status codes.</returns>
 public static async Task <List <Call> > GetActiveCalls(int departmentId)
 {
     return(await ResgridV3ApiClient.Get <List <Call> >($"Calls/GetActiveCallsForDepartment?departmentId={departmentId}"));
 }