Class LeadEndpoint
java.lang.Object
com.maplander.backend.controller.endpoint.common.LeadEndpoint
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlistFavoritesByProperty(Long propertyId, Integer limit, String cursor) listLeadByOffice(Long officeId, Long userMLId, Integer limit, String cursor) Return "lead" of office with correct officeId, userIdML(optional), limit(optional), cursor(optional)listLeadByOfficeAndType(Long officeId, LeadTypeEnum type, Integer limit, String cursor) listLeadByOfficeAndTypeOrderByDate(Long officeId, LeadTypeEnum type, Boolean asc, Integer limit, String cursor) listLeadByPropertyAndType(Long propertyId, LeadTypeEnum type, Integer limit, String cursor) Return "lead" of property and type with correct officeId, type, limit(optional), cursor(optional)listLeadByUser(Long userId, LeadTypeEnum type, Integer limit, String cursor) listLeadInfoByOffice(Long officeId, Integer limit, String cursor) Return "lead" of property with correct officeId, type, limit(optional), cursor(optional)listLeadInfoByOfficeOrder(Long officeId, Integer limit, String cursor) reassignedLead(Long leadId, Long userId) updateleadRequestIndex(String apiKey, Long officeId, Integer limit, String cursor)
-
Constructor Details
-
LeadEndpoint
public LeadEndpoint()
-
-
Method Details
-
listLeadByOffice
public EntityCollectionResponse<Lead> listLeadByOffice(Long officeId, Long userMLId, Integer limit, String cursor) Return "lead" of office with correct officeId, userIdML(optional), limit(optional), cursor(optional)- Parameters:
officeId- id of officeuserMLId- id of user mapLander (can be null)limit- can be nullcursor- can be null- Returns:
- EntityCollectionResponse with Lead
HttpStatusCode.OK,HttpStatusCode.BAD_REQUEST
-
listLeadByPropertyAndType
public EntityCollectionResponse<Lead> listLeadByPropertyAndType(Long propertyId, LeadTypeEnum type, Integer limit, String cursor) Return "lead" of property and type with correct officeId, type, limit(optional), cursor(optional)- Parameters:
propertyId- id of propertytype- lead type (type 1= favorites, type 2= share, type 3= request, type 4= offer)limit- (can be null)cursor- (can be null)- Returns:
- EntityResponse with Lead
HttpStatusCode.OKHttpStatusCode.BAD_REQUEST
-
listLeadInfoByOffice
public EntityCollectionResponse<LeadInfo> listLeadInfoByOffice(Long officeId, Integer limit, String cursor) Return "lead" of property with correct officeId, type, limit(optional), cursor(optional)- Parameters:
officeId- id of officelimit- (can be null)cursor- (can be null)- Returns:
- EntityResponse with Lead
HttpStatusCode.BAD_REQUEST,HttpStatusCode.OK
-
listLeadInfoByOfficeOrder
public EntityCollectionResponse<LeadInfo> listLeadInfoByOfficeOrder(Long officeId, Integer limit, String cursor) -
listLeadByOfficeAndType
public EntityCollectionResponse<Lead> listLeadByOfficeAndType(Long officeId, LeadTypeEnum type, Integer limit, String cursor) -
listLeadByOfficeAndTypeOrderByDate
public EntityCollectionResponse<Lead> listLeadByOfficeAndTypeOrderByDate(Long officeId, LeadTypeEnum type, Boolean asc, Integer limit, String cursor) -
getLead
-
listFavoritesByProperty
public EntityCollectionResponse<Lead> listFavoritesByProperty(Long propertyId, Integer limit, String cursor) -
listLeadByUser
public EntityCollectionResponse<Lead> listLeadByUser(Long userId, LeadTypeEnum type, Integer limit, String cursor) -
reassignedLead
-
updateleadRequestIndex
-