From c2eec8064b30c6da6f1baf6dfa5273200b1ccece Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=82=8D=E3=82=80=E3=81=AD=E3=81=93?= Date: Sun, 10 Dec 2023 18:10:30 +0900 Subject: [PATCH] =?UTF-8?q?DeviceMeta=E5=AE=9F=E8=A3=85WIP?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../lacerta/data/impl/DeviceMetaImpl.java | 19 ++++++++++++++++++- .../lacerta/data/module/DeviceMetaModule.java | 4 ++++ .../lacerta/data/repository/DeviceMeta.java | 6 ++++-- 3 files changed, 26 insertions(+), 3 deletions(-) create mode 100644 data/src/main/java/com/example/lacerta/data/module/DeviceMetaModule.java diff --git a/data/src/main/java/com/example/lacerta/data/impl/DeviceMetaImpl.java b/data/src/main/java/com/example/lacerta/data/impl/DeviceMetaImpl.java index ae7798f3..59c56256 100644 --- a/data/src/main/java/com/example/lacerta/data/impl/DeviceMetaImpl.java +++ b/data/src/main/java/com/example/lacerta/data/impl/DeviceMetaImpl.java @@ -1,4 +1,21 @@ package com.example.lacerta.data.impl; -public class DeviceMetaImpl { +import com.example.lacerta.data.repository.DeviceMeta; + +import javax.inject.Inject; + +public class DeviceMetaImpl implements DeviceMeta{ + + @Inject + public DeviceMetaImpl() { + } + + public String getDeviceId() { + return "device_id"; // DEBUG + } + + public String getDeviceApiLevel() { + return "device_api_level"; // DEBUG + } + } diff --git a/data/src/main/java/com/example/lacerta/data/module/DeviceMetaModule.java b/data/src/main/java/com/example/lacerta/data/module/DeviceMetaModule.java new file mode 100644 index 00000000..102950cf --- /dev/null +++ b/data/src/main/java/com/example/lacerta/data/module/DeviceMetaModule.java @@ -0,0 +1,4 @@ +package com.example.lacerta.data.module; + +public class DeviceMetaModule { +} diff --git a/data/src/main/java/com/example/lacerta/data/repository/DeviceMeta.java b/data/src/main/java/com/example/lacerta/data/repository/DeviceMeta.java index 988f22e0..552d1b77 100644 --- a/data/src/main/java/com/example/lacerta/data/repository/DeviceMeta.java +++ b/data/src/main/java/com/example/lacerta/data/repository/DeviceMeta.java @@ -1,4 +1,6 @@ package com.example.lacerta.data.repository; -public class DeviceMeta { -} +public interface DeviceMeta { + String getDeviceId(); + String getDeviceApiLevel(); +} \ No newline at end of file