Newer
Older
CosmosClient / app / src / main / java / com / example / cosmosclient / entities / Feature.java
k-morimoto on 7 Nov 2019 800 bytes Featureを最新版に
package com.example.cosmosclient.entities;

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

    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;
    }
}