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

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

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

import com.wordnik.swagger.model.AuthorizationScope;

/**
* Created by chekong on 10/11/14.
*/
public class JAuthorizationScope implements CanBeSwaggerModel<AuthorizationScope> {
    private String scope;
    private String description;

    public void setScope(String scope) {
        this.scope = scope;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getScope() {
        return scope;
    }

    public String getDescription() {
        return description;
    }

    @Override
    public AuthorizationScope toSwaggerModel() {
        return new AuthorizationScope(scope, description);
    }
}
TOP

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

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.