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