Newer
Older
CosmosClient / app / src / main / java / com / example / cosmosclient / entities / Feature.java
h-fuji on 5 Nov 2019 860 bytes POST→GETに
package com.example.cosmosclient.entities;

public class Feature {
    private String genre;
    private int code;
    private CosmosLocation location = new CosmosLocation();
    private double latitude;
    private double longitude;

    public void setLatitude(double latitude) {
        location.setLatitude(latitude);
    }
    public void setLongitude(double longitude) {
        location.setLongitude(longitude);
    }

    public String getGenre() {
        return genre;
    }
    public void setGenre(String genre) {
        this.genre = genre;
    }

    public void setCode(int code){
        this.code = code;
    }
    public int getCode(){
        return this.code;
    }

    public void setLocation(CosmosLocation location){
        this.location = location;
    }
    public CosmosLocation getLocation(){
        return this.location;
    }
}