Browse Source

add poc2.0需求

lihao1 3 years ago
parent
commit
e635be435f

+ 12 - 0
demo/src/main/java/com/sybotan/android/demo/activities/PocActivity.kt

@@ -16,6 +16,7 @@ import com.sybotan.android.demo.R
 import com.sybotan.android.demo.activities.poc.SceneActivity
 import com.sybotan.android.demo.activities.poc.SpaceActivity
 import com.sybotan.android.demo.tools.ToastUtils
+import com.sybotan.android.demo.tools.LocalDataOperation
 import org.jetbrains.anko.startActivity
 import org.kodein.di.DI
 import org.kodein.di.DIAware
@@ -40,6 +41,7 @@ class PocActivity : AppCompatActivity(), DIAware {
         super.onCreate(savedInstanceState)
         setContentView(R.layout.activity_poc)
         checkStoragePermission()
+        LocalDataOperation.getInstance().offlineSendRequest.uploadImageNew(this)
         downloadBtn = findViewById(R.id.downloadBtn)
         uploadBtn = findViewById(R.id.uploadBtn)
         downloadBtn.setOnClickListener {
@@ -79,6 +81,16 @@ class PocActivity : AppCompatActivity(), DIAware {
                 groupCode = "BR"
             )
         )
+
+//        mVm.requestBuilding(
+//            AdmRequest(
+//                userId = "bdtp",
+//                projectId = "Pj0002220011",
+//                groupCode = "BR",
+//                buildingId = "Bd0002220002bcaa181bd406439c9ecaddac13b0d543"
+//            )
+//        )
+
     }
 
     private fun checkStoragePermission() {