Get Content Download Settings
Retrieves the content download settings for the community. This function allows users to fetch information about which types of content can be downloaded and their respective settings.
Steps to get content download settings
- Call
getContentDownloadSettings()
function using the instance ofLMChatClient
. - Process the response LMResponse<GetContentDownloadSettingsResponse> as per your requirement.
LMChatClient.shared.getContentDownloadSettings { response in
// response (LMResponse<GetContentDownloadSettingsResponse>)
if let data = response.data {
// your function to process the response data
processContentDownloadSettings(data.settings)
} else if let error = response.error {
// your function to process error
handleError(error)
}
}
Models
GetContentDownloadSettingsResponse
VARIABLE | TYPE | DESCRIPTION | OPTIONAL |
---|---|---|---|
settings | [ContentDownloadSetting] | Array of content download settings | ✔️ |
ContentDownloadSetting
VARIABLE | TYPE | DESCRIPTION | OPTIONAL |
---|---|---|---|
communityId | Int | ID of the community | |
downloadSettingType | String | Type of content for which the setting applies | |
downloadSettingTitle | String | Title or description of the download setting | |
enabled | Bool | Whether downloading is enabled for this content type |