|
| 1 | +package com.expediagroup.graphql.generated.unionsameselections |
| 2 | + |
| 3 | +import com.expediagroup.graphql.client.Generated |
| 4 | +import com.fasterxml.jackson.`annotation`.JsonSubTypes |
| 5 | +import com.fasterxml.jackson.`annotation`.JsonTypeInfo |
| 6 | +import com.fasterxml.jackson.`annotation`.JsonTypeInfo.As.PROPERTY |
| 7 | +import com.fasterxml.jackson.`annotation`.JsonTypeInfo.Id.NAME |
| 8 | +import kotlin.String |
| 9 | + |
| 10 | +@Generated |
| 11 | +@JsonTypeInfo( |
| 12 | + use = JsonTypeInfo.Id.NAME, |
| 13 | + include = JsonTypeInfo.As.PROPERTY, |
| 14 | + property = "__typename", |
| 15 | + defaultImpl = DefaultProductRatingSupportingMessageImplementation::class, |
| 16 | +) |
| 17 | +@JsonSubTypes(value = [com.fasterxml.jackson.annotation.JsonSubTypes.Type(value = |
| 18 | + ProductRatingLink::class, |
| 19 | + name="ProductRatingLink"),com.fasterxml.jackson.annotation.JsonSubTypes.Type(value = |
| 20 | + EGDSPlainText::class, name="EGDSPlainText")]) |
| 21 | +public interface ProductRatingSupportingMessage |
| 22 | + |
| 23 | +@Generated |
| 24 | +public data class ProductRatingLink( |
| 25 | + public val link: EGDSStandardLink, |
| 26 | + public val action: EGDSProductRatingShowTextAction, |
| 27 | +) : ProductRatingSupportingMessage |
| 28 | + |
| 29 | +@Generated |
| 30 | +public data class EGDSPlainText( |
| 31 | + public val text: String, |
| 32 | +) : ProductRatingSupportingMessage, ProductSupportingMessage |
| 33 | + |
| 34 | +/** |
| 35 | + * Fallback ProductRatingSupportingMessage implementation that will be used when unknown/unhandled |
| 36 | + * type is encountered. |
| 37 | + */ |
| 38 | +@Generated |
| 39 | +public class DefaultProductRatingSupportingMessageImplementation() : ProductRatingSupportingMessage |
0 commit comments