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

com.minlessika.membership.integration.JsProfile Maven / Gradle / Ivy

Go to download

It's a library to help developers to integration membership services to another project.

There is a newer version: 0.3.1
Show newest version
package com.minlessika.membership.integration;

import com.minlessika.http.client.RestClient;
import java.util.UUID;
import javax.json.JsonObject;

public final class JsProfile implements Profile {

    private final JsonObject json;

    private final RestClient client;

    public JsProfile(final RestClient client, final JsonObject json) {
        this.client = client;
        this.json = json;
    }

    @Override
    public UUID uid() {
        return UUID.fromString(this.json.getString("id"));
    }

    @Override
    public String name() {
        return this.json.getString("name");
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy