NemophilaにcurrentShop,currentLongitude,currentLatitudeの追加
1 parent 39e55d0 commit 05334cb215312c7832b9c0fc2d3c49351a8285f9
g-shimokawa authored on 15 Jun 2023
Showing 2 changed files
View
9
.idea/misc.xml
<entry key="..\:/Users/Student/StudioProjects/NemophilaClient/app/src/main/res/drawable/ic_launcher_background.xml" value="0.1425" />
<entry key="..\:/Users/Student/StudioProjects/NemophilaClient/app/src/main/res/layout/activity_gps.xml" value="0.13095238095238096" />
<entry key="..\:/Users/Student/StudioProjects/NemophilaClient/app/src/main/res/layout/activity_login.xml" value="0.13221884498480244" />
<entry key="..\:/Users/Student/StudioProjects/NemophilaClient/app/src/main/res/layout/activity_main.xml" value="0.25" />
<entry key="..\:/Users/Student/StudioProjects/NemophilaClient/app/src/main/res/layout/activity_test.xml" value="0.21105072463768115" />
<entry key="..\:/Users/Student/StudioProjects/NemophilaClient/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml" value="0.226" />
<entry key="..\:/Users/student/StudioProjects/NemophilaClient/app/src/main/res/layout/activity_change_pw.xml" value="0.22" />
<entry key="..\:/Users/student/StudioProjects/NemophilaClient/app/src/main/res/layout/activity_login.xml" value="0.5" />
<entry key="..\:/Users/Student/StudioProjects/NemophilaClient/app/src/main/res/drawable-v24/ic_launcher_foreground.xml" value="0.1425" />
<entry key="..\:/Users/Student/StudioProjects/NemophilaClient/app/src/main/res/drawable/ic_baseline_my_location_24.xml" value="0.1" />
<entry key="..\:/Users/Student/StudioProjects/NemophilaClient/app/src/main/res/drawable/ic_launcher_background.xml" value="0.1425" />
<entry key="..\:/Users/Student/StudioProjects/NemophilaClient/app/src/main/res/layout/activity_gps.xml" value="0.13095238095238096" />
<entry key="..\:/Users/Student/StudioProjects/NemophilaClient/app/src/main/res/layout/activity_login.xml" value="0.13221884498480244" />
<entry key="..\:/Users/Student/StudioProjects/NemophilaClient/app/src/main/res/layout/activity_main.xml" value="0.25" />
<entry key="..\:/Users/Student/StudioProjects/NemophilaClient/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml" value="0.226" />
<entry key="..\:/Users/student/StudioProjects/NemophilaClient/app/src/main/res/layout/activity_main.xml" value="0.228125" />
<entry key="..\:/Users/student/StudioProjects/NemophilaClient/app/src/main/res/layout/activity_maps.xml" value="0.17074275362318841" />
<entry key="..\:/Users/student/StudioProjects/NemophilaClient/app/src/main/res/layout/activity_mypage.xml" value="0.22135416666666666" />
<entry key="..\:/Users/student/StudioProjects/NemophilaClient/app/src/main/res/layout/activity_post.xml" value="0.33" />
View
23
app/src/main/java/com/example/nemophila/Nemophila.java
package com.example.nemophila;
 
import android.app.Application;
 
import com.example.nemophila.entities.Shop;
 
public class Nemophila extends Application {
private String uid;
private String token;
private Shop currentShop;
private double currentLongitude;
private double currentLatitude;
 
//Getter
public String getUid() {
return uid;
}
public String getToken() {
return token;
}
public Shop getCurrentShop() {
return currentShop;
}
public double getCurrentLongitude() {
return currentLongitude;
}
public double getCurrentLatitude() {
return currentLatitude;
}
 
//Setter
public void setUid(String uid) {
}
public void setToken(String token) {
this.token = token;
}
public void setCurrentShop(Shop currentShop) {
this.currentShop = currentShop;
}
public void setCurrentLongitude(double currentLongitude) {
this.currentLongitude = currentLongitude;
}
public void setCurrentLatitude(double currentLatitude) {
this.currentLatitude = currentLatitude;
}
}