Package com.github.kongchen.swagger.docgen.remote.model

Source Code of com.github.kongchen.swagger.docgen.remote.model.JImplicitGrant

package com.github.kongchen.swagger.docgen.remote.model;

import com.wordnik.swagger.model.ImplicitGrant;

/**
* Created by chekong on 10/11/14.
*/
public class JImplicitGrant implements CanBeSwaggerModel<ImplicitGrant> {
    private JLoginEndpoint loginEndpoint;
    private String tokenName;

    public JLoginEndpoint getLoginEndpoint() {
        return loginEndpoint;
    }

    public void setLoginEndpoint(JLoginEndpoint loginEndpoint) {
        this.loginEndpoint = loginEndpoint;
    }

    public String getTokenName() {
        return tokenName;
    }

    public void setTokenName(String tokenName) {
        this.tokenName = tokenName;
    }

    @Override
    public ImplicitGrant toSwaggerModel() {
        return new ImplicitGrant(loginEndpoint.toSwaggerModel(), tokenName);
    }
}
TOP

Related Classes of com.github.kongchen.swagger.docgen.remote.model.JImplicitGrant

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.