Preyea Regmi
5 years ago
17 changed files with 293 additions and 48 deletions
-
BIN.idea/caches/build_file_checksums.ser
-
7app/src/main/AndroidManifest.xml
-
1app/src/main/java/com/gmeremit/online/gmeremittance_native/loginV2/presenter/LoginV2Presenter.java
-
14app/src/main/java/com/gmeremit/online/gmeremittance_native/rewardV2/gateway/rewardlisting/RewardListingV2Gateway.java
-
13app/src/main/java/com/gmeremit/online/gmeremittance_native/rewardV2/gateway/rewardredeem/RewardRedeemV2Gateway.java
-
13app/src/main/java/com/gmeremit/online/gmeremittance_native/rewardV2/presenter/rewardlisting/RewardListingV2InteractorInterface.java
-
15app/src/main/java/com/gmeremit/online/gmeremittance_native/rewardV2/presenter/rewardlisting/RewardListingV2Presenter.java
-
12app/src/main/java/com/gmeremit/online/gmeremittance_native/rewardV2/presenter/rewardlisting/RewardListingV2PresenterInterface.java
-
11app/src/main/java/com/gmeremit/online/gmeremittance_native/rewardV2/presenter/rewardredeem/RewardRedeemV2InteractorInterface.java
-
15app/src/main/java/com/gmeremit/online/gmeremittance_native/rewardV2/presenter/rewardredeem/RewardRedeemV2Presenter.java
-
12app/src/main/java/com/gmeremit/online/gmeremittance_native/rewardV2/presenter/rewardredeem/RewardRedeemV2PresenterInterface.java
-
39app/src/main/java/com/gmeremit/online/gmeremittance_native/rewardV2/view/rewardlisting/RewardListingV2Activity.java
-
34app/src/main/java/com/gmeremit/online/gmeremittance_native/rewardV2/view/rewardredeem/RewardRedeemV2Activity.java
-
6app/src/main/java/com/gmeremit/online/gmeremittance_native/splash_screen/presenter/SplashScreenPresenter.java
-
45app/src/main/java/com/gmeremit/online/gmeremittance_native/splash_screen/view/SplashScreen.java
-
95app/src/main/res/layout/activity_reward_listing_v2.xml
-
9app/src/main/res/layout/activity_reward_redeem_v2.xml
@ -0,0 +1,14 @@ |
|||
package com.gmeremit.online.gmeremittance_native.rewardV2.gateway.rewardlisting; |
|||
|
|||
import com.gmeremit.online.gmeremittance_native.base.PrivilegedGateway; |
|||
import com.gmeremit.online.gmeremittance_native.rewardV2.presenter.rewardlisting.RewardListingV2InteractorInterface; |
|||
|
|||
public class RewardListingV2Gateway extends PrivilegedGateway implements RewardListingV2InteractorInterface.RewardListingV2GatewayInterface { |
|||
|
|||
|
|||
private final RewardListingV2InteractorInterface interactor; |
|||
|
|||
public RewardListingV2Gateway(RewardListingV2InteractorInterface interactor) { |
|||
this.interactor=interactor; |
|||
} |
|||
} |
@ -0,0 +1,13 @@ |
|||
package com.gmeremit.online.gmeremittance_native.rewardV2.gateway.rewardredeem; |
|||
|
|||
import com.gmeremit.online.gmeremittance_native.base.PrivilegedGateway; |
|||
import com.gmeremit.online.gmeremittance_native.rewardV2.presenter.rewardredeem.RewardRedeemV2InteractorInterface; |
|||
|
|||
public class RewardRedeemV2Gateway extends PrivilegedGateway implements RewardRedeemV2InteractorInterface.RewardRedeemV2GatewayInterface { |
|||
|
|||
RewardRedeemV2InteractorInterface interactor; |
|||
|
|||
public RewardRedeemV2Gateway(RewardRedeemV2InteractorInterface interactor) { |
|||
this.interactor = interactor; |
|||
} |
|||
} |
@ -0,0 +1,13 @@ |
|||
package com.gmeremit.online.gmeremittance_native.rewardV2.presenter.rewardlisting; |
|||
|
|||
import com.gmeremit.online.gmeremittance_native.base.BaseInteractorInterface; |
|||
import com.gmeremit.online.gmeremittance_native.base.PrivilegedGatewayInterface; |
|||
|
|||
public interface RewardListingV2InteractorInterface extends BaseInteractorInterface { |
|||
|
|||
|
|||
interface RewardListingV2GatewayInterface extends PrivilegedGatewayInterface |
|||
{ |
|||
|
|||
} |
|||
} |
@ -0,0 +1,15 @@ |
|||
package com.gmeremit.online.gmeremittance_native.rewardV2.presenter.rewardlisting; |
|||
|
|||
import com.gmeremit.online.gmeremittance_native.base.BasePresenter; |
|||
import com.gmeremit.online.gmeremittance_native.rewardV2.gateway.rewardlisting.RewardListingV2Gateway; |
|||
|
|||
public class RewardListingV2Presenter extends BasePresenter implements RewardListingV2PresenterInterface,RewardListingV2InteractorInterface { |
|||
|
|||
RewardListingV2PresenterInterface.RewardListingV2ContractInterface view; |
|||
RewardListingV2InteractorInterface.RewardListingV2GatewayInterface gateway; |
|||
|
|||
public RewardListingV2Presenter(RewardListingV2PresenterInterface.RewardListingV2ContractInterface view) { |
|||
this.view = view; |
|||
this.gateway=new RewardListingV2Gateway(this); |
|||
} |
|||
} |
@ -0,0 +1,12 @@ |
|||
package com.gmeremit.online.gmeremittance_native.rewardV2.presenter.rewardlisting; |
|||
|
|||
import com.gmeremit.online.gmeremittance_native.base.BaseContractInterface; |
|||
import com.gmeremit.online.gmeremittance_native.base.BasePresenterInterface; |
|||
|
|||
public interface RewardListingV2PresenterInterface extends BasePresenterInterface { |
|||
|
|||
interface RewardListingV2ContractInterface extends BaseContractInterface |
|||
{ |
|||
|
|||
} |
|||
} |
@ -0,0 +1,11 @@ |
|||
package com.gmeremit.online.gmeremittance_native.rewardV2.presenter.rewardredeem; |
|||
|
|||
import com.gmeremit.online.gmeremittance_native.base.BaseInteractorInterface; |
|||
import com.gmeremit.online.gmeremittance_native.base.PrivilegedGatewayInterface; |
|||
|
|||
public interface RewardRedeemV2InteractorInterface extends BaseInteractorInterface { |
|||
|
|||
interface RewardRedeemV2GatewayInterface extends PrivilegedGatewayInterface { |
|||
|
|||
} |
|||
} |
@ -0,0 +1,15 @@ |
|||
package com.gmeremit.online.gmeremittance_native.rewardV2.presenter.rewardredeem; |
|||
|
|||
import com.gmeremit.online.gmeremittance_native.base.BasePresenter; |
|||
import com.gmeremit.online.gmeremittance_native.rewardV2.gateway.rewardredeem.RewardRedeemV2Gateway; |
|||
|
|||
public class RewardRedeemV2Presenter extends BasePresenter implements RewardRedeemV2PresenterInterface,RewardRedeemV2InteractorInterface { |
|||
|
|||
RewardRedeemV2PresenterInterface.RewardRedeemV2ContractInterface view; |
|||
RewardRedeemV2InteractorInterface.RewardRedeemV2GatewayInterface gateway; |
|||
|
|||
public RewardRedeemV2Presenter(RewardRedeemV2PresenterInterface.RewardRedeemV2ContractInterface view) { |
|||
this.view = view; |
|||
this.gateway=new RewardRedeemV2Gateway(this); |
|||
} |
|||
} |
@ -0,0 +1,12 @@ |
|||
package com.gmeremit.online.gmeremittance_native.rewardV2.presenter.rewardredeem; |
|||
|
|||
import com.gmeremit.online.gmeremittance_native.base.BaseContractInterface; |
|||
import com.gmeremit.online.gmeremittance_native.base.BasePresenterInterface; |
|||
|
|||
public interface RewardRedeemV2PresenterInterface extends BasePresenterInterface { |
|||
|
|||
interface RewardRedeemV2ContractInterface extends BaseContractInterface |
|||
{ |
|||
|
|||
} |
|||
} |
@ -0,0 +1,39 @@ |
|||
package com.gmeremit.online.gmeremittance_native.rewardV2.view.rewardlisting; |
|||
|
|||
import android.support.v7.app.AppCompatActivity; |
|||
import android.os.Bundle; |
|||
|
|||
import com.gmeremit.online.gmeremittance_native.R; |
|||
import com.gmeremit.online.gmeremittance_native.base.BaseActivity; |
|||
import com.gmeremit.online.gmeremittance_native.rewardV2.presenter.rewardlisting.RewardListingV2Presenter; |
|||
import com.gmeremit.online.gmeremittance_native.rewardV2.presenter.rewardlisting.RewardListingV2PresenterInterface; |
|||
import com.gmeremit.online.gmeremittance_native.rewardV2.presenter.rewardredeem.RewardRedeemV2Presenter; |
|||
import com.gmeremit.online.gmeremittance_native.rewardV2.presenter.rewardredeem.RewardRedeemV2PresenterInterface; |
|||
|
|||
import static com.gmeremit.online.gmeremittance_native.recipientV2.view.recipientadd.RecipientAddV2Activity.RECIPIENT_INFO_BUNDLE_KEY; |
|||
|
|||
public class RewardListingV2Activity extends BaseActivity implements RewardListingV2PresenterInterface.RewardListingV2ContractInterface { |
|||
|
|||
private RewardListingV2PresenterInterface presenter; |
|||
|
|||
@Override |
|||
protected void onCreate(Bundle savedInstanceState) { |
|||
super.onCreate(savedInstanceState); |
|||
setContentView(R.layout.activity_reward_listing_v2); |
|||
initialize(); |
|||
performDefaultAction(savedInstanceState); |
|||
} |
|||
|
|||
private void performDefaultAction(Bundle savedInstanceState) { |
|||
if (savedInstanceState == null) { |
|||
|
|||
} else { |
|||
} |
|||
|
|||
|
|||
} |
|||
|
|||
private void initialize() { |
|||
this.presenter=new RewardListingV2Presenter(this); |
|||
} |
|||
} |
@ -0,0 +1,34 @@ |
|||
package com.gmeremit.online.gmeremittance_native.rewardV2.view.rewardredeem; |
|||
|
|||
import android.support.v7.app.AppCompatActivity; |
|||
import android.os.Bundle; |
|||
|
|||
import com.gmeremit.online.gmeremittance_native.R; |
|||
import com.gmeremit.online.gmeremittance_native.base.BaseActivity; |
|||
import com.gmeremit.online.gmeremittance_native.rewardV2.presenter.rewardlisting.RewardListingV2Presenter; |
|||
import com.gmeremit.online.gmeremittance_native.rewardV2.presenter.rewardredeem.RewardRedeemV2Presenter; |
|||
import com.gmeremit.online.gmeremittance_native.rewardV2.presenter.rewardredeem.RewardRedeemV2PresenterInterface; |
|||
|
|||
public class RewardRedeemV2Activity extends BaseActivity implements RewardRedeemV2PresenterInterface.RewardRedeemV2ContractInterface { |
|||
|
|||
private RewardRedeemV2Presenter presenter; |
|||
|
|||
@Override |
|||
protected void onCreate(Bundle savedInstanceState) { |
|||
super.onCreate(savedInstanceState); |
|||
setContentView(R.layout.activity_reward_redeem_v2); |
|||
} |
|||
|
|||
private void performDefaultAction(Bundle savedInstanceState) { |
|||
if (savedInstanceState == null) { |
|||
|
|||
} else { |
|||
} |
|||
|
|||
|
|||
} |
|||
|
|||
private void initialize() { |
|||
this.presenter=new RewardRedeemV2Presenter(this); |
|||
} |
|||
} |
@ -0,0 +1,95 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
|||
xmlns:app="http://schemas.android.com/apk/res-auto" |
|||
android:layout_width="match_parent" |
|||
android:layout_height="match_parent" |
|||
android:background="@color/background_gray" |
|||
android:orientation="vertical"> |
|||
|
|||
<include layout="@layout/layout_reward_points_toolbar" /> |
|||
|
|||
<android.support.constraint.ConstraintLayout |
|||
android:id="@+id/relativeLayout3" |
|||
android:layout_width="match_parent" |
|||
android:layout_height="132dp" |
|||
android:layout_margin="10dp" |
|||
android:background="@drawable/ic_wallet_status_background"> |
|||
<ImageView |
|||
android:id="@+id/imageView6" |
|||
android:layout_width="wrap_content" |
|||
android:layout_height="wrap_content" |
|||
android:layout_marginTop="10dp" |
|||
android:layout_marginEnd="8dp" |
|||
android:layout_marginBottom="8dp" |
|||
android:contentDescription="@string/app_name" |
|||
android:src="@drawable/ic_reward_point" |
|||
app:layout_constraintBottom_toTopOf="@+id/gmeTextView4" |
|||
app:layout_constraintEnd_toStartOf="@+id/guideline2" |
|||
app:layout_constraintTop_toTopOf="parent" /> |
|||
|
|||
|
|||
<com.gmeremit.online.gmeremittance_native.customwidgets.GmeTextView |
|||
android:id="@+id/gmeTextView3" |
|||
android:layout_width="wrap_content" |
|||
android:layout_height="wrap_content" |
|||
android:layout_marginTop="8dp" |
|||
android:text="Reward Points" |
|||
android:textColor="@color/white" |
|||
android:textSize="14sp" |
|||
app:layout_constraintBottom_toTopOf="@+id/txt_reward_points" |
|||
app:layout_constraintEnd_toEndOf="parent" |
|||
app:layout_constraintHorizontal_bias="0.39" |
|||
app:layout_constraintStart_toStartOf="@+id/guideline2" |
|||
app:layout_constraintTop_toTopOf="@+id/imageView6" |
|||
app:layout_constraintVertical_chainStyle="packed" /> |
|||
|
|||
<com.gmeremit.online.gmeremittance_native.customwidgets.GmeTextView |
|||
android:id="@+id/txt_reward_points" |
|||
android:layout_width="wrap_content" |
|||
android:layout_height="wrap_content" |
|||
android:layout_marginStart="8dp" |
|||
android:layout_marginEnd="8dp" |
|||
android:layout_marginBottom="8dp" |
|||
android:singleLine="false" |
|||
android:text="9999999999" |
|||
android:textColor="@color/white" |
|||
android:textSize="24sp" |
|||
app:layout_constraintBottom_toBottomOf="@+id/imageView6" |
|||
app:layout_constraintEnd_toEndOf="@+id/gmeTextView3" |
|||
app:layout_constraintHorizontal_bias="0.5" |
|||
app:layout_constraintStart_toStartOf="@+id/gmeTextView3" |
|||
app:layout_constraintTop_toBottomOf="@+id/gmeTextView3" /> |
|||
|
|||
|
|||
<com.gmeremit.online.gmeremittance_native.customwidgets.GmeTextView |
|||
android:id="@+id/gmeTextView4" |
|||
android:layout_width="364dp" |
|||
android:layout_height="wrap_content" |
|||
android:layout_marginStart="10dp" |
|||
android:layout_marginBottom="8dp" |
|||
android:gravity="center" |
|||
android:text="Note: The reward points is valid for a year only." |
|||
android:textColor="@color/white" |
|||
android:textSize="11sp" |
|||
app:layout_constraintBottom_toBottomOf="parent" |
|||
app:layout_constraintEnd_toEndOf="parent" |
|||
app:layout_constraintStart_toStartOf="parent" /> |
|||
|
|||
<android.support.constraint.Guideline |
|||
android:id="@+id/guideline2" |
|||
android:layout_width="wrap_content" |
|||
android:layout_height="wrap_content" |
|||
android:orientation="vertical" |
|||
app:layout_constraintGuide_percent=".41" /> |
|||
</android.support.constraint.ConstraintLayout> |
|||
|
|||
<android.support.v7.widget.RecyclerView |
|||
android:id="@+id/rewards_rv" |
|||
android:layout_width="match_parent" |
|||
android:layout_height="0dp" |
|||
android:layout_weight="1" |
|||
android:paddingEnd="14dp" |
|||
android:paddingStart="14dp" /> |
|||
|
|||
</LinearLayout> |
|||
|
@ -0,0 +1,9 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" |
|||
xmlns:app="http://schemas.android.com/apk/res-auto" |
|||
xmlns:tools="http://schemas.android.com/tools" |
|||
android:layout_width="match_parent" |
|||
android:layout_height="match_parent" |
|||
tools:context="com.gmeremit.online.gmeremittance_native.rewardV2.view.rewardredeem.RewardRedeemV2Activity"> |
|||
|
|||
</android.support.constraint.ConstraintLayout> |
Write
Preview
Loading…
Cancel
Save
Reference in new issue