Newer
Older
CosmosServer / src / main / java / com / example / cosmos_serversb / jsons / GidUriJson.java
package com.example.cosmos_serversb.jsons;

import com.example.cosmos_serversb.entities.Group;

public class GidUriJson {
    private String name;
    private String gId;
    private String uri;
    private Long requestHash;

    public GidUriJson(){

    }

    public GidUriJson(Group group){
        setName(group.getName());
        setgId(group.getgId());
        setUri(group.getUri());
        setRequestHash(group.getRequestHash());
    }

    private void setName(String name) { this.name = name; }

    public String getName() { return name; }

    private void setgId(String gId) {
        this.gId = gId;
    }

    public String getgId() {
        return gId;
    }

    private void setUri(String uri){
        this.uri = uri;
    }

    public String getUri(){
        return uri;
    }

    private void setRequestHash(Long requestHash) {
        this.requestHash = requestHash;
    }

    public long getRequestHash() {
        return requestHash;
    }
}