• Articles
  • Api Documentation
Show / Hide Table of Contents
  • PAccess.PartnerAgents
    • Api.Contracts
      • Branches
        • BranchAddress
        • BranchDetails
      • Customer
        • CreateCustomerRequest
        • CreateCustomerResponse
        • CustomerAddress
      • Property
        • ApiPropertyType
        • AuctionBidDetails
        • AuctionBidSummary
        • AuctionDetails
        • CentralHeatingType
        • CommercialBusinessType
        • CommercialPropertyDetails
        • CommercialPropertyType
        • GetPropertiesRequest
        • IReferredRequest
        • ListDataInfo
        • ParkingType
        • PropertyAddress
        • PropertyDetails
        • PropertyStatus
        • PropertySummary
        • ReferCommercialPropertyRequest
        • ReferPropertyResponse
        • ReferResidentialPropertyRequest
        • ResidentialPropertyDetails
        • ResidentialPropertyType
      • PropertyImage
        • AddPropertyImageRequest
        • AddPropertyImageResponse
        • PropertyImageDetails
        • RemovePropertyImageRequest
        • RemovePropertyImageResponse
        • SortPropertyImagesRequest
        • SortPropertyImagesResponse
      • PropertyNote
        • PropertyNoteDetails
      • Users
        • CreateUserRequest
        • CreateUserResponse
        • UserDetails
      • Viewing
        • AddViewingFeedbackRequest
        • AddViewingFeedbackResponse
        • CancelViewingRequest
        • CancelViewingResponse
        • CreateViewingRequest
        • CreateViewingResponse
        • RescheduleViewingRequest
        • RescheduleViewingResponse
        • ViewingDetails
      • ApiClientDetails
      • ErrorResponse
      • IApiAddress
      • IApiResponse
    • ApiClient
      • Configuration
        • PartnerAgentApiClientSettings
      • Factories
        • IPartnerAgentApiClientFactory
        • PartnerAgentApiClientFactory
      • Services
        • Branches
          • IPartnerAgentBranches
        • BusinessTypes
          • IPartnerAgentCommercialBusinessTypes
        • CentralHeatingTypes
          • IPartnerAgentCentralHeatingTypes
        • Customers
          • IPartnerAgentCustomers
        • ParkingTypes
          • IPartnerAgentParkingTypes
        • Properties
          • IPartnerAgentProperties
        • PropertyImages
          • IPartnerAgentPropertyImages
        • PropertyNotes
          • IPartnerAgentPropertyNotes
        • PropertyTypes
          • IPartnerAgentCommercialPropertyTypes
          • IPartnerAgentResidentialPropertyTypes
        • RequestExecution
          • NullableReferenceTypesExtensions
        • TokenValidation
          • IPartnerAgentTokenValidation
        • Users
          • IPartnerAgentUsers
        • Viewings
          • IPartnerAgentViewings
      • IPartnerAgentApiClient

Interface IPartnerAgentBranches

Represents the interface for branch-related operations in the Partner Agent API client.

Namespace: PAccess.PartnerAgents.ApiClient.Services.Branches
Assembly: PAccess.PartnerAgents.ApiClient.dll
Syntax
public interface IPartnerAgentBranches

Methods

View Source

GetAllAsync(CancellationToken)

Retrieves all branches asynchronously.

Declaration
Task<IReadOnlyList<BranchDetails>> GetAllAsync(CancellationToken cancellationToken = default)
Parameters
Type Name Description
CancellationToken cancellationToken

The cancellation token.

Returns
Type Description
Task<IReadOnlyList<BranchDetails>>

A task representing the asynchronous operation that returns the list of all branches.

View Source

GetBranchUsersAsync(int, CancellationToken)

Retrieves the users of a branch asynchronously.

Declaration
Task<IReadOnlyList<UserDetails>> GetBranchUsersAsync(int id, CancellationToken cancellationToken = default)
Parameters
Type Name Description
int id

The ID of the branch.

CancellationToken cancellationToken

The cancellation token.

Returns
Type Description
Task<IReadOnlyList<UserDetails>>

A task representing the asynchronous operation that returns the list of users belonging to the branch.

View Source

GetByIdAsync(int, CancellationToken)

Retrieves a branch by ID asynchronously.

Declaration
Task<BranchDetails?> GetByIdAsync(int id, CancellationToken cancellationToken = default)
Parameters
Type Name Description
int id

The ID of the branch.

CancellationToken cancellationToken

The cancellation token.

Returns
Type Description
Task<BranchDetails>

A task representing the asynchronous operation that returns the branch with the specified ID.

  • View Source
In This Article
Back to top Generated by DocFX