GET | /digitalFitnessResources | Use to get digital fitness library content |
---|
import java.math.*
import java.util.*
import net.servicestack.client.*
import com.google.gson.annotations.*
import com.google.gson.reflect.*
open class DigitalFitnessContentRequest : BasicResourceLibraryRequest()
{
}
open class BasicResourceLibraryRequest
{
var resourceLibraryMemberId:Int? = null
}
open class DigitalFitnessResourcesResponse
{
var digitalFitnessResources:ArrayList<TopicLite> = ArrayList<TopicLite>()
}
open class TopicLite
{
var id:String? = null
var subtopicItems:ArrayList<SubtopicLite> = ArrayList<SubtopicLite>()
var resourceItems:ArrayList<ResourceCard> = ArrayList<ResourceCard>()
var title:String? = null
var isVisible:String? = null
var resourceCount:Int? = null
}
open class SubtopicLite
{
var id:String? = null
var title:String? = null
var resourceCount:Int? = null
var resourceItems:ArrayList<ResourceCard> = ArrayList<ResourceCard>()
}
open class ResourceCard
{
var id:String? = null
var title:String? = null
var description:String? = null
var descriptionSummary:String? = null
@SerializedName("type") var Type:String? = null
var content:String? = null
var isComplete:Boolean? = null
var isFavorite:Boolean? = null
var isImplicitlyComplete:Boolean? = null
var mediaPath:String? = null
var isConfirmable:Boolean? = null
var isWcagCompliant:Boolean? = null
var duration:String? = null
var preview:String? = null
var calories:Int? = null
var instructor:String? = null
var thumbnail:String? = null
var difficulty:String? = null
var tags:ArrayList<Tag> = ArrayList<Tag>()
var subtitles:String? = null
var screenshots:ArrayList<ScreenshotItem> = ArrayList<ScreenshotItem>()
var drmEncrypted:Boolean? = null
}
open class Tag
{
var id:String? = null
var title:String? = null
}
open class ScreenshotItem
{
var largeFilepathS3:String? = null
var thumbFilepathS3:String? = null
var order:BigDecimal? = null
var description:String? = null
}
Kotlin DigitalFitnessContentRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /digitalFitnessResources HTTP/1.1 Host: resourcelibrary.api.ashcompanies.com Accept: application/xml
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <DigitalFitnessResourcesResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ASH.ResourceLibrary.Interfaces.ServiceModels"> <DigitalFitnessResources xmlns:d2p1="http://schemas.datacontract.org/2004/07/ASH.ResourceLibrary.Interfaces.Models"> <d2p1:TopicLite> <d2p1:Id>String</d2p1:Id> <d2p1:IsVisible>String</d2p1:IsVisible> <d2p1:ResourceCount>0</d2p1:ResourceCount> <d2p1:ResourceItems i:nil="true" /> <d2p1:SubtopicItems i:nil="true" /> <d2p1:Title>String</d2p1:Title> </d2p1:TopicLite> </DigitalFitnessResources> </DigitalFitnessResourcesResponse>