Browse Source

Social Wall Api call blocked

master
Swift-Android 6 years ago
parent
commit
cd31219677
  1. 92
      app/src/main/java/com/gmeremit/online/gmeremittance_native/socials/presenter/SocialPresenter.java

92
app/src/main/java/com/gmeremit/online/gmeremittance_native/socials/presenter/SocialPresenter.java

@ -73,7 +73,7 @@ public class SocialPresenter implements SocialContract.SocialPresenter, SocialCo
*/
@Override
public void getPrivateFeeds(String userId, String after) {
socialModel.getPrivateFeeds(this, userId, true, after);
// socialModel.getPrivateFeeds(this, userId, true, after);
}
/***
@ -85,7 +85,7 @@ public class SocialPresenter implements SocialContract.SocialPresenter, SocialCo
*/
@Override
public void getPublicFeeds(String userId, String after) {
socialModel.getPrivateFeeds(this, userId, false, after);
// socialModel.getPrivateFeeds(this, userId, false, after);
}
/**
@ -97,7 +97,7 @@ public class SocialPresenter implements SocialContract.SocialPresenter, SocialCo
*/
@Override
public void uploadImage(String userId, Uri file) {
socialModel.uploadImage(this, userId, file);
// socialModel.uploadImage(this, userId, file);
}
/***
@ -108,7 +108,7 @@ public class SocialPresenter implements SocialContract.SocialPresenter, SocialCo
@Override
public void createNewFeed(NewFeedRequest newFeedRequest) {
socialModel.createNewFeed(this, newFeedRequest);
// socialModel.createNewFeed(this, newFeedRequest);
}
/***
@ -126,7 +126,7 @@ public class SocialPresenter implements SocialContract.SocialPresenter, SocialCo
*/
@Override
public void updateFeed(NewFeedRequest newFeedRequest, String feedId) {
socialModel.updateFeed(this, newFeedRequest, feedId);
// socialModel.updateFeed(this, newFeedRequest, feedId);
}
/***
@ -138,40 +138,40 @@ public class SocialPresenter implements SocialContract.SocialPresenter, SocialCo
*/
@Override
public void deleteFeed(String feedId, String userId) {
socialModel.deleteFeed(this, feedId, userId);
// socialModel.deleteFeed(this, feedId, userId);
}
@Override
public void onNoInternetConnection(String page) {
switch (page) {
case "NEWFEED":
newPostView.showGeneralDialog("", "", INTERNET);
break;
case PRIVATEFEED:
privateView.showGeneralDialog("", "", INTERNET);
break;
case Constants.PUBLICFEED:
if (publicView != null) {
publicView.showGeneralDialog("", "", INTERNET);
} else {
privateView.showGeneralDialog("", "", INTERNET);
}
break;
case "ALLLIKES":
likesView.showGeneralDialog("", "", INTERNET);
break;
case COMMENT:
commentsView.showSingleDialog("", "", INTERNET);
break;
case "UPDATECOMMENT":
commentsEditView.showGeneralDialog("", "", INTERNET);
break;
}
// switch (page) {
// case "NEWFEED":
// newPostView.showGeneralDialog("", "", INTERNET);
// break;
//
// case PRIVATEFEED:
// privateView.showGeneralDialog("", "", INTERNET);
// break;
//
// case Constants.PUBLICFEED:
// if (publicView != null) {
// publicView.showGeneralDialog("", "", INTERNET);
// } else {
// privateView.showGeneralDialog("", "", INTERNET);
// }
// break;
//
// case "ALLLIKES":
// likesView.showGeneralDialog("", "", INTERNET);
// break;
//
// case COMMENT:
// commentsView.showSingleDialog("", "", INTERNET);
// break;
//
// case "UPDATECOMMENT":
// commentsEditView.showGeneralDialog("", "", INTERNET);
// break;
// }
}
/***
@ -186,7 +186,7 @@ public class SocialPresenter implements SocialContract.SocialPresenter, SocialCo
*/
@Override
public void updateAccessType(NewFeedRequest newFeedRequest, String feedId, String wall) {
socialModel.updateAccessType(this, newFeedRequest, feedId, wall);
// socialModel.updateAccessType(this, newFeedRequest, feedId, wall);
}
/***
@ -198,7 +198,8 @@ public class SocialPresenter implements SocialContract.SocialPresenter, SocialCo
*/
@Override
public void likeFeed(String feedId, String userId) {
socialModel.likeFeed(feedId, userId);
// socialModel.likeFeed(feedId, userId);
}
/***
@ -210,7 +211,7 @@ public class SocialPresenter implements SocialContract.SocialPresenter, SocialCo
*/
@Override
public void dislikeFeed(String feedId, String userId) {
socialModel.dislikeFeed(feedId, userId);
// socialModel.dislikeFeed(feedId, userId);
}
/***
@ -220,7 +221,8 @@ public class SocialPresenter implements SocialContract.SocialPresenter, SocialCo
*/
@Override
public void getAllLikes(String feedId) {
socialModel.getAllLikes(this, feedId);
// socialModel.getAllLikes(this, feedId);
}
/***
@ -232,7 +234,7 @@ public class SocialPresenter implements SocialContract.SocialPresenter, SocialCo
*/
@Override
public void getAllComments(String feedId, String after) {
socialModel.getAllComments(this, feedId, after);
// socialModel.getAllComments(this, feedId, after);
}
@ -247,7 +249,7 @@ public class SocialPresenter implements SocialContract.SocialPresenter, SocialCo
*/
@Override
public void updateComment(CommentUpdateRequest commentUpdateRequest, String feedId, String commentId) {
socialModel.updateComment(this, commentUpdateRequest, feedId, commentId);
// socialModel.updateComment(this, commentUpdateRequest, feedId, commentId);
}
/***
@ -259,7 +261,7 @@ public class SocialPresenter implements SocialContract.SocialPresenter, SocialCo
*/
@Override
public void addComment(CommentUpdateRequest commentUpdateRequest, String feedId) {
socialModel.addComment(this, commentUpdateRequest, feedId);
// socialModel.addComment(this, commentUpdateRequest, feedId);
}
/***
@ -273,7 +275,7 @@ public class SocialPresenter implements SocialContract.SocialPresenter, SocialCo
*/
@Override
public void deleteComment(String feedId, String commentId, String userId) {
socialModel.deleteComment(this, feedId, commentId, userId);
// socialModel.deleteComment(this, feedId, commentId, userId);
}
/**
@ -285,7 +287,7 @@ public class SocialPresenter implements SocialContract.SocialPresenter, SocialCo
*/
@Override
public void reportFeed(String feedId, ReportRequest reportRequest) {
socialModel.reportFeed(this, feedId, reportRequest);
// socialModel.reportFeed(this, feedId, reportRequest);
}
/***
@ -297,7 +299,7 @@ public class SocialPresenter implements SocialContract.SocialPresenter, SocialCo
*/
@Override
public void getSingleFeed(String feedId, String userId) {
socialModel.getSingleFeed(this, feedId, userId);
// socialModel.getSingleFeed(this, feedId, userId);
}
/***

Loading…
Cancel
Save