正在查看: 新暖心缘 v8.1.1 应用的 InviteActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: 新暖心缘 v8.1.1 应用的 InviteActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.luanxingyuan.app.activity;
import android.animation.AnimatorSet;
import android.animation.ObjectAnimator;
import android.content.Intent;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
import butterknife.BindView;
import butterknife.OnClick;
import com.luanxingyuan.app.base.BaseActivity;
import com.luanxingyuan.app.base.BaseResponse;
import com.luanxingyuan.app.bean.InviteBean;
import com.luanxingyuan.app.bean.InviteRewardBean;
import com.luanxingyuan.app.dialog.h0;
import com.luanxingyuan.app.util.ParamUtil;
import com.luanxingyuan.app.util.share.ShareCopyUrl;
import com.luanxingyuan.app.util.share.SharePoster;
import java.util.Arrays;
import java.util.HashMap;
public class InviteActivity extends BaseActivity {
@BindView
ImageView ivReceive;
@BindView
TextView mRetainFriendTv;
@BindView
TextView mRetainGoldTv;
@BindView
TextView mRuleDesTv;
class a extends r6.a<BaseResponse<InviteBean>> {
a() {
}
public void onResponse(BaseResponse<InviteBean> baseResponse, int i8) {
InviteBean inviteBean;
if (InviteActivity.this.isFinishing() || baseResponse == null || baseResponse.m_istatus != 1 || (inviteBean = baseResponse.m_object) == null) {
return;
}
InviteActivity.this.mRetainGoldTv.setText(String.valueOf(inviteBean.profitTotal));
InviteActivity.this.mRetainFriendTv.setText(String.valueOf(inviteBean.oneSpreadCount + inviteBean.twoSpreadCount));
}
}
class b extends r6.a<BaseResponse<InviteRewardBean>> {
b() {
}
public void onResponse(BaseResponse<InviteRewardBean> baseResponse, int i8) {
InviteRewardBean inviteRewardBean;
if (InviteActivity.this.isFinishing() || baseResponse == null || baseResponse.m_istatus != 1 || (inviteRewardBean = baseResponse.m_object) == null) {
return;
}
InviteActivity.this.mRuleDesTv.setText(inviteRewardBean.t_award_rules);
}
}
private void getShareInfo() {
HashMap hashMap = new HashMap();
hashMap.put("userId", getUserId());
x7.a.h().c(m6.a.q0()).e("param", ParamUtil.getParam(hashMap)).f().c(new a());
}
private void getSpreadAward() {
HashMap hashMap = new HashMap();
hashMap.put("userId", getUserId());
x7.a.h().c(m6.a.s0()).e("param", ParamUtil.getParam(hashMap)).f().c(new b());
}
private void startComboAnim(ImageView imageView) {
ObjectAnimator ofFloat = ObjectAnimator.ofFloat(imageView, "scaleX", 1.0f, 1.3f);
ofFloat.setRepeatCount(-1);
ofFloat.setRepeatMode(2);
ObjectAnimator ofFloat2 = ObjectAnimator.ofFloat(imageView, "scaleY", 1.0f, 1.3f);
ofFloat2.setRepeatCount(-1);
ofFloat2.setRepeatMode(2);
AnimatorSet animatorSet = new AnimatorSet();
animatorSet.setDuration(1200L);
animatorSet.playTogether(ofFloat, ofFloat2);
animatorSet.start();
}
@Override
protected View getContentView() {
return inflate(2131492926);
}
@OnClick
public void onClick(View view) {
switch (view.getId()) {
case 2131296728:
case 2131296861:
startActivity(new Intent(this, (Class<?>) InviteRewardActivity.class));
break;
case 2131296849:
case 2131296851:
startActivity(new Intent(this, (Class<?>) MyInviteActivity.class));
break;
case 2131296853:
new h0(this.mContext, Arrays.asList(new h0.c(2131231572, "分享海报", new SharePoster()), new h0.c(2131231572, "保存海报", new SharePoster()), new h0.c(2131231571, "下载链接", new ShareCopyUrl()), new h0.c(2131231571, "复制链接", new ShareCopyUrl()))).show();
break;
}
}
@Override
protected void onContentAdded() {
setTitle("邀请好友");
getShareInfo();
getSpreadAward();
}
}