public class ChatServiceAccessor.ProfileServiceWithDefaults
extends java.lang.Object
| Constructor and Description |
|---|
ProfileServiceWithDefaults(RxServiceAccessor.ProfileServiceWithDefaults service) |
| Modifier and Type | Method and Description |
|---|---|
void |
getProfile(java.lang.String profileId,
<any> callback)
Get profile details from the service.
|
void |
patchMyProfile(ComapiProfile profileDetails,
java.lang.String eTag,
<any> callback)
Applies profile patch for an active session.
|
void |
patchProfile(java.lang.String profileId,
ComapiProfile profileDetails,
java.lang.String eTag,
<any> callback)
Applies given profile patch if required permission is granted.
|
void |
queryProfiles(java.lang.String queryString,
<any> callback)
Query user profiles on the services.
|
void |
updateProfile(ComapiProfile profileDetails,
java.lang.String eTag,
<any> callback)
Updates profile for an active session.
|
public ProfileServiceWithDefaults(RxServiceAccessor.ProfileServiceWithDefaults service)
public void getProfile(java.lang.String profileId,
<any> callback)
profileId - Profile Id of the user.callback - Callback with the result.public void queryProfiles(java.lang.String queryString,
<any> callback)
queryString - Query string. See https://www.npmjs.com/package/mongo-querystring for query syntax. You can use QueryBuilder helper class to construct valid query string.callback - Callback with the result.public void updateProfile(ComapiProfile profileDetails,
java.lang.String eTag,
<any> callback)
profileDetails - Profile details.callback - Callback with the result.public void patchProfile(java.lang.String profileId,
ComapiProfile profileDetails,
java.lang.String eTag,
<any> callback)
profileId - Id of an profile to patch.profileDetails - Profile details.callback - Callback with the result.public void patchMyProfile(ComapiProfile profileDetails,
java.lang.String eTag,
<any> callback)
profileDetails - Profile details.callback - Callback with the result.