com.wix.restaurants.authentication.model.Request Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of wix-restaurants-authentication-api Show documentation
Show all versions of wix-restaurants-authentication-api Show documentation
Wix Restaurants Authentication API
package com.wix.restaurants.authentication.model;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonSubTypes;
import com.fasterxml.jackson.annotation.JsonSubTypes.Type;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import java.io.Serializable;
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonTypeInfo(
use = JsonTypeInfo.Id.NAME,
include = JsonTypeInfo.As.PROPERTY,
property = "type")
@JsonSubTypes({
@Type(value = AuthenticateRequest.class, name = AuthenticateRequest.TYPE),
@Type(value = FacebookLoginRequest.class, name = FacebookLoginRequest.TYPE),
@Type(value = WixLoginInstanceRequest.class, name = WixLoginInstanceRequest.TYPE),
@Type(value = WixInstanceLoginInstanceRequest.class, name = WixInstanceLoginInstanceRequest.TYPE),
@Type(value = OpenrestLoginRequest.class, name = OpenrestLoginRequest.TYPE),
@Type(value = GoogleLoginRequest.class, name = GoogleLoginRequest.TYPE),
@Type(value = ImpersonateRequest.class, name = ImpersonateRequest.TYPE)
})
public abstract class Request implements Serializable {
private static final long serialVersionUID = 1L;
/** Default constructor for JSON deserialization. */
public Request() {}
}