Newer
Older
CosmosClient / app / src / main / java / com / example / cosmosclient / entities / Feature.java
k-morimoto on 6 Nov 2019 801 bytes 区間地域情報取得の通信が可能に
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;
    }
}