Class LeadEndpoint
java.lang.Object
com.maplander.backend.controller.endpoint.common.LeadEndpoint
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondefaultListLead
(Long officeId, LeadTypeEnum type, Integer limit, String cursor, boolean asc) listFavoritesByProperty
(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)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) listLeadREQUEST
(Long officeId, Integer limit, String cursor, boolean asc) listLeadsByOfficeAndTypeFree
(Long officeId, LeadTypeEnum type, Integer limit, String cursor, boolean asc)
-
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.OK
HttpStatusCode.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) -
defaultListLead
public EntityCollectionResponse<Lead> defaultListLead(Long officeId, LeadTypeEnum type, Integer limit, String cursor, boolean asc) -
listLeadREQUEST
public EntityCollectionResponse<Lead> listLeadREQUEST(Long officeId, Integer limit, String cursor, boolean asc) -
listLeadsByOfficeAndTypeFree
public EntityCollectionResponse<Lead> listLeadsByOfficeAndTypeFree(Long officeId, LeadTypeEnum type, Integer limit, String cursor, boolean asc) -
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)
-