|
|
@@ -0,0 +1,41 @@
|
|
|
+package com.usai.util;
|
|
|
+
|
|
|
+import org.json.JSONObject;
|
|
|
+
|
|
|
+/**
|
|
|
+ * Created by ray on 13/06/2017.
|
|
|
+ */
|
|
|
+
|
|
|
+public class RAUploadOperation {
|
|
|
+
|
|
|
+ private JSONObject _taskinfo;
|
|
|
+ private int _maxRetry;
|
|
|
+
|
|
|
+
|
|
|
+ public interface updateUIListener {
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ public updateUIListener m_updateUIListener;
|
|
|
+
|
|
|
+ public enum TaskStatus {
|
|
|
+ TaskStatusStop,
|
|
|
+ TaskStatusStart,
|
|
|
+ TaskStatusError,
|
|
|
+ TaskStatusWait,
|
|
|
+ TaskStatusFinish
|
|
|
+ }
|
|
|
+
|
|
|
+ public RAUploadOperation(JSONObject taskinfo, int maxRetry) {
|
|
|
+ _taskinfo = taskinfo;
|
|
|
+ _maxRetry = maxRetry;
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ public void setOnClickListener( updateUIListener l) {
|
|
|
+
|
|
|
+ m_updateUIListener = l;
|
|
|
+ }
|
|
|
+}
|