All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.wix.restaurants.authentication.model.Request Maven / Gradle / Ivy

There is a newer version: 1.12.0
Show newest version
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() {}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy