td class="lines-num lines-num-old"> 7
+    public static final String SESSION_START_URL = BASE_URL+"session_start";
8
+
9
+    public static final String SESSION_END_URL = BASE_URL+"session_end";
10
+
11
+    public static final String FETCH_THUMBNAIL_URL = BASE_URL+"fetch_thumbnail";
12
+
13
+    public static final String FETCH_ORIGIN_URL = BASE_URL+"fetch_origin";
14
+
15
+
16
+}

+ 0 - 18
app/src/main/java/ai/pai/lensman/box/CallbackLifecycle.java

@@ -1,18 +0,0 @@
1
-package ai.pai.lensman.box;
2
-
3
-import ai.pai.lensman.bean.Result;
4
-import retrofit2.Response;
5
-
6
-public interface CallbackLifecycle<T> {
7
-
8
-    boolean onResultOk(Response<T> response, T result);
9
-
10
-    boolean onResultError(Response<T> response, Result.Error error);
11
-
12
-    boolean onCallCancel();
13
-
14
-    boolean onCallException(Throwable t, Result.Error error);
15
-
16
-    void onFinish();
17
-
18
-}

+ 0 - 4
app/src/main/java/ai/pai/lensman/login/LoginActivity.java

@@ -65,8 +65,4 @@ public class LoginActivity extends BaseActivity implements LoginContract.View{
65 65
         finish();
66 66
     }
67 67
 
68
-    @Override
69
-    public void setPresenter(LoginContract.Presenter presenter) {
70
-
71
-    }
72 68
 }

+ 1 - 1
app/src/main/java/ai/pai/lensman/login/LoginContract.java

@@ -5,7 +5,7 @@ import ai.pai.lensman.base.BaseView;
5 5
 
6 6
 public class LoginContract {
7 7
 
8
-    interface View extends BaseView<Presenter>{
8
+    interface View extends BaseView{
9 9
         void showLoginHint(String hint);
10 10
         void showProgressView();
11 11
         void hideProgressView();

+ 0 - 4
app/src/main/java/ai/pai/lensman/session/SessionActivity.java

@@ -121,8 +121,4 @@ public class SessionActivity extends BaseActivity implements SessionContract.Vie
121 121
 
122 122
     }
123 123
 
124
-    @Override
125
-    public void setPresenter(SessionContract.Presenter presenter) {
126
-
127
-    }
128 124
 }

+ 1 - 1
app/src/main/java/ai/pai/lensman/session/SessionContract.java

@@ -9,7 +9,7 @@ import ai.pai.lensman.bean.PhotoBean;
9 9
  */
10 10
 public class SessionContract {
11 11
 
12
-    interface View extends BaseView<Presenter>{
12
+    interface View extends BaseView{
13 13
         void addNewPhoto(PhotoBean bean);
14 14
         void showPhotoRecyclerView();
15 15
         void showEmptyView();

+ 1 - 38
app/src/main/java/ai/pai/lensman/session/SessionInteractor.java

@@ -2,16 +2,11 @@ package ai.pai.lensman.session;
2 2
 
3 3
 import android.content.Context;
4 4
 
5
-import java.util.List;
6 5
 import java.util.Timer;
7 6
 import java.util.TimerTask;
8 7
 
9 8
 import ai.pai.lensman.bean.PhotoBean;
10
-import ai.pai.lensman.box.BoxClient;
11 9
 import ai.pai.lensman.db.Preferences;
12
-import retrofit2.Call;
13
-import retrofit2.Callback;
14
-import retrofit2.Response;
15 10
 
16 11
 /**
17 12
  * Created by chengzhenyu on 2016/7/7.
@@ -40,17 +35,7 @@ public class SessionInteractor {
40 35
     }
41 36
 
42 37
     public void startSession(){
43
-        BoxClient.service.startNewSession(sessionId,lensmanId).enqueue(new Callback<String>() {
44
-            @Override
45
-            public void onResponse(Call<String> call, Response<String> response) {
46
-                listener.onSessionStartSuccess(sessionId);
47
-            }
48 38
 
49
-            @Override
50
-            public void onFailure(Call<String> call, Throwable t) {
51
-                listener.onSessionStartError(sessionId);
52
-            }
53
-        });
54 39
     }
55 40
 
56 41
     public void startCapture() {
@@ -61,19 +46,7 @@ public class SessionInteractor {
61 46
         timer = new Timer();
62 47
         timer.schedule(new TimerTask() {
63 48
             @Override
64
-            public void run() {
65
-                BoxClient.service.fetchSessionThumbnails(sessionId,lensmanId).enqueue(new Callback<List<PhotoBean>>() {
66
-                    @Override
67
-                    public void onResponse(Call<List<PhotoBean>> call, Response<List<PhotoBean>> response) {
68
-
69
-                    }
70
-
71
-                    @Override
72
-                    public void onFailure(Call<List<PhotoBean>> call, Throwable t) {
73
-
74
-                    }
75
-                });
76
-            }
49
+            public void run() {}
77 50
         },1000,1000);
78 51
     }
79 52
 
@@ -82,17 +55,7 @@ public class SessionInteractor {
82 55
             timer.cancel();
83 56
             timer = null;
84 57
         }
85
-        BoxClient.service.endSession(sessionId,lensmanId).enqueue(new Callback<String>() {
86
-            @Override
87
-            public void onResponse(Call<String> call, Response<String> response) {
88
-                listener.onSessionEnd(sessionId);
89
-            }
90
-
91
-            @Override
92
-            public void onFailure(Call<String> call, Throwable t) {
93 58
 
94
-            }
95
-        });
96 59
     }
97 60
 
98 61
 }

+ 0 - 4
app/src/main/java/ai/pai/lensman/upload/UploadActivity.java

@@ -137,8 +137,4 @@ public class UploadActivity extends BaseActivity implements UploadContract.View
137 137
         });
138 138
     }
139 139
 
140
-    @Override
141
-    public void setPresenter(UploadContract.Presenter presenter) {
142
-
143
-    }
144 140
 }

+ 1 - 1
app/src/main/java/ai/pai/lensman/upload/UploadContract.java

@@ -11,7 +11,7 @@ import ai.pai.lensman.bean.SessionBean;
11 11
  */
12 12
 public class UploadContract {
13 13
 
14
-    interface View extends BaseView<Presenter> {
14
+    interface View extends BaseView {
15 15
 
16 16
         void addNewSessionView(SessionBean bean);
17 17
         void showBTDisconnectedView();

kodo - Gogs: Go Git Service

暂无描述

Brightcells: 66a598b30c Makemigrations 8 年之前
..
0001_initial.py e184e7dd5b add api group_create/group_join 11 年之前
0002_groupinfo_session_id.py e184e7dd5b add api group_create/group_join 11 年之前
0003_groupinfo_admin_id.py 7e305483ab add api group_detail/group_lock/group_pass/group_refuse 11 年之前
0004_auto_20151216_2337.py 7467a3e68a add api group_update/group_remove 11 年之前
0005_groupuserinfo_current_id.py f587f0a48f user can just see photo after he joined the group & zh_Hans replace zh_CN in settings.py 11 年之前
0006_groupuserinfo_avatar.py 4afdb94e20 add avatar for GroupUserInfo 11 年之前
0007_auto_20160112_2040.py df1df69fe3 add api upgrade/splash 10 年之前
0008_photocommentinfo.py c72d89f6e5 add api comment_submit_api/comment_list_api/thumbup_submit_api/thumbup_list_api/thumbup_cancel_api 10 年之前
0009_photothumbupinfo.py c72d89f6e5 add api comment_submit_api/comment_list_api/thumbup_submit_api/thumbup_list_api/thumbup_cancel_api 10 年之前
0010_auto_20160120_1830.py a121b75ff2 add db_index=True for status field 10 年之前
0011_auto_20160302_2048.py da2a81fff1 add api pai2_home 10 年之前
0012_groupinfo_group_avatar.py da2a81fff1 add api pai2_home 10 年之前
0013_groupinfo_group_default_avatar.py f6a88c632b add group_default_avatar field for GroupInfo 10 年之前
0014_auto_20160308_2347.py ca727b0362 store/return w/h for photo 10 年之前
0015_groupphotoinfo_avatar.py 88049b12db store/return more field for photo 10 年之前
0016_auto_20160321_1535.py 537bd9bd41 add api group_quit_api 10 年之前
0017_groupphotoinfo_photo_from.py dbea356558 add photo_from field for GroupPhotoInfo and return photo_from for some api 10 年之前
0018_auto_20160417_2246.py d64b3c216b add and return photo_thumbnail2 relative 10 年之前
0019_auto_20160422_1322.py 102152ca4a add api lensman_photo_bought & modify api wx_order_create_api and adjust return field 10 年之前
0020_groupphotoinfo_session_id.py 102152ca4a add api lensman_photo_bought & modify api wx_order_create_api and adjust return field 10 年之前
0021_photocommentinfo_to_uid.py fa36c26ce4 extend param to_uid for comment_submit_api 10 年之前
0022_auto_20160901_1439.py 6199c8f7ad add api lensman_origin_wanted_api/lensman_origin_photo_upload_api 10 年之前
0023_groupinfo_group_initio.py e06dc10006 Make join session group by scan group qrcode fetch group photos initio 10 年之前
0024_auto_20161214_1329.py f724e0f9c0 Add tour guide apis 10 年之前
0025_auto_20161214_1659.py ad69866b26 Add tour guide's name and phone in GroupInfo 10 年之前
0026_auto_20161216_1301.py 034acddb68 Add total_persons for GroupInfo 10 年之前
0027_groupuserinfo_authority.py 88f0697a89 Add authority field for GroupUserInfo 10 年之前
0028_auto_20161220_1815.py 272f181c50 Makemigrations 10 年之前
0029_auto_20161224_1616.py 564ff620d7 Add unique_together = (('group_id', 'user_id'),) for GroupUserInfo 10 年之前
0030_groupinfo_gather_location.py 90d377ee6e Add gather location 10 年之前
0031_groupphotoinfo_photo_md5.py d824fbd441 Add photo_md5 for GroupPhotoInfo 9 年之前
0032_groupinfo_gather_screenshot.py e8cd9652b7 Add gather_screenshot for api tg_group_gather_start_api 9 年之前
0033_groupphotoinfo_photo_id.py 3c6e34823b Add photo_id for GroupPhotoInfo replaced pk 9 年之前
0034_auto_20170411_1156.py 14d5d63e3b Add nomark/origin price for GroupPhotoInfo 9 年之前
0035_groupuserinfo_admin_status.py 9e4ac4fd3b Add admin_status for GroupUserInfo 9 年之前
0036_groupphotoinfo_has_watermark.py 3b92e37156 Add field has_watermark for GroupPhotoInfo 9 年之前
0037_auto_20170821_1600.py bf678fc740 Add unique_together = (('session_id', 'group_from'),) 9 年之前
0038_auto_20170821_1608.py 7060597dd6 Add unique_together = (('group_id', 'user_id', 'photo_md5'),) for GroupPhotoInfo 9 年之前
0039_auto_20170821_1613.py 9f4c919c29 Add unique_together = (('photo_id', 'user_id'),) for PhotoThumbUpInfo 9 年之前
0040_auto_20170825_1342.py e5ad69259f Add unique_together = (('group_id', 'session_id', 'user_id', 'photo_id', 'lensman_photo_id'),) for GroupPhotoOrderInfo 9 年之前
0041_auto_20170825_1342.py e5ad69259f Add unique_together = (('group_id', 'session_id', 'user_id', 'photo_id', 'lensman_photo_id'),) for GroupPhotoOrderInfo 9 年之前
0042_groupphotoinfo_lensman_type.py a6195fa70d Add outtake lensman 9 年之前
0043_auto_20180101_2220.py 9bb56c50cc Makemigrations 8 年之前
0044_auto_20180103_0446.py a7cbbf15a7 Update max_length for CharField 8 年之前
0045_auto_20180930_1159.py 66a598b30c Makemigrations 8 年之前
__init__.py e184e7dd5b add api group_create/group_join 11 年之前