Class LineAllOf
- java.lang.Object
-
- com.zendesk.sunshine_conversations_client.model.LineAllOf
-
public class LineAllOf extends java.lang.ObjectLineAllOf
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringJSON_PROPERTY_CHANNEL_ACCESS_TOKENstatic java.lang.StringJSON_PROPERTY_CHANNEL_IDstatic java.lang.StringJSON_PROPERTY_CHANNEL_SECRETstatic java.lang.StringJSON_PROPERTY_LINE_IDstatic java.lang.StringJSON_PROPERTY_QR_CODE_URLstatic java.lang.StringJSON_PROPERTY_SERVICE_CODEstatic java.lang.StringJSON_PROPERTY_SWITCHER_SECRETstatic java.lang.StringJSON_PROPERTY_TYPE
-
Constructor Summary
Constructors Constructor Description LineAllOf()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LineAllOfchannelAccessToken(java.lang.String channelAccessToken)LineAllOfchannelId(java.lang.String channelId)LineAllOfchannelSecret(java.lang.String channelSecret)booleanequals(java.lang.Object o)java.lang.StringgetChannelAccessToken()LINE Channel Access Token.java.lang.StringgetChannelId()LINE Channel ID.java.lang.StringgetChannelSecret()LINE Channel Secret.java.lang.StringgetLineId()LINE Basic ID.java.lang.StringgetQrCodeUrl()URL provided by LINE in the [Developer Console](https://developers.line.biz/console/).java.lang.StringgetServiceCode()LINE Service Code.java.lang.StringgetSwitcherSecret()LINE Switcher Secret.java.lang.StringgetType()For LINE, each of your customers will need to manually configure a webhook in their LINE configuration page that will point to Sunshine Conversations servers.inthashCode()LineAllOfqrCodeUrl(java.lang.String qrCodeUrl)LineAllOfserviceCode(java.lang.String serviceCode)voidsetChannelAccessToken(java.lang.String channelAccessToken)voidsetChannelId(java.lang.String channelId)voidsetChannelSecret(java.lang.String channelSecret)voidsetQrCodeUrl(java.lang.String qrCodeUrl)voidsetServiceCode(java.lang.String serviceCode)voidsetSwitcherSecret(java.lang.String switcherSecret)voidsetType(java.lang.String type)LineAllOfswitcherSecret(java.lang.String switcherSecret)java.lang.StringtoString()LineAllOftype(java.lang.String type)
-
-
-
Field Detail
-
JSON_PROPERTY_TYPE
public static final java.lang.String JSON_PROPERTY_TYPE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_CHANNEL_ID
public static final java.lang.String JSON_PROPERTY_CHANNEL_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_CHANNEL_SECRET
public static final java.lang.String JSON_PROPERTY_CHANNEL_SECRET
- See Also:
- Constant Field Values
-
JSON_PROPERTY_CHANNEL_ACCESS_TOKEN
public static final java.lang.String JSON_PROPERTY_CHANNEL_ACCESS_TOKEN
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SERVICE_CODE
public static final java.lang.String JSON_PROPERTY_SERVICE_CODE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SWITCHER_SECRET
public static final java.lang.String JSON_PROPERTY_SWITCHER_SECRET
- See Also:
- Constant Field Values
-
JSON_PROPERTY_QR_CODE_URL
public static final java.lang.String JSON_PROPERTY_QR_CODE_URL
- See Also:
- Constant Field Values
-
JSON_PROPERTY_LINE_ID
public static final java.lang.String JSON_PROPERTY_LINE_ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
type
public LineAllOf type(java.lang.String type)
-
getType
@Nullable public java.lang.String getType()
For LINE, each of your customers will need to manually configure a webhook in their LINE configuration page that will point to Sunshine Conversations servers. You must instruct your customers how to configure this manually on their LINE bot page. Once you’ve acquired all the required information, call the Create Integration endpoint. Then, using the returned integration _id, your customer must set the Callback URL field in their LINE Business Center page. The URL should look like the following: `https://app.smooch.io:443/api/line/webhooks/{appId}/{integrationId}`.- Returns:
- type
-
setType
public void setType(java.lang.String type)
-
channelId
public LineAllOf channelId(java.lang.String channelId)
-
getChannelId
@Nullable public java.lang.String getChannelId()
LINE Channel ID. Can be omitted along with `channelSecret` to integrate LINE to setup a webhook before receiving the `channelId` and `channelSecret` back from LINE.- Returns:
- channelId
-
setChannelId
public void setChannelId(java.lang.String channelId)
-
channelSecret
public LineAllOf channelSecret(java.lang.String channelSecret)
-
getChannelSecret
@Nullable public java.lang.String getChannelSecret()
LINE Channel Secret. Can be omitted along with `channelId` to integrate LINE to setup a webhook before receiving the `channelId` and `channelSecret` back from LINE.- Returns:
- channelSecret
-
setChannelSecret
public void setChannelSecret(java.lang.String channelSecret)
-
channelAccessToken
public LineAllOf channelAccessToken(java.lang.String channelAccessToken)
-
getChannelAccessToken
@Nullable public java.lang.String getChannelAccessToken()
LINE Channel Access Token.- Returns:
- channelAccessToken
-
setChannelAccessToken
public void setChannelAccessToken(java.lang.String channelAccessToken)
-
serviceCode
public LineAllOf serviceCode(java.lang.String serviceCode)
-
getServiceCode
@Nullable public java.lang.String getServiceCode()
LINE Service Code.- Returns:
- serviceCode
-
setServiceCode
public void setServiceCode(java.lang.String serviceCode)
-
switcherSecret
public LineAllOf switcherSecret(java.lang.String switcherSecret)
-
getSwitcherSecret
@Nullable public java.lang.String getSwitcherSecret()
LINE Switcher Secret.- Returns:
- switcherSecret
-
setSwitcherSecret
public void setSwitcherSecret(java.lang.String switcherSecret)
-
qrCodeUrl
public LineAllOf qrCodeUrl(java.lang.String qrCodeUrl)
-
getQrCodeUrl
@Nullable public java.lang.String getQrCodeUrl()
URL provided by LINE in the [Developer Console](https://developers.line.biz/console/).- Returns:
- qrCodeUrl
-
setQrCodeUrl
public void setQrCodeUrl(java.lang.String qrCodeUrl)
-
getLineId
@Nullable public java.lang.String getLineId()
LINE Basic ID. Is automatically set when qrCodeUrl is updated.- Returns:
- lineId
-
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
-
-