Class ParticipantWithUserId
- java.lang.Object
-
- com.zendesk.sunshine_conversations_client.model.ParticipantWithUserId
-
public class ParticipantWithUserId extends java.lang.ObjectParticipantWithUserId
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringJSON_PROPERTY_SUBSCRIBE_S_D_K_CLIENTstatic java.lang.StringJSON_PROPERTY_USER_ID
-
Constructor Summary
Constructors Constructor Description ParticipantWithUserId()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)java.lang.BooleangetSubscribeSDKClient()When passed as true, the SDK client of the concerned participant will be subscribed to the conversation.java.lang.StringgetUserId()The id of the user that will be participating in the conversation.inthashCode()voidsetSubscribeSDKClient(java.lang.Boolean subscribeSDKClient)voidsetUserId(java.lang.String userId)ParticipantWithUserIdsubscribeSDKClient(java.lang.Boolean subscribeSDKClient)java.lang.StringtoString()ParticipantWithUserIduserId(java.lang.String userId)
-
-
-
Field Detail
-
JSON_PROPERTY_USER_ID
public static final java.lang.String JSON_PROPERTY_USER_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SUBSCRIBE_S_D_K_CLIENT
public static final java.lang.String JSON_PROPERTY_SUBSCRIBE_S_D_K_CLIENT
- See Also:
- Constant Field Values
-
-
Method Detail
-
userId
public ParticipantWithUserId userId(java.lang.String userId)
-
getUserId
@Nullable public java.lang.String getUserId()
The id of the user that will be participating in the conversation. It will return `404` if the user can’t be found. One of `userId` or `userExternalId` is required, but not both.- Returns:
- userId
-
setUserId
public void setUserId(java.lang.String userId)
-
subscribeSDKClient
public ParticipantWithUserId subscribeSDKClient(java.lang.Boolean subscribeSDKClient)
-
getSubscribeSDKClient
@Nullable public java.lang.Boolean getSubscribeSDKClient()
When passed as true, the SDK client of the concerned participant will be subscribed to the conversation. The user will start receiving push notifications for this conversation right away, without having to view the conversation on the SDK beforehand. An SDK client will be created for users that don’t already have one. This field is required if the conversation is of type `sdkGroup`.- Returns:
- subscribeSDKClient
-
setSubscribeSDKClient
public void setSubscribeSDKClient(java.lang.Boolean subscribeSDKClient)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-